Running commands through NPCs without giving players permission to run them elsewhere

I'm having a dilemma where I want player to be able to access a server shop, RTP commands, and other functions through an NPC (ZNPC's+) without giving them the ability to do so outside of the NPC. The issue is when I give them the permission to run the command through luckperms the NPC is running it will also work outside just that NPC, while if they do not have the permission it won't work with the NPC. I have tried using things like placeholders (%player_name%) and execute as %player_name% run [command] through executing from console but so far nothing I do seems to work. Would like some insight or advice from people who have tried things like this before.
No description
19 Replies
Admincraft Meta
Admincraft Meta•7mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by .deathpacito#0
Deathpacito
DeathpacitoOP•7mo ago
I am trying to use ZNPCs NPCs to open a menu from shopkeepers using the command /shopkeepers remote Shop-1
ProGamingDk
ProGamingDk•7mo ago
worldguard extra flags, lp context and a small region around him
Deathpacito
DeathpacitoOP•7mo ago
Is this how the above situation is normally handled by servers? Seems quite convoluted for something that should be solvable by some kinda pseudo op command insert
ProGamingDk
ProGamingDk•7mo ago
sure that does make sense, join the discord and ask em to add it then running a thing as op just isnt the best
Deathpacito
DeathpacitoOP•7mo ago
Is this like a passive aggressive thing or an actual suggestion? I can't tell
ProGamingDk
ProGamingDk•7mo ago
actual suggestion, it makes sense to atleast have it as a option
Deathpacito
DeathpacitoOP•7mo ago
Aight, i'll check with them Just want to say it's incredibly funny how I clicked on the Znpc+ dev to snoop and he has you as a friend, you're everywhere
ProGamingDk
ProGamingDk•7mo ago
wait hwat i am?
Deathpacito
DeathpacitoOP•7mo ago
This guy
No description
ProGamingDk
ProGamingDk•7mo ago
oh im the sys-admin on one of the servers he works on lmao
Deathpacito
DeathpacitoOP•7mo ago
I'm gonna follow this recommendation for now until someone else comes up with a better solution I have WGextraflags, but can't find a LP context to restrict to the region
Deathpacito
DeathpacitoOP•7mo ago
ProGamingDk
ProGamingDk•7mo ago
enable in config
Deathpacito
DeathpacitoOP•7mo ago
LP config?
ProGamingDk
ProGamingDk•7mo ago
oops im sorry completely wrong plugin 😭
ProGamingDk
ProGamingDk•7mo ago
GitHub
GitHub - LuckPerms/ExtraContexts: Extra contexts for LuckPerms runn...
Extra contexts for LuckPerms running on Bukkit. Contribute to LuckPerms/ExtraContexts development by creating an account on GitHub.
Deathpacito
DeathpacitoOP•7mo ago
Since i'm on a velocity server does this need to be installed on the proxy or something?
ProGamingDk
ProGamingDk•7mo ago
no just backend

Did you find this page helpful?