Fix /players not working when someone has nobody rank (Thanks Zingan), /pe should be case insensitive.

This commit is contained in:
UnknownShadow200 2016-02-22 22:12:12 +11:00
parent 0c9c1e82c6
commit b27ca19f31
2 changed files with 1 additions and 2 deletions

View File

@ -64,8 +64,6 @@ namespace MCGalaxy.Commands
List<Section> playerList = new List<Section>();
foreach (Group grp in Group.GroupList) {
if (grp.name == "nobody")
continue;
string title = ":" + grp.color + GetPlural(grp.trueName) + ":";
playerList.Add(MakeSection(grp, title));
}

View File

@ -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) {