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.BInventoryButton
Gets the commands.boolean
hasPermission
(org.bukkit.entity.Player player, String cmd) boolean
isVotingPluginCommand
(org.bukkit.entity.Player player, String cmd) void
Load aliases.void
Load commands.void
Load tab complete.void
processSlotClick
(org.bukkit.entity.Player player, VotingPluginUser user, String slot) void
setCommands
(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
-