public class CommandListBans extends CommandBase
CommandBase.CoordinateArg| Constructor and Description |
|---|
CommandListBans() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(MinecraftServer server,
ICommandSender sender)
Check if the given ICommandSender has permission to execute this command
|
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args)
Callback for when the command is executed
|
java.lang.String |
getName()
Gets the name of the command
|
int |
getRequiredPermissionLevel()
Return the required permission level for this command.
|
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos)
Get a list of options for when the user presses the TAB key
|
java.lang.String |
getUsage(ICommandSender sender)
Gets the usage string for the command.
|
buildString, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxExceptionpublic java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel in class CommandBasepublic boolean checkPermission(MinecraftServer server, ICommandSender sender)
checkPermission in interface ICommandcheckPermission in class CommandBasepublic java.lang.String getUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandExceptionpublic java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, BlockPos targetPos)
getTabCompletions in interface ICommandgetTabCompletions in class CommandBase