Class SubCommand
java.lang.Object
de.themoep.connectorplugin.velocity.commands.SubCommand
- All Implemented Interfaces:
com.velocitypowered.api.command.Command
,com.velocitypowered.api.command.CommandMeta
,com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
,com.velocitypowered.api.command.SimpleCommand
- Direct Known Subclasses:
ConnectorCommand
,ProxyConsoleCommand
,ServerConsoleCommand
,ServerPlayerCommand
,TeleportCommand
,TeleportToPlayerCommand
public abstract class SubCommand
extends Object
implements com.velocitypowered.api.command.CommandMeta, com.velocitypowered.api.command.SimpleCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.velocitypowered.api.command.CommandMeta
com.velocitypowered.api.command.CommandMeta.Builder
Nested classes/interfaces inherited from interface com.velocitypowered.api.command.SimpleCommand
com.velocitypowered.api.command.SimpleCommand.Invocation
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubCommand
(VelocityConnectorPlugin plugin, String name) SubCommand
(VelocityConnectorPlugin plugin, String usage, String permission, String... aliases) -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) Collection<com.mojang.brigadier.tree.CommandNode<com.velocitypowered.api.command.CommandSource>>
getHints()
getName()
getSubCommand
(String name) getUsage()
boolean
hasPermission
(com.velocitypowered.api.command.CommandSource source) boolean
hasPermission
(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) onTabComplete
(com.velocitypowered.api.command.CommandSource sender, String[] args) void
registerSubCommand
(SubCommand subCommand) boolean
suggest
(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.velocitypowered.api.command.InvocableCommand
suggestAsync
-
Field Details
-
plugin
-
-
Constructor Details
-
SubCommand
-
SubCommand
public SubCommand(VelocityConnectorPlugin plugin, String usage, String permission, String... aliases)
-
-
Method Details
-
registerSubCommand
-
getSubCommand
-
execute
public void execute(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) - Specified by:
execute
in interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
run
-
suggest
- Specified by:
suggest
in interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
onTabComplete
-
hasPermission
public boolean hasPermission(com.velocitypowered.api.command.SimpleCommand.Invocation invocation) - Specified by:
hasPermission
in interfacecom.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
-
hasPermission
public boolean hasPermission(com.velocitypowered.api.command.CommandSource source) -
getSubCommands
-
getPlugin
- Specified by:
getPlugin
in interfacecom.velocitypowered.api.command.CommandMeta
-
getName
-
getUsage
-
getPermission
-
getAliases
- Specified by:
getAliases
in interfacecom.velocitypowered.api.command.CommandMeta
-
getHints
public Collection<com.mojang.brigadier.tree.CommandNode<com.velocitypowered.api.command.CommandSource>> getHints()- Specified by:
getHints
in interfacecom.velocitypowered.api.command.CommandMeta
-