Allow @p target selector in /broadcast and /warp commands for commandblock usage in 1.20 #5530
Unanswered
Waterman1001
asked this question in
Ideas and Feature Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our server, we use command blocks in combination with the /broadcast and /warp commands.
This way, if players stand on the pressure plate on top of a command block at the end of a parkour, it announces to the rest of the server that the parkour was completed by the player and it teleports them to a specific essentials warp with /warp @p .
For this, we used to use the @p target selector, because it is the closest player who should be broadcasted (/broadcast @p has finished the server parkour!) and teleported. Unfortunately, since quite some versions now, the target selector for command blocks is not supported in plugin-commands anymore, but only vanilla, unless it is implemented specifically using the
Bukkit#selectEntities
Bukkit API created for it:(https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Bukkit.html#selectEntities(org.bukkit.command.CommandSender,java.lang.String))
Before, we used the plugin CommandHook, in order to still be able to use this. However, currently CommandHook is not yet updated to Minecraft version 1.20.2, and therefore I thought: perhaps this is a good moment to become less dependent on the CommandHook plugin, and simply request target selector (specifically @p) support for this essentials command by EssentialsX in its core! 😄
It would help me as a server owner a lot, simply because it makes us less dependent and allows us to use commandblocks with the broadcast and warp commands.
Thank you a lot for your understanding in advance!
Best regards, and thanks for the considerations! 😊
Beta Was this translation helpful? Give feedback.
All reactions