Process player sign commands with Paper event (#319)

This commit is contained in:
Allink 2022-07-18 18:30:56 +01:00 committed by GitHub
parent afdd1c1b4f
commit 7f1057df08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}