Plugin category: Idk Minecraft version: 1.16.4-1.17 Suggested name: CommandAttack What I want: I want a plugin that apply a command on hit and there are various placeholders like {attacker} which the person who is attacking the target and {target} is the target of the attacker. There are only 4 commands. /ca, /careload and /caremove and /calist. So the /ca means this format: /ca {command} {no or yes} for example: /ca give {target} minecraft:diamond yes When its applied on a sword or any item and bows any weapons, when a target is hit by a specific command attack, it will give the target diamond without op since its from console. If its no, it means it will be like sudo and they need perms. When you hold a item and do the command, it will give you a id from 1 to infinite. If you want the command removed from attack on a specific item, do /caremove {id} If you want to check the id of the item you are holding send a message only to player who executed the command: do /calist And it will show the id with the command like this: ID: 1 give {target} minecraft:diamond and the /careload is just to reload the config such as messages for ca list or you have no perms to do this. Also, skim-reading is much easier with paragraphs! Ideas for commands: /calist /careload /ca /caremove Ideas for permissions: all commands: ca.admin When I'd like it by: Soon as possible.
@Aphyio I've started this, and implemented most of the functionality. Haven't done any config stuff yet, and there isn't a confirmation message when a command is successfully bound to an item, but that will be easy to fix. Also I think I've got the yes/no requiring the special permission to use the bound command as the opposite of what you gave as an example. E.g. yes/y/true/t = requires the permission ca.sudo, and no/n/false/f = doesn't require special permissions. Built using 1.16.5 Example usage: Code: /ca give {attacker} diamond 1 yes /ca give {target} dirt 1 no /calist /caremove 4 Source code & read me: https://github.com/nofishleft/CommandAttack Download: https://github.com/nofishleft/CommandAttack/releases/download/v0.1.0/CommandAttack.jar Edit: Added configurable messages + chat color. Config info: https://github.com/nofishleft/CommandAttack#config Download: https://github.com/nofishleft/CommandAttack/releases/download/v0.2.0/CommandAttack.jar