mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Added a null check to ManageConDebugCommand
Prevents NPE when checking if server is a proxy after plugin failed to enable. Affected issues: - Close #1090
This commit is contained in:
parent
ec31108f7f
commit
7107dcbe6b
@ -81,7 +81,8 @@ public class ManageConDebugCommand extends CommandNode {
|
|||||||
this.webServer = webServer;
|
this.webServer = webServer;
|
||||||
this.dbSystem = dbSystem;
|
this.dbSystem = dbSystem;
|
||||||
|
|
||||||
setShortHelp(locale.getString(serverInfo.getServer().isProxy() ? CmdHelpLang.CON : CmdHelpLang.MANAGE_CON));
|
boolean isProxy = serverInfo.getServer() != null && serverInfo.getServer().isProxy();
|
||||||
|
setShortHelp(locale.getString(isProxy ? CmdHelpLang.CON : CmdHelpLang.MANAGE_CON));
|
||||||
setInDepthHelp(locale.getArray(DeepHelpLang.MANAGE_CON));
|
setInDepthHelp(locale.getArray(DeepHelpLang.MANAGE_CON));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user