U
/u/RaeYNCraft
Guest
I'm working on a server and need to use a button to load a minigame. Minigame, functions and command blocks work 100% when I'm OP, but non-op players aren't able to start the games. Obviously, I can't be online to control this 24/7 and I know there has to be a way to do it. Last time I did something like this was back on 1.19.2. I'm runnning 1.21.1 NeoForge, with a matching dedicated server.
freedomfactory.mcfunction:
execute as u/a[ scores = { gamestarter = 1.. } ] at u/s run function gamestarter:freedomfactory\start
scoreboard players reset * gamestarter
scoreboard players enable u/a gamestarter
start.mcfunction:
zombiemap select FREEDOM_FACTORY
zombiestart
say Starting "FREEDOM FACTORY"! Press the Join button in the next 60 seconds to join round!
As I said, works flawlessly in single player and when I'm OP. But does diddly when any non-OP tries.
I have a command block setup as impulse with a button; command "function gamestarter:freedomfactory\freedomfactory". Works as OP, won't work as non-OP. functions-permission-level= is set to 4 in my server.properties as well.
Any ideas? Things changed slightly since 1.19.2. lol
submitted by /u/RaeYNCraft
[link] [comments]
Continue reading...
freedomfactory.mcfunction:
execute as u/a[ scores = { gamestarter = 1.. } ] at u/s run function gamestarter:freedomfactory\start
scoreboard players reset * gamestarter
scoreboard players enable u/a gamestarter
start.mcfunction:
zombiemap select FREEDOM_FACTORY
zombiestart
say Starting "FREEDOM FACTORY"! Press the Join button in the next 60 seconds to join round!
As I said, works flawlessly in single player and when I'm OP. But does diddly when any non-OP tries.
I have a command block setup as impulse with a button; command "function gamestarter:freedomfactory\freedomfactory". Works as OP, won't work as non-OP. functions-permission-level= is set to 4 in my server.properties as well.
Any ideas? Things changed slightly since 1.19.2. lol
submitted by /u/RaeYNCraft
[link] [comments]
Continue reading...