Check flight on HIGHEST event priority to avoid conflict with other plugins

This commit is contained in:
h31ix committed 2013-02-01 14:28:10 -05:00
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;
}
}