mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
Removed onCommand
This commit is contained in:
parent
d7114a4f62
commit
bdc8c84041
@ -657,17 +657,6 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
return;
|
||||
}
|
||||
|
||||
// Legacy command handler
|
||||
event = new PlayerChatEvent(Type.PLAYER_COMMAND, player, s);
|
||||
server.getPluginManager().callEvent(event);
|
||||
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
s = event.getMessage();
|
||||
player = (CraftPlayer) event.getPlayer();
|
||||
EntityPlayer e = player.getHandle();
|
||||
// CraftBukkit stop
|
||||
|
||||
if (s.toLowerCase().startsWith("/me ")) {
|
||||
|
Loading…
Reference in New Issue
Block a user