Improved spying system

Stores location AND previous flight status
Uses metadata!
This commit is contained in:
Matt Baxter committed 2012-07-17 21:49:11 -04:00
1 parent 30ac883120
commit 07d5f64a01
2 files changed
+54 -16

No files matched your search

@@ -0,0 +1,32 @@
package net.h31ix.anticheat.util;
import org.bukkit.Location;
public class SpyState
{
private boolean allowFlight;
private boolean flying;
private Location location;
public SpyState(boolean allowFlight, boolean flying, Location location)
{
this.allowFlight = allowFlight;
this.flying = flying;
this.location = location;
}
public boolean getAllowFlight()
{
return this.allowFlight;
}
public boolean getFlying()
{
return this.flying;
}
public Location getLocation()
{
return this.location;
}
}