mirror of
https://github.com/kaboomserver/extras.git
synced 2025-04-22 09:23:40 -04:00
fix: lower command ratelimit event priority
Makes command spam not show up in CommandSpy
This commit is contained in:
parent
6d520da7b7
commit
b6ec58b2c0
2 changed files with 2 additions and 2 deletions
src/main/java/pw/kaboom/extras/modules/player
|
@ -23,7 +23,7 @@ import java.util.regex.Pattern;
|
|||
public final class PlayerChat implements Listener {
|
||||
private static final PlayerChatRenderer CHAT_RENDERER = new PlayerChatRenderer();
|
||||
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOW)
|
||||
void onAsyncChatEventProcess(final AsyncChatEvent event) {
|
||||
final UUID playerUuid = event.getPlayer().getUniqueId();
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import pw.kaboom.extras.modules.server.ServerCommand;
|
|||
public final class PlayerCommand implements Listener {
|
||||
private static HashMap<UUID, Long> commandMillisList = new HashMap<UUID, Long>();
|
||||
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
|
||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOW)
|
||||
void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
|
||||
final UUID playerUuid = event.getPlayer().getUniqueId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue