mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -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;
|
p.Message("\"{0}\" must be offline to use %T/InfoSwap", name); return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
name = PlayerInfo.FindName(name);
|
string match = PlayerInfo.FindName(name);
|
||||||
if (name == null) {
|
if (match == null) {
|
||||||
p.Message("\"{0}\" was not found in the database.", name); return null;
|
p.Message("\"{0}\" was not found in the database.", name); return null;
|
||||||
}
|
}
|
||||||
return name;
|
return match;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SwapStats(string src, string dst) {
|
static void SwapStats(string src, string dst) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user