public class CommandBanIp extends CommandBase
CommandBase.CoordinateArg
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
IP_PATTERN |
Constructor and Description |
---|
CommandBanIp() |
Modifier and Type | Method and Description |
---|---|
protected void |
banIp(MinecraftServer server,
ICommandSender sender,
java.lang.String ipAddress,
java.lang.String banReason) |
boolean |
checkPermission(MinecraftServer server,
ICommandSender sender) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.lang.String |
getCommandName() |
java.lang.String |
getCommandUsage(ICommandSender sender) |
int |
getRequiredPermissionLevel() |
java.util.List<java.lang.String> |
getTabCompletionOptions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos pos) |
buildString, compareTo, doesStringStartWith, entityToNBT, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandAliases, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
public java.lang.String getCommandName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public boolean checkPermission(MinecraftServer server, ICommandSender sender)
checkPermission
in interface ICommand
checkPermission
in class CommandBase
public java.lang.String getCommandUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
public java.util.List<java.lang.String> getTabCompletionOptions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos pos)
getTabCompletionOptions
in interface ICommand
getTabCompletionOptions
in class CommandBase
protected void banIp(MinecraftServer server, ICommandSender sender, java.lang.String ipAddress, @Nullable java.lang.String banReason)