How to check if player is op

Started by Ciolli on Fri, 09/11/2020 - 18:40

Topic category: Help with modding (Java Edition)

Last seen on 02:28, 13. Sep 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to check if player is op
Fri, 09/11/2020 - 18:40

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.

Last seen on 13:37, 22. Oct 2020
Joined Jan 2019
User points:

User statistics:

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

Operators = Command Level 4

Last seen on 13:37, 22. Oct 2020
Joined Jan 2019
User points:

User statistics:

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

*Permission Level not Command Level

Last seen on 02:28, 13. Sep 2020
Joined Sep 2020
User points:

User statistics:

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

Could you explain?

Last seen on 13:48, 24. Oct 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 02:28, 13. Sep 2020
Joined Sep 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 13:37, 22. Oct 2020
Joined Jan 2019
User points:

User statistics:

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

On Command Creation, you can select the Permission Level.

Last seen on 02:28, 13. Sep 2020
Joined Sep 2020
User points:

User statistics:

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

Oh I am stupid thank you

Last seen on 13:48, 24. Oct 2020
Joined Aug 2020
User points:

User statistics:

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

glad you found a way to implement it!