mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 14:54:12 -04:00
Fix /players not working when someone has nobody rank (Thanks Zingan), /pe should be case insensitive.
This commit is contained in:
parent
0c9c1e82c6
commit
b27ca19f31
@ -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));
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user