mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-21 12:12:50 +02:00
[Fix] Help command permission checking
This commit is contained in:
parent
5c9e2426d7
commit
a2b6a3b1e5
|
@ -76,6 +76,7 @@ public class PlanBungeeCommand extends TreeCmdNode {
|
|||
this.reloadCommand = reloadCommand;
|
||||
this.disableCommand = disableCommand;
|
||||
|
||||
getHelpCommand().setPermission(Permissions.MANAGE.getPermission());
|
||||
setColorScheme(colorScheme);
|
||||
setInDepthHelp(locale.getArray(DeepHelpLang.PLAN));
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.djrapitops.plan.command;
|
|||
import com.djrapitops.plan.command.commands.*;
|
||||
import com.djrapitops.plan.system.locale.Locale;
|
||||
import com.djrapitops.plan.system.locale.lang.DeepHelpLang;
|
||||
import com.djrapitops.plan.system.settings.Permissions;
|
||||
import com.djrapitops.plan.system.settings.Settings;
|
||||
import com.djrapitops.plan.system.settings.config.PlanConfig;
|
||||
import com.djrapitops.plugin.command.ColorScheme;
|
||||
|
@ -83,6 +84,7 @@ public class PlanCommand extends TreeCmdNode {
|
|||
this.manageCommand = manageCommand;
|
||||
this.devCommand = devCommand;
|
||||
|
||||
getHelpCommand().setPermission(Permissions.HELP.getPermission());
|
||||
setDefaultCommand("inspect");
|
||||
setColorScheme(colorScheme);
|
||||
setInDepthHelp(locale.getArray(DeepHelpLang.PLAN));
|
||||
|
|
|
@ -76,6 +76,7 @@ public class PlanVelocityCommand extends TreeCmdNode {
|
|||
this.reloadCommand = reloadCommand;
|
||||
this.disableCommand = disableCommand;
|
||||
|
||||
getHelpCommand().setPermission(Permissions.MANAGE.getPermission());
|
||||
setColorScheme(colorScheme);
|
||||
setInDepthHelp(locale.getArray(DeepHelpLang.PLAN));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user