2021-01-03 07:21:15 +00:00
|
|
|
package dev.plex.handlers;
|
2020-10-31 08:55:27 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
|
2020-10-31 08:55:27 +00:00
|
|
|
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());
|
2020-11-06 03:50:16 +00:00
|
|
|
commands.add(new AdventureCMD());
|
2020-11-10 02:47:03 +00:00
|
|
|
commands.add(new BanCMD());
|
2022-01-04 03:04:39 +00:00
|
|
|
commands.add(new CreativeCMD());
|
2021-06-20 08:02:07 +00:00
|
|
|
commands.add(new FlatlandsCMD());
|
2022-01-04 03:04:39 +00:00
|
|
|
commands.add(new FreezeCMD());
|
2022-01-27 09:00:50 +00:00
|
|
|
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());
|
2020-10-31 08:55:27 +00:00
|
|
|
PlexLog.log(String.format("Registered %s commands!", commands.size()));
|
|
|
|
}
|
|
|
|
}
|