Package org.kingdoms.commands.admin
Class CommandAdmin
java.lang.Object
org.kingdoms.commands.KingdomsCommand
org.kingdoms.commands.KingdomsParentCommand
org.kingdoms.commands.admin.CommandAdmin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.kingdoms.constants.namespace.NamespaceWhether a certain action was performed by an admin or the action is considered to be an "admin" action.Fields inherited from class org.kingdoms.commands.KingdomsParentCommand
childrenFields inherited from class org.kingdoms.commands.KingdomsCommand
aliases, bypassCooldownPermission, bypassDisabledWorldsPermission, COLORIZE_TAB_COMPLETES, cooldown, description, disabledWorlds, name, parent, path, permission, plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CommandContext context) static CommandAdminstatic voidsetInstance(CommandAdmin instance) static voidsetMetadataFromCommand(org.kingdoms.constants.namespace.NamespacedMetadataContainer container, CommandContext ctx) Methods inherited from class org.kingdoms.commands.KingdomsParentCommand
getChildren, getChildren, tabCompleteMethods inherited from class org.kingdoms.commands.KingdomsCommand
canBypassCooldown, canBypassDisabledWorlds, emptyTab, equals, executeX, getAliases, getCooldown, getDescription, getDisabledWorlds, getDisplayName, getName, getParent, getPermission, getPlayer, getUsage, hashCode, hasPermission, hasPermission, isDisabled, joinArgs, joinArgs, lang, parseBool, processTabMessage, setPermissionDefault, tabComplete, tabComplete, tabComplete, tabComplete, toString, unregisterPermissions
-
Field Details
-
ADMIN
public static final org.kingdoms.constants.namespace.Namespace ADMINWhether a certain action was performed by an admin or the action is considered to be an "admin" action.If used as metadata, the value must be the player UUID responsible, true if console, false if not known.
-
-
Constructor Details
-
CommandAdmin
public CommandAdmin()
-
-
Method Details
-
setMetadataFromCommand
public static void setMetadataFromCommand(org.kingdoms.constants.namespace.NamespacedMetadataContainer container, CommandContext ctx) -
getInstance
-
setInstance
-
execute
- Overrides:
executein classKingdomsParentCommand
-