Description
F-Command is a little and easy to configure Minecraft Plugin which lets you set up multiple commands which are executed on pressing the F or Q key (Swap Hands or dropping Items).
You can configure every command exactly to your needs with the following easy to use options.
- Which Key should be pressed
- Per command Permission
- Define per command if it should be executed by the Player or the Server
- Should the action (Dropping item or swapping hand) be executed
- Does the Player need to sneak or not?
And the best thing is: You can even use PlaceholderAPI within the commands, and therefore integrate hundreds of other Plugins!
Every one of thees options is available for every command you configure!
Usage Ideas
Commands & Permision
Only one command, only one Permission!
/fcmd reload - Reloading your Config
fcommand.admin - Update notification and access to /fcmd reload
Config
# Only turn this on if you're asked by the Dev
# Might spam your console and/or chat ;-)
debug: false
# Example configuration
command:
# Name of the Command.
command1:
key: f # f or q
# Does the Player need to sneak to execute the command?
requireShift: false
# Which permission is required to execute this command?
permission: f-command.example
# Which command should be executed as the player?
# You can also use PlaceholderAPI here!
# Enter without /
command: say f no shift
# Stopping item drop or hand swap from happening
cancel: true
# Should the command be executed from the Server?
executeAsServer: false
command2:
key: F
requireShift: True
permission: f-command.example
command: say F shift
cancel: true
executeAsServer: false
bStats
All Versions
+ Add Version## What's Changed
- Rewrite/everything by @Hutch79 in [#20](https://github.com/Hutch79/F-Command/pull/20)
- Full Changelog**: [2.5.3...2.6.1](https://github.com/Hutch79/F-Command/compare/2.5.3...2.6.1)
This happened after migrating old config files, where the permission level was not set.
It does not add any new features, but improves maintainability and therefore allows for easier addition of new features.
The Configuration file has minimal changes, which are migrated fully automatically.
To be precise, the command options where you configure the command which is executed now only allows a string list.
Also, it got renamed.
Your old config file is not deleted but saved in ./migrations
Issues might happen on config migration or general functionality of the Plugin.
I tested as good as possible, but I'm not able to reproduce every production configuration.
Thanks for Testing!
- Minimal performance optimisation by @Hutch79 in [#9](https://github.com/Hutch79/F-Command/pull/9)
- Fixed Q Detection after InventoryClickEvent by @Hutch79 in [#11](https://github.com/Hutch79/F-Command/pull/11)
Thanks to MINIMAN for reporting the Q Detection Bug!
- Full Changelog**: [2.5.2...2.5.3](https://github.com/Hutch79/F-Command/compare/2.5.2...2.5.3)
- [Feature/restructure](https://github.com/Hutch79/F-Command/pull/8) by [@Hutch79](https://github.com/Hutch79)
- Full Changelog**: https://github.com/Hutch79/F-Command/compare/2.5.1...2.5.2
## What's Changed
- 2.5.1 by @Hutch79 in https://github.com/Hutch79/F-Command/pull/7
- Full Changelog**: https://github.com/Hutch79/F-Command/compare/2.5...2.5.1
- Improve organization for more additions. by @n-tdi in https://github.com/Hutch79/F-Command/pull/6
- Added default values (used if something is not configured)
- Fixed that in some conditions the config was ignored.
- Full Changelog**: https://github.com/Hutch79/F-Command/compare/2.4...2.5
- Execute Commands on dropping an Item with Q
### Fixes:
- The debug config option now also gets reloaded by
/fcmd reload
## IMPORTANT TO UPDATE:
Please add the new
key: feature to your config!https://github.com/Hutch79/F-Command/blob/main/src/main/resources/config.yml#L9
- Full Changelog**: https://github.com/Hutch79/F-Command/compare/2.3...2.4
Huge thanks to @n-tdi for his help in #5 💜
- Full Changelog**: https://github.com/Hutch79/F-Command/compare/2.2...2.3