Package net.minecraft.src
Class CommandServerBanIp
java.lang.Object
net.minecraft.src.CommandBase
net.minecraft.src.CommandServerBanIp
- All Implemented Interfaces:
Comparable,ICommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTabCompletionOptions(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) Adds the strings available in this command to the given list of tab completion options.protected voidbanIP(ICommandSender par1ICommandSender, String par2Str, String par3Str) Actually does the banning work.booleancanCommandSenderUseCommand(ICommandSender par1ICommandSender) Returns true if the given command sender is allowed to use this command.getCommandUsage(ICommandSender par1ICommandSender) intReturn the required permission level for this command.voidprocessCommand(ICommandSender par1ICommandSender, String[] par2ArrayOfStr) Methods inherited from class net.minecraft.src.CommandBase
compareTo, compareTo, doesStringStartWith, func_110661_a, func_110662_c, func_110663_b, func_110664_a, func_110665_a, func_110666_a, func_82360_a, func_82361_a, func_96332_d, func_96333_a, getCommandAliases, getCommandSenderAsPlayer, getListOfStringsFromIterableMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, isUsernameIndex, joinNiceString, notifyAdmins, notifyAdmins, parseDouble, parseInt, parseIntBounded, parseIntWithMin, setAdminCommander
-
Field Details
-
IPv4Pattern
-
-
Constructor Details
-
CommandServerBanIp
public CommandServerBanIp()
-
-
Method Details
-
getCommandName
-
getRequiredPermissionLevel
public int getRequiredPermissionLevel()Return the required permission level for this command.- Overrides:
getRequiredPermissionLevelin classCommandBase
-
canCommandSenderUseCommand
Returns true if the given command sender is allowed to use this command.- Specified by:
canCommandSenderUseCommandin interfaceICommand- Overrides:
canCommandSenderUseCommandin classCommandBase
-
getCommandUsage
-
processCommand
-
addTabCompletionOptions
Adds the strings available in this command to the given list of tab completion options.- Specified by:
addTabCompletionOptionsin interfaceICommand- Overrides:
addTabCompletionOptionsin classCommandBase
-
banIP
Actually does the banning work.
-