mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 10:37:51 +01:00
Wrote a disable command on bungee #594
This commit is contained in:
parent
8788cf2d01
commit
9369a863b2
@ -48,6 +48,7 @@ public class PlanBungeeCommand extends TreeCmdNode {
|
|||||||
new ManageConDebugCommand(),
|
new ManageConDebugCommand(),
|
||||||
new BungeeSetupToggleCommand(),
|
new BungeeSetupToggleCommand(),
|
||||||
new ReloadCommand(plugin),
|
new ReloadCommand(plugin),
|
||||||
|
new DisableCommand(),
|
||||||
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
|
new StatusCommand<>(plugin, Permissions.MANAGE.getPermission(), plugin.getColorScheme()),
|
||||||
// (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
// (Settings.ALLOW_UPDATE.isTrue() ? new UpdateCommand() : null)
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.djrapitops.plan.command.commands;
|
||||||
|
|
||||||
|
import com.djrapitops.plan.PlanPlugin;
|
||||||
|
import com.djrapitops.plugin.command.CommandNode;
|
||||||
|
import com.djrapitops.plugin.command.CommandType;
|
||||||
|
import com.djrapitops.plugin.command.ISender;
|
||||||
|
|
||||||
|
public class DisableCommand extends CommandNode {
|
||||||
|
|
||||||
|
public DisableCommand() {
|
||||||
|
super("disable", "plan.reload", CommandType.ALL);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCommand(ISender sender, String commandLabel, String[] args) {
|
||||||
|
PlanPlugin.getInstance().onDisable();
|
||||||
|
sender.sendMessage(
|
||||||
|
"§aPlan systems are now disabled. " +
|
||||||
|
"You can still use /planbungee reload to restart the plugin."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user