mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix /infoswap on non-existent accounts always messaging: '' was not found in the database
This commit is contained in:
parent
f68c4d084c
commit
b772882d34
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user