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.




Let me know if you encounter any issue !
----------, Aug 31, 2024

Let me know if you encounter any issue.
----------, Aug 19, 2024

Let me know if you encounter an issue.
----------, Aug 17, 2024

Let me know if you encounter an issue.
----------, Jan 1, 2024

Let me know if you encounter an issue.
----------, Jul 31, 2023

The previous bug that should have been fixed in 1.0.32 is now really fixed for most of the time. It can still occur for some unknown reasons if you are using some other plugins that loads on STARTUP and not POSTWORLD.

More information about the bug : www.spigotmc.org/threads/603042

For now, this should be fixed for almost everybody.
----------, May 7, 2023

• Fixed /execute psudo feature for 1.19.4 by dropping the Commodore usage (directly Brigadier now).
• Fixed some weird errors on uncommon Minecraft versions.
• Dropped Aikar's timings on Paper with psudoasop since it is now deprecated.
----------, May 4, 2023

Still working on 1.19.2 and less.
----------, Dec 24, 2022

Added command /psudoasconsole that basically does the same thing as /psudoas but the console replaces all senders.

The command /psudoasconsole <command> replaces the old /psudoas console <command>.
----------, Nov 2, 2022

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

Drop support for 1.12 and less. Stick to 1.0.27 to get 1.12 support.
Old selector parameters from 1.12- do not work anymore.
Selectors are now exactly those from vanilla commands, so the following parameters are now working :
• sort=
• nbt=
• advancements=
• predicate=

An error is thrown with more informations when a selector is malformed.
----------, Jul 12, 2022

1.0.27
Optimized team=, scores= to find a Team or an Objective
Fixed scores={objective!=min..max}
Fixed name= not working on players (their CustomName is null)
Fixed get distance of non player entities
Console has now a location at default world's spawn

1.0.26
Fixed some usage of distance in min..max in selector, like 0.1..10.

1.0.25
Added /psudoasraw command that ignore selectors and relative coordinates ~ ^ in command, to only parse the sender selector.
----------, Dec 4, 2021

Fixed error when a @ is used in the command but not as selector, but also some error when a selector is empty like @e[].
----------, Sep 9, 2021

Fixed specific issue with local or relative coordinates.
----------, May 19, 2021

Fixed issue when a selector doesn't have arguments or only has empty bracket.
----------, Mar 6, 2021

1.0.21
Selectors can now have spaces between their tags.

1.0.20
Fixed some bugs with coordinates and code improvement.

1.0.19
Fixed [type=] if the given type contains 'minecraft:'
----------, Feb 24, 2021

1.0.18
Added TabCompleter for the list of available loaded commands and their arguments.
----------, Nov 20, 2020

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