[1.9.0] commands don't work if the player's not OP

Started by mensreamc on Thu, 08/15/2019 - 05:54

Topic category: Bugs and solutions

Last seen on 00:23, 5. Sep 2019
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
[1.9.0] commands don't work if the player's not OP
Thu, 08/15/2019 - 05:54

In this case "execute command / effect @p potioncore:purity 7200" doesn't work if the player's not OP.

The specific configuration involves a potion that runs a procedure that runs the command. Other iterations also fail to run.

Is there any way we can have an option to have the server run commands when a client initiates them?

Thanks!

Last seen on 19:50, 16. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
No, because this would be a…
Thu, 08/15/2019 - 18:16

No, because this would be a security breach. Minecraft does not allow this in its core. This was one could make a client-only mod and convince the server to run commands.

One could make a custom packet that requests command execution on the server that has the mod too, but this is out of scope right now, but might not be in 2.x.x branch of MCreator.