mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Improved spying system
Stores location AND previous flight status Uses metadata!
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user