Required Java Version: 8+
- Tested Minecraft Versions:
KEY COMMAND BIND
Run command when you press a key
Command key bind 1-9
Key press cooldown
Disable item swap
Permission per key
Disable key when player is flying
Disable key when sneaking
Exp level costs
Use %kcbPlayer% placeholder to get the player name
if you want a command to be executed in console put a -c- in front of the command.
- '-c- your command here'
#This will enable/disable debug messages
#This will enable/disable detecting key slots via item swap
#This will enable/disable detecting key slots via key press
#The keypress mode config
#Key/hotbar item slot number
#Enabled or disables slot detections
#disable item swapping on slot
#Enables key returning to a certain defined slot when pressed
#the return slot
#only activate command when player is sneaking when enabled
#disables command activation when player is sneaking overrides the sneakonly feature
#only activate command when player is flying when enabled
#checks player for permission before activating the command when enabled
#the permission to check for
#enables/disables no permission message
#the no permission message
"noPermissionMessage": "Key is still in cooldown",
#the interval a player can activate commands in milliseconds set to 0 to disable
#enables/disables cooldown message
#the cooldown messaged
"cooldownMessage": "Key is still in cooldown",
#enable/disable charging player vanilla exp level cost for command activation
#the exp level cost
#enable/disable insufficient exp message
#the insufficient exp message
"insufficientExpMessage": "Insufficient exp to run command",
#enable/disable charging player economy/money cost via vault plugin for command activation
#the economy/money cost
#enable/disable insufficient money message
#the insufficient money message
"insufficientMoneyMessage": "Insufficient exp to run command",
#the commands to be run separate them with commas and enclose in parenthesis
#to run the command in consol put a -c- in front of the command
"-c- say %kcbPlayer% executed a console command"
How to install?
Just drag and drop the plugin to your plugin folder and restart the server
Configure the config to need.
For bug reports and suggestions please post it in the discussion page
I might miss your reports in the ratings section.
Or send me a message here in my spigot account
Want to help me get motivated? buy me a pizza or coffee
KEY COMMAND BIND 3.6.2
Binding commands to keyboard keys
It's is good for what it does, but is also lacking a little in that certain requirements can't be set for each bind, like sneaking.
Also I couldn't use any keys at all or change slots initially when it started because all the default commands are enabled by default (I was stuck on the first slot) and had to reconfigure first to play.
Please also add an option where item swap doesn't happen if the command is triggered, that way if a player wants to swap items normally with F they can, but Shift+F runs the command and doesn't swap the item.