Plex/src/main/java/me/totalfreedom/plex/handlers/CommandHandler.java

38 lines
1.2 KiB
Java
Raw Normal View History

package me.totalfreedom.plex.handlers;
import com.google.common.collect.Lists;
2020-11-06 01:29:38 +00:00
import java.util.List;
import me.totalfreedom.plex.command.PlexCommand;
2020-11-06 01:29:38 +00:00
import me.totalfreedom.plex.command.impl.AdminCMD;
import me.totalfreedom.plex.command.impl.FionnCMD;
import me.totalfreedom.plex.command.impl.FreezeCMD;
import me.totalfreedom.plex.command.impl.NameHistoryCMD;
import me.totalfreedom.plex.command.impl.OpAllCMD;
import me.totalfreedom.plex.command.impl.OpCMD;
import me.totalfreedom.plex.command.impl.PlexCMD;
import me.totalfreedom.plex.command.impl.TestCMD;
import me.totalfreedom.plex.command.impl.WorldCMD;
import me.totalfreedom.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());
PlexLog.log(String.format("Registered %s commands!", commands.size()));
}
}