mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Don't check inventory clicks in creative due to massive event spam
This commit is contained in:
1 parent
0cbe96c748
commit
b48e97a799
1 file changed
+4
@@ -1019,6 +1019,10 @@ public class Backend
|
|||||||
|
|
||||||
public boolean checkInventoryClicks(Player player)
|
public boolean checkInventoryClicks(Player player)
|
||||||
{
|
{
|
||||||
|
if (player.getGameMode() == GameMode.CREATIVE)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
String name = player.getName();
|
String name = player.getName();
|
||||||
int clicks = 1;
|
int clicks = 1;
|
||||||
if (inventoryClicks.containsKey(name))
|
if (inventoryClicks.containsKey(name))
|
||||||
|
|||||||
Reference in new issue
Block a user