ver1.13 and later, it became clear that the "execute" command can no longer execute commands other than vanilla.
- Native Minecraft Version:
- Tested Minecraft Versions:
- Languages Supported:
Example: (run CrackShot commands)
Before 1.12: success run
1.13 and later: can't runCode (Text):/execute @a[r=5] ~ ~ ~ shot give @p weapon
So simple code, I created something to execute other Plugin commands.Code (Text):/execute as @a[distance=..5] run shot give @p weapon
@Sender = Target executer (@a, @p, etc... It can set selector. example: @a[distance=..5] )Code (Text):/plexecute @Sender run <command>
<command> = The command you want to execute.
Example:Code (Text):/plexecute @a[distance=..5] run shot give @p wepon
If the command to be executed does not support selector, it may not work well.
In that case, it may be solved by introducing CommandHook.
(I had this problem when I tried to run the CrackShot's command, but it was solved this)