xp tracker: reset on world hop and on logging in
The logged in game state is set during play when a region update is received
This commit is contained in:
@@ -71,10 +71,12 @@ public class XpTrackerPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onGameStateChanged(GameStateChanged event)
|
||||
{
|
||||
//reset upon login
|
||||
if (event.getGameState() == GameState.LOGGED_IN)
|
||||
// reset on world hop or logging in
|
||||
switch (event.getGameState())
|
||||
{
|
||||
xpPanel.resetAllSkillXpHr();
|
||||
case HOPPING:
|
||||
case LOGGING_IN:
|
||||
xpPanel.resetAllSkillXpHr();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user