Kick for invalid carried item.

This commit is contained in:
EvilSeph 2012-03-22 02:55:50 -04:00
parent f188afe794
commit 8d35caf070

View File

@ -830,6 +830,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
this.player.inventory.itemInHandIndex = packet16blockitemswitch.itemInHandIndex;
} else {
logger.warning(this.player.name + " tried to set an invalid carried item");
this.disconnect("Nope!"); // CraftBukkit
}
}