mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-23 07:57:58 -05:00
Process player sign commands with Paper event (#319)
This commit is contained in:
parent
afdd1c1b4f
commit
7f1057df08
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@ package pw.kaboom.extras.modules.player;
|
|||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
import io.papermc.paper.event.player.PlayerSignCommandPreprocessEvent;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
@ -46,6 +47,11 @@ public final class PlayerCommand implements Listener {
|
|||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
void onPlayerSignCommandPreprocess(final PlayerSignCommandPreprocessEvent event) {
|
||||
this.onPlayerCommandPreprocess(event);
|
||||
}
|
||||
|
||||
public static HashMap<UUID, Long> getCommandMillisList() {
|
||||
return commandMillisList;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue