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
|
@Subscribe
|
||||||
public void onGameStateChanged(GameStateChanged event)
|
public void onGameStateChanged(GameStateChanged event)
|
||||||
{
|
{
|
||||||
//reset upon login
|
// reset on world hop or logging in
|
||||||
if (event.getGameState() == GameState.LOGGED_IN)
|
switch (event.getGameState())
|
||||||
{
|
{
|
||||||
xpPanel.resetAllSkillXpHr();
|
case HOPPING:
|
||||||
|
case LOGGING_IN:
|
||||||
|
xpPanel.resetAllSkillXpHr();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user