falador1 2 Posted February 28, 2021 Been looking around on how to make your script support quickstart. Is there just some copy and paste? Thanks!
yeeter 539 Posted February 28, 2021 /* * Default onStart method */ @Override public void onStart() { questManager.addQuests(testQuest, testQuest2); } /* * Quickstart onStart method */ @Override public void onStart(String... params) { for (String quickStartArg : params) { log("Argument Provided: " + quickStartArg); // Do the logic for your params here } // Call the original onStart() method for shared logic onStart(); } you could do something basic like this. There are some other fancy ways of doing it but this is the simplest.
falador1 2 Author Posted March 2, 2021 how to close a client when script is finished with quickstart??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.