Add a LagMeter (ticks per second) to the /gc command. This command can now be accessed with /lag as well. Also added a simple /vanish command, with the extra node essentials.vanish.see

If you require a more advanced vanish solution checkout VanishNoPacket from mbaxter.
This commit is contained in:
md_5 2012-05-17 20:25:02 +10:00
parent fee3d7c0d3
commit 1247401a5f
8 changed files with 138 additions and 2 deletions

View file

@ -17,6 +17,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
private CommandSender replyTo = null;
private transient User teleportRequester;
private transient boolean teleportRequestHere;
private transient boolean vanished;
private transient final Teleport teleport;
private transient long teleportRequestTime;
private transient long lastOnlineActivity;
@ -640,4 +641,14 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
{
return teleportInvulnerabilityTimestamp != 0 && teleportInvulnerabilityTimestamp >= System.currentTimeMillis();
}
public boolean isVanished()
{
return vanished;
}
public void toggleVanished()
{
vanished = !vanished;
}
}