mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed efficiency false-positives and more zombe permissions.
This commit is contained in:
1 parent
4c8733f4a4
commit
d10eaa80b5
3 files changed
+12
-4
No files matched your search
@@ -10,6 +10,7 @@ import org.bukkit.Server;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class CommandManager implements CommandExecutor {
|
||||
|
||||
@@ -6,6 +6,7 @@ import net.h31ix.anticheat.checks.*;
|
||||
import net.h31ix.anticheat.manage.*;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -63,7 +64,7 @@ public class BlockListener implements Listener {
|
||||
tracker.decreaseLevel(player);
|
||||
}
|
||||
}
|
||||
if (!player.hasPermission("anticheat.fastbreak"))
|
||||
if (!player.hasPermission("anticheat.fastbreak") && !player.getInventory().getItemInHand().containsEnchantment(Enchantment.DIG_SPEED))
|
||||
{
|
||||
if(block.getType() != Material.RED_MUSHROOM
|
||||
&& block.getType() != Material.RED_ROSE
|
||||
|
||||
@@ -67,10 +67,16 @@ public class PlayerListener implements Listener {
|
||||
public void onPlayerJoin(PlayerJoinEvent event)
|
||||
{
|
||||
Player player = event.getPlayer();
|
||||
if(!player.hasPermission("anticheat.zombe"))
|
||||
if(!player.hasPermission("anticheat.zombe.fly"))
|
||||
{
|
||||
player.sendMessage("§f §f §1 §0 §2 §4");
|
||||
}
|
||||
if(!player.hasPermission("anticheat.zombe.cheat"))
|
||||
{
|
||||
player.sendMessage("§f §f §2 §0 §4 §8");
|
||||
}
|
||||
if(!player.hasPermission("anticheat.zombe.noclip"))
|
||||
{
|
||||
player.sendMessage("§f §f §1 §0 §2 §4");
|
||||
player.sendMessage("§f §f §2 §0 §4 §8");
|
||||
player.sendMessage("§f §f §4 §0 §9 §6");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user