mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Food for Godmode: There is no event for food yet, so we have to update it manually.
Test #939
This commit is contained in:
parent
1a65a31a7e
commit
cf69a6d72c
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ public class EssentialsTimer implements Runnable
|
|||
onlineUsers.add(user);
|
||||
user.setLastOnlineActivity(currentTime);
|
||||
user.checkActivity();
|
||||
// Food for god mode
|
||||
if (user.isGodModeEnabled() && user.getFoodLevel() < 20) {
|
||||
user.setFoodLevel(20);
|
||||
}
|
||||
}
|
||||
|
||||
final Iterator<User> iterator = onlineUsers.iterator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue