How to check if player is op

Started by Ciolli on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if player is op

I have to create commands but I need this command to be executed only by operators, I looked for this online and I found out that this feature should have been added in 2020.4 but I can't find this.

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Operators = Command Level 4
Fri, 09/11/2020 - 19:53

Operators = Command Level 4

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
*Permission Level not…
Fri, 09/11/2020 - 20:43

*Permission Level not Command Level

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you explain?
Fri, 09/11/2020 - 20:51

Could you explain?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if i'm not mistaken...  …
Sat, 09/12/2020 - 11:47

if i'm not mistaken...

 

players w/ permission level 1 cannot execute any command.

players w/ level 2 can use commands such as /clear, /difficulty, /effect, /gamemode, /gamerule, /give, /summon, /setblock, /tp.

players w/ level 3  they can use /ban, /deop, /kick, and /op.

players w/ level 4 can use the command /stop that can stop the server.

 

so yeah, use either level 3 or 4.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah but how to tell this in…
Sat, 09/12/2020 - 16:51

Yeah but how to tell this in a procedure

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On Command Creation, you can…
Sat, 09/12/2020 - 19:14

On Command Creation, you can select the Permission Level.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I am stupid thank you
Sat, 09/12/2020 - 19:29

Oh I am stupid thank you

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
glad you found a way to…
Sun, 09/13/2020 - 00:52

glad you found a way to implement it!