mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Test for updateActivity all the time in PlayerCommandPreprocessEvent.
This commit is contained in:
parent
7809615896
commit
ba5ce33464
1 changed files with 16 additions and 16 deletions
|
@ -384,7 +384,8 @@ public class EssentialsPlayerListener implements Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
boolean broadcast = true; // whether to broadcast the updated activity
|
||||
boolean update = true; // Only modified when the command is afk
|
||||
|
||||
|
@ -403,7 +404,6 @@ public class EssentialsPlayerListener implements Listener {
|
|||
user.updateActivity(broadcast);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.NORMAL)
|
||||
public void onPlayerChangedWorldFlyReset(final PlayerChangedWorldEvent event) {
|
||||
|
|
Loading…
Reference in a new issue