#Force an OP command on a non-OP player
30 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
server.runCommandSilent(`execute as ${player.username} run <command here>`)
is this a code for 1.18.2? And where do I insert it?
it works on any versions, and you put it anywhere you want, what event are you using?
idk 😅

What should you use as an event?
well dont ask me, i dont know what you want to do 
that
to progress on my modpack you have to do the solarcraft mod but this mod uses a progression system which is obsolete. a command exists to make the progress 100% which is "/solarcraft progressions unlock all" but the problem is that you have to be operational to do this command and I want to make sure that with kubejs the command works even when it is not op.
I would just make a quest with the command as reward
the quest could be a simple checkmark quest
assuming you use ftb quests
you could also make an item which you right click to execute command
or just use the player login event
I did this with ftb quests but it is mandatory to be in op
the problem with an item and when you click it executes an order is that you have to be OP and that on server people will not be op and cannot do the order that's why I want to execute the order without the player being OP
its not, I run op commands with ftb quests a lot
you just check "run with elevated permission"
where do you see it?