mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 10:33:29 -04:00
Fix /cmdunload null erroring
This commit is contained in:
parent
6a03bffebe
commit
cd8b4b710f
@ -104,7 +104,9 @@ namespace MCGalaxy {
|
|||||||
grp.Commands.Remove(cmd);
|
grp.Commands.Remove(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
Alias.UnregisterDefaults(cmd);
|
// typically Command.Unregister(Command.Find("xyz"))
|
||||||
|
// So don't error if Command.Find returned null
|
||||||
|
if (cmd != null) Alias.UnregisterDefaults(cmd);
|
||||||
return removed;
|
return removed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user