LoudPacks Posted November 29, 2015 Share Posted November 29, 2015 (edited) Ok so I do a lot of private scripts and local testing for SDN scripts sometimes. To prevent people from stealing the script or not buying it, due to having a local test copy, you can place this into your main.java in run() or whatever your start method is; it checks their username and if the date of the trial has passed: DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { if(sdf.parse("2001-9-11").after(new Date()) && getClient().getUsername().equalsIgnoreCase("Maldesto")){ log("Welcome " + getClient().getUsername().toString() + "! " + "You are authorized to use this script until: 9/11/2001"); //normal start methods } else { log("Welcome " + getClient().getUsername().toString() + "! " + "You're not authorized to use this script!"); stop(); } } catch (ParseException e) { } Edited November 29, 2015 by LoudPacks 2 Quote Link to comment Share on other sites More sharing options...