Sueta
AB

AbilityHotbar

1.0

Bind commands to items that trigger when the item is held. Great for RPG servers!

·Plugin

With this plugin, you can bind commands to items. When a player changes his selected item, the selected item's command is executed and the selected item slot is set back to the default item slot.

Example usage with Commandbook commands

When you load the plugin, the plugin will take effect and start setting your selected item back to the first item. To disable this for yourself, simply use /hotbarbypass. If you want to disable it permanently, give yourself the permission 'abilityhotbar.bypass'

Commands

/additemcommand: Add a command to the item you're holding
/removeitemcommand: Remove a command from the item you're holding
/listitemcommands: List the commands added to the item you're holding.
/abilityhotbar reload: Reload AbilityHotbar configuration.
/hotbarbypass: Bypass hotbar selection changing and command executing on item held. Use again to return to normal.

Permissions

abilityhotbar.addcommand: Use /additemcommand. Defaults to OP only.
abilityhotbar.removecommand: Use /removeitemcommand. Defaults to OP only.
abilityhotbar.list: Use /listitemcommands. Defaults to OP only.
abilityhotbar.reload: Use /abilityhotbar reload. Defaults to OP only.
abilityhotbar.bypasscommand: Use /hotbarbypass. Defaults to OP only.
abilityhotbar.bypass: Permanently bypass this plugin's functionality. Defaults to no one.

Configuration

default_slot: must be between 1 and 9. Determines the default slot used for setting players' slots back.

This plugin should be compatible with all server versions, but it's only tested on 1.12.

Did the plugin crash or did you find a bug? Send me a private message here! https://www.spigotmc.org/conversations/add?to=Fluglow&title=Issue with AbilityHotbar plugin

Similar projects

Plugin →