CraftTweaker

CraftTweaker

151M Downloads

Some commands should be available without permissions

Shahelion opened this issue · 13 comments

commented

Issue Description:

The command to identify the held item cannot be used if cheats are disabled. No reason for this, honestly. Same with the help command (and because of this, possibly others that I don't know of).

What happens:

Prints in chat "You do not have permission to use this command"


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 14.23.1.2555
  • Crafttweaker: 4.1.10
commented

The craftTweaker commands are only needed for pack makers and operators.
Giving normal users access to them could possibly break some modpacks, since /ct hand would also return all stored nbt-data!

Also, the logging features might be abused if people were able to publicly access them

commented

I honestly don't see how the hand command could cause problems.

Logging features?

commented

@kindlich

Would it possible to get of list of all the permission nodes used by this mod though please so that we can let specific people use some of the commands? On our network we have staff who do not have creative access who fix pack recipes or such not due to bugs / Glitches / Banned Items (Banned for server stability) and it would be nice to not have to either give them creative access or grab one of the few Admins that do have creative access to get the names of items.

The ability to set the permission level for either specific commands or all commands would be a time saver for us. If not I understand but most well managed servers should know how to properly prohibit permissions so normal players can not break things, and if not they will learn quickly. lol

commented

@kindlich let me reach out to some of our other server staff and see if I can't get you the information. But yes, setting it to something other than OP would be nice. I know that Song Forge replaces Vanilla OP (not your problem I know) but I don't know off the top of my head what they do use.

commented

OK, so this is strange...even after enabling cheats for a singleplayer world, I am still unable to use those commands. Not sure what's going on there.

commented

what error does it give?

commented

It simply says I do not have permission, but i dont know how i could have any more.

commented

can you use any non forge / mc OP command?

commented

Ok so that particular problem is fixed. Initial issue still stands.

commented

@bookerthegeek Sorry, but I have no clue about permission nodes...
CT is open source however, you can always just do a PR if you want a feature to be added lol

What I can tell you is that all commands require a permission level of 4
That could be changeable though, maybe OP-Level 1?

commented

I'm closing this, the problem is that there may be some packs with "hidden" items or something of the like, where the actual item shouldn't be known to the player, and there is the problem of lag spam, which can get big and cause issues

commented

Now, I have no idea if this is possible or not, but what about a config option to allow the commands to be used by non-OP players? Server-side config, of course.

Or does it just not work that way?

commented