idle notifier: reset six hour notif on startup

Six hour notification could trigger incorrectly when the plugin was enabled if the player disabled -> logged out -> logged in -> enabled, since the notification timer was not reset.
This commit is contained in:
LlemonDuck
2021-06-04 19:15:11 -04:00
committed by GitHub
parent 559410b537
commit eddb7276a2

View File

@@ -110,6 +110,13 @@ public class IdleNotifierPlugin extends Plugin
return configManager.getConfig(IdleNotifierConfig.class);
}
@Override
protected void startUp() throws Exception
{
// can't tell when 6hr will be if enabled while already logged in
sixHourWarningTime = null;
}
@Subscribe
public void onAnimationChanged(AnimationChanged event)
{