Fix /infoswap on non-existent accounts always messaging: '' was not found in the database

This commit is contained in:
UnknownShadow200 2018-12-09 00:28:12 +11:00
parent f68c4d084c
commit b772882d34

View File

@ -50,11 +50,11 @@ namespace MCGalaxy.Commands.Maintenance {
p.Message("\"{0}\" must be offline to use %T/InfoSwap", name); return null;
}
name = PlayerInfo.FindName(name);
if (name == null) {
string match = PlayerInfo.FindName(name);
if (match == null) {
p.Message("\"{0}\" was not found in the database.", name); return null;
}
return name;
return match;
}
static void SwapStats(string src, string dst) {