Skip to content

Commit

Permalink
idle notifier: add notification configuration for 6 hour logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Dec 23, 2024
1 parent 1e05bdf commit 9b05aa2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ default Notification logoutIdle()
return Notification.ON;
}

@ConfigItem(
keyName = "sixHourLogout",
name = "Six hour logout notification",
description = "Configures the six hour logout notification.",
position = 5
)
default Notification sixHourLogout()
{
return Notification.ON;
}

@ConfigItem(
keyName = "timeout",
name = "Idle notification delay",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ public void onGameTick(GameTick event)

if (check6hrLogout())
{
notifier.notify("You are about to log out from being online for 6 hours!");
notifier.notify(config.sixHourLogout(), "You are about to log out from being online for 6 hours!");
}

if (checkAnimationIdle(waitDuration, local))
Expand Down

0 comments on commit 9b05aa2

Please sign in to comment.