HEAD NOTE: This plugin works but is currently just a very small project completed by request. If it catches reasonable attention I will work to improve it but as of now it is and will remain a small project with fairly basic features.
Purpose: For some reason there is no way with vanilla Minecraft/Spigot to run plugin commands as a player from a command block? There is a hacky thing with "/execute as @p run <INSERT_COMMAND>" but that only works with VANILLA commands? It seemed a little ridiculous and silly so this allows you to do exactly as the name suggests, run plugin commands as players through command blocks. Note: THIS PLUGIN DOES NOT ALTER PLAYER PERMISSIONS, IT SIMPLY MAKES THEM RUN A COMMAND FROM A COMMAND BLOCK.
Command:
To use this plugin, this is the command format that ONLY works in command blocks (this will not function if typed as a player regardless of permissions).
"cbap <full command here>"
Examples of this would be:
"cbap warp spawn" - Makes the player run "/warp spawn"
"cbap f join default" - Makes the player run "/f join default"
"cbap kit list" - Makes the player run "/kit list"
"cbap give diamond 99999" - Makes the player run "/give diamond 99999". Note: this wouldn't do anything other than give players a missing perms response as if they typed it in chat. This plugin does NOT add permissions to players.
Requirements:
Features:
- Adds in a feature Minecraft should come with anyway.
- Simulates "@p" functionality from command blocks, meaning the NEAREST player to the running command block executes the command. This brings with it all the issues actually using @p does. All I'm here to do is allow non-vanilla commands to be executed as players in command blocks, not fix fundamental command block issues (you shouldn't be using caveman command blocks when plugins exist lol but if you want to be stubborn here ya go).
- Full tab autocomplete support from actual commands. This plugin simulates a player truly typing a command in chat and gives autocomplete suggestions accurate to those from the actual command. This helps staff not have to guess as much when they're typing into the command block.