Don't hide banwave animation from staff

This commit is contained in:
samczsun 2016-08-30 16:03:09 -04:00
parent 3aaa9b2514
commit 6490ab3786
2 changed files with 11 additions and 4 deletions

View File

@ -455,10 +455,10 @@ public class AntiHack extends MiniPlugin
double baseDeg = 18; double baseDeg = 18;
Location center = player.getLocation().add(0, heightAdj, 0); Location center = player.getLocation().add(0, heightAdj, 0);
AntiHackGuardian north = new AntiHackGuardian(center.clone().add(0, 0, -radius), 0, 0, 0, 0, 0, 0); AntiHackGuardian north = new AntiHackGuardian(center.clone().add(0, 0, -radius), 0, 0, 0, 0, 0, 0, false);
AntiHackGuardian east = new AntiHackGuardian(center.clone().add(radius, 0, 0), 0, 0, 0, 0, 0, 0); AntiHackGuardian east = new AntiHackGuardian(center.clone().add(radius, 0, 0), 0, 0, 0, 0, 0, 0, false);
AntiHackGuardian south = new AntiHackGuardian(center.clone().add(0, 0, radius), 0, 0, 0, 0, 0, 0); AntiHackGuardian south = new AntiHackGuardian(center.clone().add(0, 0, radius), 0, 0, 0, 0, 0, 0, false);
AntiHackGuardian west = new AntiHackGuardian(center.clone().add(-radius, 0, 0), 0, 0, 0, 0, 0, 0); AntiHackGuardian west = new AntiHackGuardian(center.clone().add(-radius, 0, 0), 0, 0, 0, 0, 0, 0, false);
UtilEnt.CreatureLook(east.getEntity(), player); UtilEnt.CreatureLook(east.getEntity(), player);
UtilEnt.CreatureLook(west.getEntity(), player); UtilEnt.CreatureLook(west.getEntity(), player);

View File

@ -70,6 +70,11 @@ public class AntiHackGuardian implements Listener
private final double CENTER_Z; private final double CENTER_Z;
public AntiHackGuardian(Location center, int maxX, int minX, int maxY, int minY, int maxZ, int minZ) public AntiHackGuardian(Location center, int maxX, int minX, int maxY, int minY, int maxZ, int minZ)
{
this(center,maxX,minX, maxY, minY, maxZ, minZ, true);
}
public AntiHackGuardian(Location center, int maxX, int minX, int maxY, int minY, int maxZ, int minZ, boolean hideForStaff)
{ {
UtilServer.RegisterEvents(this); UtilServer.RegisterEvents(this);
@ -107,6 +112,8 @@ public class AntiHackGuardian implements Listener
disguiseManager.disguise(this._disguise, player -> disguiseManager.disguise(this._disguise, player ->
{ {
if (!hideForStaff) return true;
// Don't let Builder -> Admin see it // Don't let Builder -> Admin see it
Rank rank = clientManager.Get(player).GetRank(); Rank rank = clientManager.Get(player).GetRank();
if (rank.has(Rank.MAPDEV)) if (rank.has(Rank.MAPDEV))