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

54 lines
1.9 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.PlexCommand;
2022-01-27 21:23:01 +00:00
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;
2022-01-29 22:35:48 +00:00
import dev.plex.command.impl.DeopAllCMD;
2022-01-27 21:23:01 +00:00
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;
2021-01-03 07:21:15 +00:00
import dev.plex.util.PlexLog;
2022-01-04 03:04:39 +00:00
import java.util.List;
public class CommandHandler
{
public CommandHandler()
{
2021-06-20 08:02:07 +00:00
List<PlexCommand> commands = Lists.newArrayList();
2020-11-05 21:17:14 +00:00
commands.add(new AdminCMD());
2022-01-04 03:04:39 +00:00
commands.add(new AdminworldCMD());
commands.add(new AdventureCMD());
commands.add(new BanCMD());
2022-01-04 03:04:39 +00:00
commands.add(new CreativeCMD());
2022-01-29 22:35:48 +00:00
commands.add(new DeopAllCMD());
2021-06-20 08:02:07 +00:00
commands.add(new FlatlandsCMD());
2022-01-04 03:04:39 +00:00
commands.add(new FreezeCMD());
commands.add(new ListCMD());
2021-06-20 08:02:07 +00:00
commands.add(new MasterbuilderworldCMD());
2022-01-04 03:04:39 +00:00
commands.add(new NameHistoryCMD());
commands.add(new OpAllCMD());
commands.add(new OpCMD());
commands.add(new PlexCMD());
commands.add(new PunishmentsCMD());
commands.add(new RankCMD());
commands.add(new SpectatorCMD());
commands.add(new SurvivalCMD());
commands.add(new WorldCMD());
PlexLog.log(String.format("Registered %s commands!", commands.size()));
}
}