mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 22:15:22 +00:00
Projectile Check: Take your arrows and go back to....*message truncated*
This commit is contained in:
1 parent
e8efb75d7d
commit
e570bbaa7f
1 file changed
+15
-12
@@ -29,6 +29,7 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
@@ -65,6 +66,11 @@ public class PlayerListener extends EventListener
|
||||
if (event.getEntity().getShooter() instanceof Player)
|
||||
{
|
||||
Player player = (Player) event.getEntity().getShooter();
|
||||
|
||||
if (event.getEntity() instanceof Arrow)
|
||||
// TF2 Heavy does not approve of this action. He yells "NO!"
|
||||
return;
|
||||
|
||||
if (checkManager.willCheck(player, CheckType.FAST_PROJECTILE))
|
||||
{
|
||||
if (backend.justLaunched(player))
|
||||
@@ -199,18 +205,15 @@ public class PlayerListener extends EventListener
|
||||
|
||||
/* Visuals Check */
|
||||
|
||||
/**if (checkManager.willCheck(player, CheckType.VISUAL) && event.getAction() != Action.PHYSICAL)
|
||||
{
|
||||
if (backend.checkVisuals(player, block, playerClick))
|
||||
{
|
||||
event.setCancelled(!config.silentMode());
|
||||
log("tried to interact with an object that they couldn't see", player, CheckType.VISUAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
backend.logInteraction(player);
|
||||
}
|
||||
}**/
|
||||
/**
|
||||
* if (checkManager.willCheck(player, CheckType.VISUAL) &&
|
||||
* event.getAction() != Action.PHYSICAL) { if
|
||||
* (backend.checkVisuals(player, block, playerClick)) {
|
||||
* event.setCancelled(!config.silentMode());
|
||||
* log("tried to interact with an object that they couldn't see",
|
||||
* player, CheckType.VISUAL); } else {
|
||||
* backend.logInteraction(player); } }
|
||||
**/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user