Removed onCommand

This commit is contained in:
Dinnerbone 2011-02-26 19:05:20 +00:00
parent d7114a4f62
commit bdc8c84041

View File

@ -657,17 +657,6 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
return; 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 // CraftBukkit stop
if (s.toLowerCase().startsWith("/me ")) { if (s.toLowerCase().startsWith("/me ")) {