Custom Commands with no perms

Started by Juplicate on Sun, 08/09/2020 - 04:23

Topic category: Help with modding (Java Edition)

Last seen on 19:57, 22. Aug 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Commands with no perms
Sun, 08/09/2020 - 04:23

I wanna make it so I can do a command on any server without op, a mod that lets me play songs to myself with a command. I need at least permission level 1 on servers to use this, is there a way to make command not require a permission level?

Last seen on 17:38, 29. Sep 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Just change the command…
Sun, 08/09/2020 - 11:18

Just change the command level to 0 in the command's parameters...

Last seen on 19:57, 22. Aug 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I tried it wont let me :/
Sun, 08/09/2020 - 12:48

I tried it wont let me :/

Last seen on 11:02, 29. Sep 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The level 1 for permissions…
Sun, 08/09/2020 - 16:42

The level 1 for permissions is like the 0. Everyone should be able to use your command.

Last seen on 20:24, 25. Aug 2020
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Op level 1 is still an op…
Tue, 08/25/2020 - 20:24

Op level 1 is still an op level that needs to be given. If you want it to be available for everyone, don't include a level check in the procedure(if you're using 2020.3 or older. As for 2020.4, you can do this for now:		return LiteralArgumentBuilder.<CommandSource>literal("example").requires(s -> s.hasPermissionLevel(2)) with ".requires(s -> s.hasPermissionLevel(2)" selectedDelete the part of the code highlighted in the image

When finished, it should look something like this:

		return LiteralArgumentBuilder.<CommandSource>literal("example"))

I think the devs should look into this because it is definitely an issue. Maybe add a checkbox to enable the permission level check?