thepecher Posted September 10, 2014 Share Posted September 10, 2014 Date currentDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date1; date1 = sdf.parse("2014-09-15"); if(currentDate.after(date1)){ log("Test version expired, stopping script"); stop(); } // import this: import java.text.SimpleDateFormat; Link to comment Share on other sites More sharing options...
Swizzbeat Posted September 10, 2014 Share Posted September 10, 2014 Why not just authenticate it with your server? 1 Link to comment Share on other sites More sharing options...
thepecher Posted September 10, 2014 Author Share Posted September 10, 2014 Why not just authenticate it with your server? I don't have a server. This is for local jars you send to people to test (obfuscated if wanted) Link to comment Share on other sites More sharing options...
Swizzbeat Posted September 10, 2014 Share Posted September 10, 2014 I don't have a server. This is for local jars you send to people to test (obfuscated if wanted)You can get a free one from a ton of web hosts :p plus obfuscation won't do anything if they know what they're looking for.You could argue that you could take out the server call and have the script run fine, however in that case just have the script download a necessary class/library for it to function and delete it afterwards. This way if the beta test window has passed the server will reject the request for the required dependancies. 1 Link to comment Share on other sites More sharing options...
Soldtodie Posted September 10, 2014 Share Posted September 10, 2014 Date currentDate = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date1; date1 = sdf.parse("2014-09-15"); if(currentDate.after(date1)){ log("Test version expired, stopping script"); stop(); } // import this: import java.text.SimpleDateFormat; Doesn't work, you can change the windows date to use it. Link to comment Share on other sites More sharing options...
Wizard Posted September 10, 2014 Share Posted September 10, 2014 Isn't that easy to bypass by changing the time on the PC? Link to comment Share on other sites More sharing options...
Soldtodie Posted September 10, 2014 Share Posted September 10, 2014 Isn't that easy to bypass by changing the time on the PC? Doesn't work, you can change the windows date to use it. Link to comment Share on other sites More sharing options...
Wizard Posted September 10, 2014 Share Posted September 10, 2014 bypassing a thing doesn't mean that it doesn't work. And good, you know how to use the IMG BBCode, congratulations Link to comment Share on other sites More sharing options...
Soldtodie Posted September 10, 2014 Share Posted September 10, 2014 (edited) bypassing a thing doesn't mean that it doesn't work. And good, you know how to use the IMG BBCode, congratulations ? you can change the windows date to use it. Edited September 10, 2014 by Soldtodie Link to comment Share on other sites More sharing options...
thepecher Posted September 10, 2014 Author Share Posted September 10, 2014 Yeah you can but usually testers don't know that so i don't care. Never gave out a fully working script so yeah... Swizz's option might be better. This is just a quick thing you can put in your script incase you need a tester quickly. Link to comment Share on other sites More sharing options...