Package net.storm.api.game
Interface GameStateManager
public interface GameStateManager
Manages and tracks game state changes.
This interface provides access to game state tracking information, particularly for monitoring login events and session duration.
-
Method Summary
Modifier and TypeMethodDescriptionGets the timestamp of the most recent successful login.
-
Method Details
-
getLastLogin
Instant getLastLogin()Gets the timestamp of the most recent successful login.This tracks when the player transitioned from the login screen or world hopping state to being fully logged in. Useful for calculating session duration or implementing login-based timers.
- Returns:
- the instant when the last login occurred
-