How to check if OP in procedure

Started by ToastaMods on

Topic category: Help with modding (Java Edition)

Last seen on 21:10, 18. Sep 2023
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if OP in procedure

How would I check if a user is OP in a proceedure? It's for a food mod and the GUI to give can only open if you have OP

-- Using --

- Keypress to open

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You would have to check the…
Sat, 09/23/2023 - 00:44

You would have to check the command permission level using the procedure block: https://imgur.com/fwyQ10L

According to Minecraft Fandom, here are the permission levels and what they do:

Level 1 (moderator)

Player can bypass spawn protection.

Level 2 (gamemaster)

Player or executor can use more commands and player can use command blocks.

Level 3 (admin)

Player or executor can use commands related to multiplayer management.

Level 4 (owner)

Player or executor can use all of the commands, including commands related to server management.