mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-17 00:56:12 +00:00
Telesphoreo
2631867e27
- Rewrite how bans are handled - Add /unfreeze command - Rename LoginListener to BanListener - Persistent commandspy
45 lines
1.5 KiB
Java
45 lines
1.5 KiB
Java
package dev.plex.handlers;
|
|
|
|
import com.google.common.collect.Lists;
|
|
import dev.plex.PlexBase;
|
|
import dev.plex.command.PlexCommand;
|
|
import dev.plex.command.impl.*;
|
|
import dev.plex.util.PlexLog;
|
|
import java.util.List;
|
|
|
|
public class CommandHandler extends PlexBase
|
|
{
|
|
public CommandHandler()
|
|
{
|
|
List<PlexCommand> commands = Lists.newArrayList();
|
|
if (plugin.getSystem().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 RankCMD());
|
|
}
|
|
commands.add(new AdminworldCMD());
|
|
commands.add(new AdventureCMD());
|
|
commands.add(new BanCMD());
|
|
commands.add(new CommandSpyCMD());
|
|
commands.add(new CreativeCMD());
|
|
commands.add(new FlatlandsCMD());
|
|
commands.add(new FreezeCMD());
|
|
commands.add(new ListCMD());
|
|
commands.add(new LocalSpawnCMD());
|
|
commands.add(new MasterbuilderworldCMD());
|
|
commands.add(new NameHistoryCMD());
|
|
commands.add(new PlexCMD());
|
|
commands.add(new PunishmentsCMD());
|
|
commands.add(new SpectatorCMD());
|
|
commands.add(new SurvivalCMD());
|
|
commands.add(new UnbanCMD());
|
|
commands.add(new UnfreezeCMD());
|
|
commands.add(new WorldCMD());
|
|
PlexLog.log(String.format("Registered %s commands!", commands.size()));
|
|
}
|
|
}
|