mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-28 00:17:11 +00:00
Added option to hide player from /list /who ... login message.
This is for other plugins, that want to hide a player. Use IEssentials.getUser(Player p).setHidden(boolean)
This commit is contained in:
parent
e3a470e264
commit
be83383fd5
10 changed files with 107 additions and 9 deletions
|
@ -25,6 +25,10 @@ public class Commandpay extends EssentialsCommand
|
|||
for (Player p : server.matchPlayer(args[0]))
|
||||
{
|
||||
User u = ess.getUser(p);
|
||||
if (u.isHidden())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
user.payUser(u, amount);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue