I can't believe we didn't have an unban command

This commit is contained in:
2022-01-29 19:31:10 -06:00
parent 0a1df0fddb
commit a95ea3557e
17 changed files with 133 additions and 47 deletions

View File

@ -1,47 +1,34 @@
package dev.plex.handlers;
import com.google.common.collect.Lists;
import dev.plex.PlexBase;
import dev.plex.command.PlexCommand;
import dev.plex.command.impl.AdminCMD;
import dev.plex.command.impl.AdminworldCMD;
import dev.plex.command.impl.AdventureCMD;
import dev.plex.command.impl.BanCMD;
import dev.plex.command.impl.CreativeCMD;
import dev.plex.command.impl.DeopAllCMD;
import dev.plex.command.impl.FlatlandsCMD;
import dev.plex.command.impl.FreezeCMD;
import dev.plex.command.impl.ListCMD;
import dev.plex.command.impl.MasterbuilderworldCMD;
import dev.plex.command.impl.NameHistoryCMD;
import dev.plex.command.impl.OpAllCMD;
import dev.plex.command.impl.OpCMD;
import dev.plex.command.impl.PlexCMD;
import dev.plex.command.impl.PunishmentsCMD;
import dev.plex.command.impl.RankCMD;
import dev.plex.command.impl.SpectatorCMD;
import dev.plex.command.impl.SurvivalCMD;
import dev.plex.command.impl.WorldCMD;
import dev.plex.command.impl.*;
import dev.plex.util.PlexLog;
import java.util.List;
public class CommandHandler
public class CommandHandler extends PlexBase
{
public CommandHandler()
{
List<PlexCommand> commands = Lists.newArrayList();
commands.add(new AdminCMD());
if (plugin.getRanksOrPermissions().equalsIgnoreCase("ranks"))
{
commands.add(new AdminCMD());
commands.add(new DeopAllCMD());
commands.add(new DeopCMD());
commands.add(new OpAllCMD());
commands.add(new OpCMD());
}
commands.add(new AdminworldCMD());
commands.add(new AdventureCMD());
commands.add(new BanCMD());
commands.add(new CreativeCMD());
commands.add(new DeopAllCMD());
commands.add(new FlatlandsCMD());
commands.add(new FreezeCMD());
commands.add(new ListCMD());
commands.add(new MasterbuilderworldCMD());
commands.add(new NameHistoryCMD());
commands.add(new OpAllCMD());
commands.add(new OpCMD());
commands.add(new PlexCMD());
commands.add(new PunishmentsCMD());
commands.add(new RankCMD());