mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
/anticheat pastebin -> /anticheat debug & we don't need all them checks.
This commit is contained in:
1 parent
d714c642f6
commit
a895bf94bd
2 files changed
+46
-87
No files matched your search
@@ -97,14 +97,13 @@ public class CommandHandler implements CommandExecutor
|
||||
}
|
||||
}
|
||||
|
||||
public void handlePastebin(CommandSender cs)
|
||||
public void handleDebug(CommandSender cs)
|
||||
{
|
||||
if (Permission.SYSTEM_REPORT.get(cs))
|
||||
{
|
||||
PastebinReport report = new PastebinReport();
|
||||
cs.sendMessage(GREEN + "Your URL is: " + report.getURL());
|
||||
cs.sendMessage("If you are making a new issue, use this tool every time.");
|
||||
cs.sendMessage("It will help us resolve your issues faster.");
|
||||
cs.sendMessage(GREEN + "Debug information posted to: " + WHITE + report.getURL());
|
||||
cs.sendMessage(GREEN + "Please include this link when making bug reports.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +260,7 @@ public class CommandHandler implements CommandExecutor
|
||||
cs.sendMessage(base + GREEN + "xray [user]" + WHITE + " - check user's xray levels");
|
||||
cs.sendMessage(base + GREEN + "spy [user]" + WHITE + " - spy on a user in secret");
|
||||
cs.sendMessage(base + GREEN + "help" + WHITE + " - access this page");
|
||||
cs.sendMessage(base + GREEN + "pastebin" + WHITE + " - create a anticheat report");
|
||||
cs.sendMessage(base + GREEN + "debug" + WHITE + " - post debug information");
|
||||
cs.sendMessage(base + GREEN + "update" + WHITE + " - check update status");
|
||||
cs.sendMessage("-----------------------------------------------------");
|
||||
}
|
||||
@@ -507,9 +506,9 @@ public class CommandHandler implements CommandExecutor
|
||||
{
|
||||
handleHelp(cs);
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("pastebin"))
|
||||
else if (args[0].equalsIgnoreCase("debug"))
|
||||
{
|
||||
handlePastebin(cs);
|
||||
handleDebug(cs);
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("report"))
|
||||
{
|
||||
|
||||
@@ -244,86 +244,46 @@ public class Backend
|
||||
public void garbageClean(Player player)
|
||||
{
|
||||
String pN = player.getName();
|
||||
if (droppedItem.contains(pN))
|
||||
droppedItem.remove(pN);
|
||||
if (movingExempt.contains(pN))
|
||||
movingExempt.remove(pN);
|
||||
if (brokenBlock.contains(pN))
|
||||
brokenBlock.remove(pN);
|
||||
if (placedBlock.contains(pN))
|
||||
placedBlock.remove(pN);
|
||||
if (bowWindUp.contains(pN))
|
||||
bowWindUp.remove(pN);
|
||||
if (startEat.contains(pN))
|
||||
startEat.remove(pN);
|
||||
if (healed.contains(pN))
|
||||
healed.remove(pN);
|
||||
if (sprinted.contains(pN))
|
||||
sprinted.remove(pN);
|
||||
if (isInWater.contains(pN))
|
||||
isInWater.remove(pN);
|
||||
if (isInWaterCache.contains(pN))
|
||||
isInWaterCache.remove(pN);
|
||||
if (instantBreakExempt.contains(pN))
|
||||
instantBreakExempt.remove(pN);
|
||||
if (isAscending.contains(pN))
|
||||
isAscending.remove(pN);
|
||||
if (trackingProjectiles.contains(pN))
|
||||
trackingProjectiles.remove(pN);
|
||||
if (velocitizing.contains(pN))
|
||||
velocitizing.remove(pN);
|
||||
if (interacting.contains(pN))
|
||||
interacting.remove(pN);
|
||||
if (ascensionCount.containsKey(pN))
|
||||
ascensionCount.remove(pN);
|
||||
if (oldMessage.containsKey(pN))
|
||||
oldMessage.remove(pN);
|
||||
if (lastMessage.containsKey(pN))
|
||||
lastMessage.remove(pN);
|
||||
if (flightViolation.containsKey(pN))
|
||||
flightViolation.remove(pN);
|
||||
if (chatLevel.containsKey(pN))
|
||||
chatLevel.remove(pN);
|
||||
if (chatKicks.containsKey(pN))
|
||||
chatKicks.remove(pN);
|
||||
if (nofallViolation.containsKey(pN))
|
||||
nofallViolation.remove(pN);
|
||||
if (fastBreakViolation.containsKey(pN))
|
||||
fastBreakViolation.remove(pN);
|
||||
if (yAxisViolations.containsKey(pN))
|
||||
yAxisViolations.remove(pN);
|
||||
if (yAxisLastViolation.containsKey(pN))
|
||||
yAxisLastViolation.remove(pN);
|
||||
if (lastYcoord.containsKey(pN))
|
||||
lastYcoord.remove(pN);
|
||||
if (lastYtime.containsKey(pN))
|
||||
lastYtime.remove(pN);
|
||||
if (blocksBroken.containsKey(pN))
|
||||
blocksBroken.remove(pN);
|
||||
if (lastBlockBroken.containsKey(pN))
|
||||
lastBlockBroken.remove(pN);
|
||||
if (fastPlaceViolation.containsKey(pN))
|
||||
fastPlaceViolation.remove(pN);
|
||||
if (lastZeroHitPlace.containsKey(pN))
|
||||
lastZeroHitPlace.remove(pN);
|
||||
if (lastBlockPlaced.containsKey(pN))
|
||||
lastBlockPlaced.remove(pN);
|
||||
if (lastBlockPlaceTime.containsKey(pN))
|
||||
lastBlockPlaceTime.remove(pN);
|
||||
if (blockPunches.containsKey(pN))
|
||||
blockPunches.remove(pN);
|
||||
if (waterAscensionViolation.containsKey(pN))
|
||||
waterAscensionViolation.remove(pN);
|
||||
if (waterSpeedViolation.containsKey(pN))
|
||||
waterSpeedViolation.remove(pN);
|
||||
if (projectilesShot.containsKey(pN))
|
||||
projectilesShot.remove(pN);
|
||||
if (velocitized.containsKey(pN))
|
||||
velocitized.remove(pN);
|
||||
if (velocitytrack.containsKey(pN))
|
||||
velocitytrack.remove(pN);
|
||||
if (animated.containsKey(pN))
|
||||
animated.remove(pN);
|
||||
droppedItem.remove(pN);
|
||||
movingExempt.remove(pN);
|
||||
brokenBlock.remove(pN);
|
||||
placedBlock.remove(pN);
|
||||
bowWindUp.remove(pN);
|
||||
startEat.remove(pN);
|
||||
healed.remove(pN);
|
||||
sprinted.remove(pN);
|
||||
isInWater.remove(pN);
|
||||
isInWaterCache.remove(pN);
|
||||
instantBreakExempt.remove(pN);
|
||||
isAscending.remove(pN);
|
||||
trackingProjectiles.remove(pN);
|
||||
velocitizing.remove(pN);
|
||||
interacting.remove(pN);
|
||||
ascensionCount.remove(pN);
|
||||
oldMessage.remove(pN);
|
||||
lastMessage.remove(pN);
|
||||
flightViolation.remove(pN);
|
||||
chatLevel.remove(pN);
|
||||
chatKicks.remove(pN);
|
||||
nofallViolation.remove(pN);
|
||||
fastBreakViolation.remove(pN);
|
||||
yAxisViolations.remove(pN);
|
||||
yAxisLastViolation.remove(pN);
|
||||
lastYcoord.remove(pN);
|
||||
lastYtime.remove(pN);
|
||||
blocksBroken.remove(pN);
|
||||
lastBlockBroken.remove(pN);
|
||||
fastPlaceViolation.remove(pN);
|
||||
lastZeroHitPlace.remove(pN);
|
||||
lastBlockPlaced.remove(pN);
|
||||
lastBlockPlaceTime.remove(pN);
|
||||
blockPunches.remove(pN);
|
||||
waterAscensionViolation.remove(pN);
|
||||
waterSpeedViolation.remove(pN);
|
||||
projectilesShot.remove(pN);
|
||||
velocitized.remove(pN);
|
||||
velocitytrack.remove(pN);
|
||||
animated.remove(pN);
|
||||
}
|
||||
|
||||
public boolean checkLongReachBlock(Player player, double x, double y, double z)
|
||||
|
||||
Reference in new issue
Block a user