Proper Game State Handling

Learn to handle game state changes properly, including login detection and state management.

1 steps
Progress1 / 1 steps
1

Understanding GameState Events

Step 1 of 1

Objective

Learn to detect login, logout, and other game states.

Explanation

GameStateChanged events fire when the game state changes: - LOGGED_OUT - player logged out - LOGGED_IN - player logged in - LOADING - game is loading - HOPPING - world hopping Use these to reset plugin state, detect login, etc.

Your Code

java
AdvertisementSet slotId on <AdUnit /> to show ads.
← Back to Tutorials

🎉 Congratulations! You've completed this tutorial!