mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-11 06:45:51 +00:00
Keep track of vanished players and tweak lag meter.
This commit is contained in:
parent
faa3a5e027
commit
cab40d7893
6 changed files with 30 additions and 2 deletions
|
@ -650,5 +650,13 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||
public void toggleVanished()
|
||||
{
|
||||
vanished = !vanished;
|
||||
if (vanished)
|
||||
{
|
||||
ess.getVanishedPlayers().add(getName());
|
||||
}
|
||||
else
|
||||
{
|
||||
ess.getVanishedPlayers().remove(getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue