Improvements for servers using permissions

This commit is contained in:
Telesphoreo 2022-03-18 19:01:20 -05:00
parent d7cbbc8d52
commit d8c6c3b4a8
2 changed files with 3 additions and 3 deletions

View File

@ -71,6 +71,7 @@ public class PlexCMD extends PlexCommand
}
if (args[1].equalsIgnoreCase("reload"))
{
checkRank(sender, Rank.SENIOR_ADMIN, "plex.modules.reload");
plugin.getModuleManager().unloadModules();
plugin.getModuleManager().loadAllModules();
plugin.getModuleManager().loadModules();

View File

@ -7,7 +7,7 @@ import dev.plex.command.impl.*;
import dev.plex.util.PlexLog;
import java.util.List;
//TODO: Switch to Reflections API
// TODO: Switch to Reflections API
public class CommandHandler extends PlexBase
{
public CommandHandler()
@ -18,6 +18,7 @@ public class CommandHandler extends PlexBase
commands.add(new AdminCMD());
commands.add(new DeopAllCMD());
commands.add(new DeopCMD());
commands.add(new ListCMD());
commands.add(new OpAllCMD());
commands.add(new OpCMD());
commands.add(new RankCMD());
@ -26,7 +27,6 @@ public class CommandHandler extends PlexBase
{
commands.add(new DebugCMD());
}
commands.add(new AdminChatCMD());
commands.add(new AdminworldCMD());
commands.add(new AdventureCMD());
@ -36,7 +36,6 @@ public class CommandHandler extends PlexBase
commands.add(new FlatlandsCMD());
commands.add(new FreezeCMD());
commands.add(new KickCMD());
commands.add(new ListCMD());
commands.add(new LocalSpawnCMD());
commands.add(new LockupCMD());
commands.add(new MasterbuilderworldCMD());