falador1 2 Share Posted February 28, 2021 Been looking around on how to make your script support quickstart. Is there just some copy and paste? Thanks! Link to comment Share on other sites More sharing options...
yeeter01 487 Share 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. Link to comment Share on other sites More sharing options...
falador1 2 Author Share Posted March 2, 2021 Thanks! Link to comment Share on other sites More sharing options...
falador1 2 Author Share Posted March 2, 2021 how to close a client when script is finished with quickstart?? Link to comment Share on other sites More sharing options...
falador1 2 Author Share Posted March 2, 2021 NVM! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now