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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user