Class CommandLoader
java.lang.Object
com.bencodez.votingplugin.commands.CommandLoader
The Class CommandLoader.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.bencodez.advancedcore.api.inventory.BInventoryButtonGets the commands.booleanhasPermission(org.bukkit.entity.Player player, String cmd) booleanisVotingPluginCommand(org.bukkit.entity.Player player, String cmd) voidLoad aliases.voidLoad commands.voidLoad tab complete.voidprocessSlotClick(org.bukkit.entity.Player player, VotingPluginUser user, String slot) voidsetCommands(HashMap<String, com.bencodez.advancedcore.api.command.CommandHandler> commands) Sets the commands.
-
Constructor Details
-
CommandLoader
-
-
Method Details
-
processSlotClick
-
getAdminPerm
- Returns:
- the adminPerm
-
getBackButton
public com.bencodez.advancedcore.api.inventory.BInventoryButton getBackButton(VotingPluginUser user) -
getCommands
Gets the commands.- Returns:
- the commands
-
getModPerm
- Returns:
- the modPerm
-
getPlayerPerm
- Returns:
- the playerPerm
-
hasPermission
-
isVotingPluginCommand
-
loadAliases
public void loadAliases()Load aliases. -
loadCommands
public void loadCommands()Load commands. -
loadTabComplete
public void loadTabComplete()Load tab complete. -
setCommands
public void setCommands(HashMap<String, com.bencodez.advancedcore.api.command.CommandHandler> commands) Sets the commands.- Parameters:
commands- the commands
-