mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Implemented way for new values to be added to magic.yml, and fixed issues with block dropping
This commit is contained in:
1 parent
43682dd1a9
commit
356c6b882c
5 files changed
+183
-93
No files matched your search
@@ -226,16 +226,9 @@ public class PlayerListener extends EventListener
|
||||
public void onPlayerDropItem(PlayerDropItemEvent event)
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
if (checkManager.willCheck(player, CheckType.ITEM_SPAM))
|
||||
if (checkManager.willCheck(player, CheckType.ITEM_SPAM) && backend.checkFastDrop(player))
|
||||
{
|
||||
if (backend.justDroppedItem(player))
|
||||
{
|
||||
event.setCancelled(!config.silentMode());
|
||||
}
|
||||
else
|
||||
{
|
||||
backend.logDroppedItem(player);
|
||||
}
|
||||
event.setCancelled(!config.silentMode());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user