mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Explaining, small fix to avoid false kicks. This will probably one of the last commits before beginning a re-write.
This commit is contained in:
1 parent
08139b001e
commit
3abed11387
13 files changed
+65
-25
No files matched your search
@@ -29,6 +29,7 @@ public class BowManager {
|
||||
|
||||
public boolean hasShot(Player player)
|
||||
{
|
||||
//If the player has shot in the last .5 seconds
|
||||
if(shot.get(player) == null || shot.get(player) == false)
|
||||
{
|
||||
return false;
|
||||
|
||||
@@ -17,6 +17,7 @@ public class ExemptManager {
|
||||
|
||||
public void logEnter(final Player player)
|
||||
{
|
||||
//For ignoring players entering vehicles
|
||||
enter.put(player, true);
|
||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable()
|
||||
{
|
||||
|
||||
@@ -21,6 +21,8 @@ public class HealthManager {
|
||||
|
||||
public boolean checkFall(Player player)
|
||||
{
|
||||
//Sometimes a player's fall distance is 0 when they reach the peak of their jump
|
||||
//To combat false positives, the player must have 10 fall distance values of 0 in a row to trigger.
|
||||
if(fall.get(player) == 0)
|
||||
{
|
||||
if(fallvl.get(player) == null)
|
||||
|
||||
@@ -16,6 +16,7 @@ public class ItemManager {
|
||||
|
||||
public void logDrop(final Player player)
|
||||
{
|
||||
//Stop players from dropping blocks too fast.
|
||||
drop.put(player, true);
|
||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable()
|
||||
{
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package net.h31ix.anticheat.manage;
|
||||
|
||||
import net.h31ix.anticheat.Anticheat;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class LoginManager {
|
||||
Anticheat plugin;
|
||||
@@ -14,6 +13,7 @@ public class LoginManager {
|
||||
|
||||
public boolean log()
|
||||
{
|
||||
//Log players entering the server. Don't allow them to join way too fast.
|
||||
if(join == true)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user