mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Added Entity damage checking to the Forcefield check
This commit is contained in:
1 parent
16aa24d37d
commit
96692b5bbb
2 files changed
+15
No files matched your search
@@ -32,6 +32,7 @@ import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.enchantments.Enchantment;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.PlayerToggleSprintEvent;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
@@ -648,6 +649,11 @@ public class Backend
|
||||
}*/
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean checkSight(Player player, Entity entity)
|
||||
{
|
||||
return player.hasLineOfSight(entity);
|
||||
}
|
||||
|
||||
public boolean checkFlight(Player player, Distance distance)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user