mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Restore inventories looted by fast inventory and flush magic values when reloaded
This commit is contained in:
1 parent
873a1b9d60
commit
96f3906eff
6 files changed
+61
-8
No files matched your search
@@ -100,11 +100,15 @@ public class Backend {
|
||||
private static final CheckResult PASS = new CheckResult(Result.PASSED);
|
||||
|
||||
public Backend(AnticheatManager instance) {
|
||||
magic = new Magic(instance.getConfiguration().getMagic(), instance.getConfiguration(), CommentedConfiguration.loadConfiguration(instance.getPlugin().getResource("magic.yml")));
|
||||
magic = instance.getConfiguration().getMagicInstance();
|
||||
micromanage = instance;
|
||||
lang = micromanage.getConfiguration().getLang();
|
||||
transparent.add((byte) -1);
|
||||
}
|
||||
|
||||
public void updateMagic(Magic magic) {
|
||||
this.magic = magic;
|
||||
}
|
||||
|
||||
public void garbageClean(Player player) {
|
||||
String pN = player.getName();
|
||||
@@ -795,7 +799,7 @@ public class Backend {
|
||||
|
||||
public CheckResult checkAutoTool(Player player) {
|
||||
if (itemInHand.containsKey(player.getName()) && itemInHand.get(player.getName()) != player.getItemInHand().getType()) {
|
||||
return new CheckResult(Result.FAILED, player.getName()+" switched tools too fast (had "+itemInHand.get(player.getName())+", has "+player.getItemInHand().getType());
|
||||
return new CheckResult(Result.FAILED, player.getName()+" switched tools too fast (had "+itemInHand.get(player.getName())+", has "+player.getItemInHand().getType()+")");
|
||||
} else {
|
||||
return PASS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user