Custom Commands with no perms

Started by Juplicate on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2020
Points:
780

User statistics:

  • Modifications: 1
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
Custom Commands with no perms

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?

Active 10 months ago
Joined Jun 2015
Points:
1275

User statistics:

  • Modifications: 10
  • Forum topics: 32
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 544
Just change the command…
Sun, 08/09/2020 - 11:18

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

Active 2 years ago
Joined Mar 2020
Points:
780

User statistics:

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

I tried it wont let me :/

Active 1 week ago
Joined Aug 2016
Points:
3303

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2931
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.

Active 4 years ago
Joined Jul 2018
Points:
685

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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?