mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Shears make leaves instant break + added pointer for people using /anticheat command
This commit is contained in:
1 parent
dda661c320
commit
00c0e1054a
2 files changed
+2
-2
No files matched your search
@@ -286,7 +286,7 @@ public class CommandHandler implements CommandExecutor {
|
||||
}
|
||||
else
|
||||
{
|
||||
cs.sendMessage(RED+"Unrecognized command.");
|
||||
cs.sendMessage(RED+"Unrecognized command. Try "+ChatColor.WHITE+"/anticheat help");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ public class Backend
|
||||
|
||||
public boolean checkFastBreak(Player player, Block block)
|
||||
{
|
||||
if(player.getGameMode() != GameMode.CREATIVE && !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !isInstantBreakExempt(player))
|
||||
if(player.getGameMode() != GameMode.CREATIVE && !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED) && !Utilities.isInstantBreak(block.getType()) && !isInstantBreakExempt(player) && !(player.getInventory().getItemInHand().getType() == Material.SHEARS && block.getType() == Material.LEAVES))
|
||||
{
|
||||
if (!justBroke(player))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user