Jump to content

Simple stop script after certain date;usefull for when you have testers


thepecher

Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

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

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...