#Force an OP command on a non-OP player

30 messages · Page 1 of 1 (latest)

open thunder
#

Hi, is it possible to force with kubejs to do a command that asks to be OP on a player without him being OP?

loud mulchBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

silver herald
#
server.runCommandSilent(`execute as ${player.username} run <command here>`)
open thunder
#

is this a code for 1.18.2? And where do I insert it?

silver herald
#

it works on any versions, and you put it anywhere you want, what event are you using?

open thunder
#

idk 😅

silver herald
open thunder
#

What should you use as an event?

silver herald
#

well dont ask me, i dont know what you want to do confuseddoggo

silver herald
#

yes but in what context

#

when

#

why

#

for what

#

its you doing it not me lol

open thunder
#

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.

robust needle
#

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

silver herald
#

or just use the player login event

open thunder
#

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

robust needle
#

you just check "run with elevated permission"

open thunder
#

where do you see it?

robust needle
#

give me a sec

#

might be that its not present in 1.18 but that would be suprising

open thunder
#

ok

#

so how do I do it?