mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-05 23:37:34 +01:00
Remove hard coded kick from InventoryListener.
This commit is contained in:
parent
2cf9f5f9f8
commit
d35617a862
@ -164,7 +164,7 @@ public class InventoryListener implements Listener {
|
|||||||
if (drop.isEnabled(event.getPlayer()) && drop.check(event.getPlayer()))
|
if (drop.isEnabled(event.getPlayer()) && drop.check(event.getPlayer()))
|
||||||
// Cancelling drop events is not save (in certain circumstances items will disappear completely). So don't
|
// Cancelling drop events is not save (in certain circumstances items will disappear completely). So don't
|
||||||
// do it and kick players instead by default.
|
// do it and kick players instead by default.
|
||||||
event.getPlayer().kickPlayer("You're not allowed to crash the server by dropping items!");
|
event.setCancelled(true);
|
||||||
else
|
else
|
||||||
// Combined speed:
|
// Combined speed:
|
||||||
if (Improbable.check(event.getPlayer(), 1f, System.currentTimeMillis()))
|
if (Improbable.check(event.getPlayer(), 1f, System.currentTimeMillis()))
|
||||||
|
Loading…
Reference in New Issue
Block a user