mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Kick for invalid carried item.
This commit is contained in:
parent
f188afe794
commit
8d35caf070
1 changed files with 1 additions and 0 deletions
|
@ -830,6 +830,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||||
this.player.inventory.itemInHandIndex = packet16blockitemswitch.itemInHandIndex;
|
this.player.inventory.itemInHandIndex = packet16blockitemswitch.itemInHandIndex;
|
||||||
} else {
|
} else {
|
||||||
logger.warning(this.player.name + " tried to set an invalid carried item");
|
logger.warning(this.player.name + " tried to set an invalid carried item");
|
||||||
|
this.disconnect("Nope!"); // CraftBukkit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue