Plugin name - OffHandEvent
What it does - When you press F, it will run a series of events, depending on whether you have an item or not in the slot.
Features -
- Multiworld Support (disable/enable in certain worlds)
- Run commands, depending on whether there is an item in the offhand or not
EX: If they have an item in the offhand and they press F, it will run commands to clear their inventory and give them a diamond. If they don't have an item, it will run a command to kill them. (Just to clarify, I'm not asking you to make the commands, but let the plugin have the ability to run commands from other plugins).
- Choice as to whether the command will be run by the player or console.
Why you need it - I'm going to be using it for my hub. The example above is not the way that I am going to be using it. I'm putting an unmovable map in the player's offhand, and I want to run a command that removes the map from their hands if they press F.
Time frame - As soon as possible, but no rush.
If you have any questions, please ask me.
Thank you!