2012-12-20 22:45:50 +01:00
|
|
|
package com.pahimar.ee3.command;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import net.minecraft.command.CommandBase;
|
|
|
|
import net.minecraft.command.ICommandSender;
|
|
|
|
import net.minecraft.command.WrongUsageException;
|
|
|
|
|
|
|
|
public class CommandEE extends CommandBase {
|
|
|
|
|
|
|
|
public String getCommandName() {
|
|
|
|
|
|
|
|
return "ee3";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static List getListOfStringsMatchingLastWord(String[] par0ArrayOfStr, String... par1ArrayOfStr) {
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List addTabCompletionOptions(ICommandSender commandSender, String[] args) {
|
|
|
|
|
|
|
|
// TODO
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void processCommand(ICommandSender commandSender, String[] args) {
|
|
|
|
|
|
|
|
if (args.length > 0) {
|
2012-12-21 16:44:15 +01:00
|
|
|
String commandName = args[0];
|
2012-12-20 22:45:50 +01:00
|
|
|
System.arraycopy(args, 1, args, 0, args.length - 1);
|
|
|
|
|
|
|
|
if (commandName.toLowerCase().equals("overlay")) {
|
2012-12-21 03:31:59 +01:00
|
|
|
CommandOverlay.processCommand(commandSender, args);
|
|
|
|
}
|
|
|
|
else if (commandName.toLowerCase().equals("particles")) {
|
|
|
|
CommandParticles.processCommand(commandSender, args);
|
2012-12-20 22:45:50 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
throw new WrongUsageException("commands.ee3.usage", new Object[0]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|