mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +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.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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user