Added permission for seeing ids when using /who
Also added in the ability to see ids when using /who. Good for quickly adding ids to a region.
This commit is contained in:
parent
174acade76
commit
1306043c00
3 changed files with 31 additions and 2 deletions
|
|
@ -2636,7 +2636,10 @@ namespace TShockAPI
|
|||
|
||||
private static void Playing(CommandArgs args)
|
||||
{
|
||||
args.Player.SendMessage(string.Format("Current players: {0}.", TShock.Utils.GetPlayers()), 255, 240, 20);
|
||||
string response = args.Player.Group.HasPermission(Permissions.seeids)
|
||||
? TShock.Utils.GetPlayersWithIds()
|
||||
: TShock.Utils.GetPlayers();
|
||||
args.Player.SendMessage(string.Format("Current players: {0}.", response), 255, 240, 20);
|
||||
args.Player.SendMessage(string.Format("TShock: {0} ({1}): ({2}/{3})", TShock.VersionNum, TShock.VersionCodename,
|
||||
TShock.Utils.ActivePlayers(), TShock.Config.MaxSlots));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue