blob: 7e14643820c24ddb5d927acd6921bb2920240b9c [file] [log] [blame] [raw]
package li.cil.oc.common.command
import net.minecraft.command.CommandBase
import net.minecraft.command.ICommandSender
import scala.collection.convert.WrapAsJava._
import scala.collection.mutable
abstract class SimpleCommand(val name: String) extends CommandBase {
protected var aliases = mutable.ListBuffer.empty[String]
override def getCommandName = name
override def getCommandAliases = aliases
override def canCommandSenderUseCommand(source: ICommandSender) = true
override def isUsernameIndex(command: Array[String], i: Int) = false
override def addTabCompletionOptions(source: ICommandSender, command: Array[String]) = List.empty[AnyRef]
}