Jump to content

Hitting an API on exit?


Recommended Posts

Posted (edited)
6 minutes ago, Lone said:

I tried searching but I may not know the correct term I should be using, if I want to hit an api on exit to update stats what is the correct way to write it in java? 

Not really sure what you mean.

If you want to do something when the script exits, override the onExit method in the Script class:

@Override
public void onExit() {
  
}

 

Edited by Explv

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
  • Recently Browsing   0 members

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