mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
Kick for invalid carried item.
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user