mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Check flight on HIGHEST event priority to avoid conflict with other plugins
This commit is contained in:
1 parent
52a90b9bc8
commit
c1af360c9f
2 files changed
+46
-12
No files matched your search
@@ -39,7 +39,8 @@ public class User {
|
||||
private List<ItemStack> inventorySnapshot = null;
|
||||
private Configuration config = Anticheat.getManager().getConfiguration();
|
||||
private List<Level> levels = new ArrayList<Level>();
|
||||
|
||||
private int toX, toY, toZ;
|
||||
|
||||
public User(String name) {
|
||||
this.name = name;
|
||||
getConfigInfo();
|
||||
@@ -145,4 +146,14 @@ public class User {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setTo(double x, double y, double z) {
|
||||
toX = (int)x;
|
||||
toY = (int)y;
|
||||
toZ = (int)z;
|
||||
}
|
||||
|
||||
public boolean checkTo(double x, double y, double z) {
|
||||
return (int)x == toX && (int)y == toY && (int)z == toZ;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user