mirror of
https://github.com/kaboomserver/extras.git
synced 2025-07-23 14:03:55 +00: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
|
@ -23,7 +23,7 @@ import java.util.regex.Pattern;
|
||||||
public final class PlayerChat implements Listener {
|
public final class PlayerChat implements Listener {
|
||||||
private static final PlayerChatRenderer CHAT_RENDERER = new PlayerChatRenderer();
|
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) {
|
void onAsyncChatEventProcess(final AsyncChatEvent event) {
|
||||||
final UUID playerUuid = event.getPlayer().getUniqueId();
|
final UUID playerUuid = event.getPlayer().getUniqueId();
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import pw.kaboom.extras.modules.server.ServerCommand;
|
||||||
public final class PlayerCommand implements Listener {
|
public final class PlayerCommand implements Listener {
|
||||||
private static HashMap<UUID, Long> commandMillisList = new HashMap<UUID, Long>();
|
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) {
|
void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) {
|
||||||
final UUID playerUuid = event.getPlayer().getUniqueId();
|
final UUID playerUuid = event.getPlayer().getUniqueId();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue