2020-10-31 08:55:27 +00:00
|
|
|
package me.totalfreedom.plex.handlers;
|
|
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
import me.totalfreedom.plex.command.PlexCommand;
|
2020-11-02 00:06:08 +00:00
|
|
|
import me.totalfreedom.plex.command.impl.FionnCMD;
|
2020-10-31 08:55:27 +00:00
|
|
|
import me.totalfreedom.plex.command.impl.PlexCMD;
|
|
|
|
import me.totalfreedom.plex.command.impl.TestCMD;
|
2020-11-02 00:06:08 +00:00
|
|
|
import me.totalfreedom.plex.command.impl.WorldCMD;
|
2020-10-31 08:55:27 +00:00
|
|
|
import me.totalfreedom.plex.util.PlexLog;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class CommandHandler
|
|
|
|
{
|
|
|
|
|
|
|
|
private List<PlexCommand> commands = Lists.newArrayList();
|
|
|
|
|
|
|
|
public CommandHandler()
|
|
|
|
{
|
|
|
|
commands.add(new TestCMD());
|
|
|
|
commands.add(new PlexCMD());
|
2020-11-02 00:06:08 +00:00
|
|
|
commands.add(new FionnCMD());
|
|
|
|
commands.add(new WorldCMD());
|
2020-10-31 08:55:27 +00:00
|
|
|
|
|
|
|
PlexLog.log(String.format("Registered %s commands!", commands.size()));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|