Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • How To Tell If Quickstart Was Used


    AceKingSuited
     Share

    Recommended Posts

    I've noticed that onStart() gets called and then onStart(String... args) gets called afterwards when quickstart is used. This is awkward af because I am using the args to determine what should be running in onStart.

     

    For example, most people get ready to display GUI in onStart. But if I run quickstart, in theory, it would still run that same code and then quickstart would happen after that process is already done.

     

    How can I check in onStart() if onStart(String.. args) is gonna be called?

    Link to comment
    Share on other sites

    onStart(String...args) should be called *instead* of onStart() when it's ran with quickstart *with* parameters.

    if they do not give -params then it'll go to onStart()

    But only one of them should be called.

    I was calling super.onStart() at the top of onStart(String... args) lol  :facep:

    Link to comment
    Share on other sites

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.