Class OnlyTopCommand
java.lang.Object
net.md_5.bungee.api.plugin.Command
de.simonsator.partyandfriends.api.TopCommand
de.simonsator.partyandfriends.api.OnlyTopCommand
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.TabExecutor
-
Field Summary
Fields inherited from class de.simonsator.partyandfriends.api.TopCommand
subCommands
-
Constructor Summary
ModifierConstructorDescriptionprotected
OnlyTopCommand
(String[] pCommandNames, String pPermission, String pPrefix) -
Method Summary
Modifier and TypeMethodDescriptiononTabComplete
(net.md_5.bungee.api.CommandSender commandSender, String[] strings) Methods inherited from class de.simonsator.partyandfriends.api.TopCommand
addCommand, execute, getPrefix, getSubCommand, isPlayer, onCommand, playerComplete, sort, tabComplete
Methods inherited from class net.md_5.bungee.api.plugin.Command
canEqual, equals, getAliases, getName, getPermission, getPermissionMessage, hashCode, hasPermission, setPermissionMessage, toString
-
Constructor Details
-
OnlyTopCommand
- Parameters:
pCommandNames
- The command name and the different aliases of this command. By these names the method can be called.pPermission
- The permission which is needed to execute this command. If it is blank no permission is needed to execute this command.pPrefix
- The prefix which should be used by all subcommands. The prefix gets returned by the methodTopCommand.getPrefix()
.
-
-
Method Details
-
onTabComplete
public List<String> onTabComplete(net.md_5.bungee.api.CommandSender commandSender, String[] strings) - Specified by:
onTabComplete
in interfacenet.md_5.bungee.api.plugin.TabExecutor
- Overrides:
onTabComplete
in classTopCommand
-