Plex/src/main/java/dev/plex/handlers/CommandHandler.java

47 lines
1.5 KiB
Java
Raw Normal View History

2021-01-03 07:21:15 +00:00
package dev.plex.handlers;
import com.google.common.collect.Lists;
2021-01-03 07:21:15 +00:00
import dev.plex.command.impl.AdminCMD;
import dev.plex.command.impl.AdventureCMD;
import dev.plex.command.impl.BanCMD;
import dev.plex.command.impl.CreativeCMD;
import dev.plex.command.impl.FionnCMD;
import dev.plex.command.impl.FreezeCMD;
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.SpectatorCMD;
import dev.plex.command.impl.SurvivalCMD;
import dev.plex.command.impl.TestCMD;
import dev.plex.command.impl.WorldCMD;
2020-11-06 01:29:38 +00:00
import java.util.List;
2021-01-03 07:21:15 +00:00
import dev.plex.command.PlexCommand;
import dev.plex.util.PlexLog;
public class CommandHandler
{
private List<PlexCommand> commands = Lists.newArrayList();
public CommandHandler()
{
commands.add(new TestCMD());
commands.add(new PlexCMD());
commands.add(new FionnCMD());
commands.add(new WorldCMD());
2020-11-02 20:50:51 +00:00
commands.add(new OpAllCMD());
commands.add(new OpCMD());
2020-11-03 02:58:56 +00:00
commands.add(new FreezeCMD());
commands.add(new NameHistoryCMD());
2020-11-05 21:17:14 +00:00
commands.add(new AdminCMD());
commands.add(new AdventureCMD());
commands.add(new CreativeCMD());
commands.add(new SurvivalCMD());
commands.add(new SpectatorCMD());
commands.add(new BanCMD());
commands.add(new PunishmentsCMD());
PlexLog.log(String.format("Registered %s commands!", commands.size()));
}
}