import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
public class WhatIsIt implements Listener {
@EventHandler
public void onPlayerJoin(PlayerCommandPreprocessEvent e) {
if (e.getMessage().startsWith("/gm")) {
e.getPlayer().sendMessage("ТЫ шо дурак бл%*ть?");
e.setCancelled(true);
}
}
}