From b27ca19f3148962c4fcb5ce26f32102ce2e45043 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 22 Feb 2016 22:12:12 +1100 Subject: [PATCH] Fix /players not working when someone has nobody rank (Thanks Zingan), /pe should be case insensitive. --- Commands/Information/CmdPlayers.cs | 2 -- Commands/Moderation/CmdPlayerEditDB.cs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Commands/Information/CmdPlayers.cs b/Commands/Information/CmdPlayers.cs index 451c36608..a619e891c 100644 --- a/Commands/Information/CmdPlayers.cs +++ b/Commands/Information/CmdPlayers.cs @@ -64,8 +64,6 @@ namespace MCGalaxy.Commands List
playerList = new List
(); foreach (Group grp in Group.GroupList) { - if (grp.name == "nobody") - continue; string title = ":" + grp.color + GetPlural(grp.trueName) + ":"; playerList.Add(MakeSection(grp, title)); } diff --git a/Commands/Moderation/CmdPlayerEditDB.cs b/Commands/Moderation/CmdPlayerEditDB.cs index 802d27f02..d9e7f4e68 100644 --- a/Commands/Moderation/CmdPlayerEditDB.cs +++ b/Commands/Moderation/CmdPlayerEditDB.cs @@ -42,6 +42,7 @@ namespace MCGalaxy.Commands { using (DataTable table = Database.fillData(syntax)) { if (table.Rows.Count == 0) { Player.SendMessage(p, "Player &b" + args[0] + " %Swas not found in the database."); return; } + args[0] = table.Rows[0]["Name"].ToString(); } } if (args.Length == 1) {