PsudoCommands - Perform plugin commands after /execute and use selectors ! (Fork) icon

PsudoCommands - Perform plugin commands after /execute and use selectors ! (Fork) -----

Add support to /execute and @ base-game features with plugin commands that may not support them.



SUPPORT /EXECUTE VANILLA COMMAND !!!!
PsudoCommands is now supported to 1.14.4+ only (up to 1.19).

Plugin commands can now be performed after a /execute vanilla command ! All you have to do is
/execute <parameters> run psudo <command>.

The old behavior with only psudo still works, except for psudoas. The equivalent to
/psudoas <target> <command>
is
execute as <target> at @s run psudoas <command>.

With execute, the coordinates (e.g. ~ ~ ~ or ^ ^ ^) and selector depending on location (e.g. distance=) of the following command after psudo depends on the last at of the execute command. For exemple, /execute at @e[type=pig] run psudo say There is a pig at ~ ~ ~ !

Still with execute, the executor of the command (selector @s) from any command following "psudo" now depends on the last as of the execute command. For example, /execute as @e[type=pig] run psudo say hello @s ! will say hello to every loaded pig. Unlike vanilla execute, the "say" is not performed directly by pigs but by the server.

To make someone run the command after psudo, this should be psudoas and not psudo and this person must be selected in the last as of execute command. This only works for players that have the permission to perform the command. For example : /execute as @a[tag=ritual] run psudoas god @s set the god mod to every player with the tag ritual and that can already use /god command.

To ignore pre-check permissions of a plugin command when using psudoas, use psudoasop instead, e.g. /execute as @a[tag=ritual] run psudoasop god @s. This command DOES NOT give the operator, it only ignore pre-check permissions. If the plugin command checks permissions inside onCommand method, then psudoasop will still fail if the sender hasn't the permissions and I can't do anything for this, developers should know how to link permissions to a command.
Be careful with psudoasop, for now timings don't work.

Don't forget to use psudouuid with mobs to replace the selector by the uuid and not a poor "pig", even with @s !


This update was possible thanks to the beginning of the work of Kamesuta ( https://github.com/Numa-Lab/PsudoCommands) that I upgraded (e.g. for at support or tab completion for plugin commands).
----------, Jul 17, 2022
Resource Information
Author:
----------
Total Downloads: 1,216
First Release: Sep 4, 2020
Last Update: Aug 31, 2024
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings