Sueta
PL

Plexecute

1.0.0

Player execute other plugin commands

·Plugin

ver1.13 and later, it became clear that the "execute" command can no longer execute commands other than vanilla.
Example: (run CrackShot commands)
Before 1.12: success run

/execute @a[r=5] ~ ~ ~ shot give @p weapon

1.13 and later: can't run

/execute as @a[distance=..5] run shot give @p weapon

So simple code, I created something to execute other Plugin commands.

Commands:

/plexecute @Sender run <run command>

@Sender = Target executer (@a, @p, etc... It can set selector. example: @a[distance=..5] )
<run command> = The command you want to execute.

Note:
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)

Similar projects

Plugin →