hi ! i've been trying to get @p to work with a few things now (decent holograms, citizens commands, etc) but it never ends up going to the person closest to where the command was executed from. there definitely is a radius, since these things are all in my spawn area and work normally if the person is alone, but if someone else is there, it completely messes up the command. is this a mc bug, spigot bug, or something else i should look at, and how would i fix it? currently using spigot on 1.21.11 ^^'
#(colondee_) @p not going to the closest person
17 messages · Page 1 of 1 (latest)
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
i wouldnt recommend using these arguments with plugins
should use proper arguments that given plugin provided
also why spigot lol
context-origin limitation
When a plugin like Citizens or DecentHolograms executes a command, the "source" location isn't always tied to the NPC's coordinates in a way the vanilla @p selector understand
Citizens has its own internal placeholders designed to bypass vanilla selector issues. Instead of using @p, use the <p> placeholder. is that what you needed?
eg, /npc cmd add tell "<p>, Welcome to our Server!"
If you need the command to run with the player's own permissions (eg, like /spawn or /home, use the -p flag as explained. eg: /npc command add -p spawn
Welcome to the Citizens Wiki!
Citizens is a popular Minecraft server plugin that allows you to create non player characters (NPCs) to provide varied gameplay and functionality for your server such as basic statues, shopkeepers, guards, scriptable NPCs and much more.
For holograms, @p is generally unsupported for dynamic text. If your server is running PlaceholderAPI / PAPI, you also can use the viewer-specific placeholders, like the pllaceholder %player_name% for a players name (but not this example, because you should always prefer the built-in Citizen's placeholder<p> over %player_name%
If you are strictly forced to use a vanilla selector for a complex command that doesn't support <p>, you'd need the execute vanilla command and im both not sharing that or explaining it initially unless you claim it's your only and worst option
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@daring sage
thank you ^^