Class SubCommand
java.lang.Object
com.andrei1058.bedwars.api.command.SubCommand
- 
Constructor SummaryConstructorsConstructorDescriptionSubCommand(ParentCommand parent, String name) Create a sub-command for a bedWars command Make sure you return true or it will say command not found
- 
Method SummaryModifier and TypeMethodDescriptionbooleanCheck if a sender can see/ use the sub cmdabstract booleanAdd your sub-command code under this methodnet.md_5.bungee.api.chat.TextComponentGet command description for subCommands listGet parent commandintGet show priorityGet sub-command nameManage sub-command tab completebooleanhasPermission(org.bukkit.command.CommandSender p) Check if player has permission to use the commandbooleanCheck if it is an arena setup commandbooleanisShow()Check if is displayed on the listvoidsetArenaSetupCommand(boolean arenaSetupCommand) True if it is an arena setup sub-commandvoidsetDisplayInfo(net.md_5.bungee.api.chat.TextComponent displayInfo) This is the command information in the subCommands list of the target parentvoidsetPermission(String permission) Set permission for sub-commandvoidsetPriority(int priority) This is the command priority in the sub-commands list You may use this method if you set showInList true Commands with a minor number will be displayed firstvoidshowInList(boolean value) Display the sub-command under the main command Don't forget to set the displayInfo Ops only will see it cuz players receive a commands list from messages file
- 
Constructor Details- 
SubCommandCreate a sub-command for a bedWars command Make sure you return true or it will say command not found- Parameters:
- parent- parent command
- name- sub-command name
 
 
- 
- 
Method Details- 
executeAdd your sub-command code under this method
- 
getSubCommandNameGet sub-command name
- 
showInListpublic void showInList(boolean value) Display the sub-command under the main command Don't forget to set the displayInfo Ops only will see it cuz players receive a commands list from messages file
- 
setDisplayInfopublic void setDisplayInfo(net.md_5.bungee.api.chat.TextComponent displayInfo) This is the command information in the subCommands list of the target parent
- 
setPrioritypublic void setPriority(int priority) This is the command priority in the sub-commands list You may use this method if you set showInList true Commands with a minor number will be displayed first
- 
getParentGet parent command
- 
getPrioritypublic int getPriority()Get show priority
- 
getDisplayInfopublic net.md_5.bungee.api.chat.TextComponent getDisplayInfo()Get command description for subCommands list
- 
setArenaSetupCommandpublic void setArenaSetupCommand(boolean arenaSetupCommand) True if it is an arena setup sub-command
- 
isArenaSetupCommandpublic boolean isArenaSetupCommand()Check if it is an arena setup command
- 
isShowpublic boolean isShow()Check if is displayed on the list
- 
setPermissionSet permission for sub-command
- 
hasPermissionpublic boolean hasPermission(org.bukkit.command.CommandSender p) Check if player has permission to use the command
- 
canSeeCheck if a sender can see/ use the sub cmd- Parameters:
- api- BedWars api instance
 
- 
getTabCompleteManage sub-command tab complete
 
-