lucko / minecraft-command-permissions-fabric

Registers vanilla Minecraft commands in Fabric Permission API with structure "minecraft.command.<command>"
MIT License
46 stars 23 forks source link

Command permissions not doing anything #10

Open itsdinkd opened 3 years ago

itsdinkd commented 3 years ago

using latest version of LuckPerms, Fabric, API for MC 1.17.1, and MCP v1.4.0

image

image

Running these vanilla MC commands in game does not do anything.

itsdinkd commented 3 years ago

Also, not seeing "all commands:" in latest log. I do see Loaded Minecraft Command Permissions though. looking at your if statement on the file that loads getEnv('minecraft-command-permissions.test') maybe there's an issue with that that you're trying to load .test?

TjeuKayim commented 3 years ago

Looking at the screenshots, you seem to be trying to give players access to certain op commands via the LuckPerms web editor. That should be possible with this mod. Can you please elaborate what you mean by “Running these vanilla MC commands in game does not do anything”? For example, what do players (that got the minecraft.command.locate permissions) see when they run /locate mineshaft? What is the output of /lp user <user> permission check minecraft.command.locate?

Maybe one of the other mods on your server is not compatible. Is is possible to test if it does work when disabling all mods except LuckPerms, Fabric API, and minecraft-command-permissions?

Also, not seeing "all commands:" in latest log. I do see Loaded Minecraft Command Permissions though. looking at your if statement on the file that loads getEnv('minecraft-command-permissions.test') maybe there's an issue with that that you're trying to load .test?

Those lines of code are only for debugging purposes. If the environment variable is set, an extra log is printed with "all commands:". It doesn't affect the behavior of the mod whether that is enabled or disabled.

itsdinkd commented 2 years ago

Can you please elaborate what you mean by “Running these vanilla MC commands in game does not do anything”? For example, what do players (that got the minecraft.command.locate permissions) see when they run /locate mineshaft? What is the output of /lp user permission check minecraft.command.locate?

running /locate or /gamemode after giving a player that permission in luckperms with this mod on does not allow the player to run the command.

TjeuKayim commented 2 years ago

Hm, I don't know for sure, but it could be a mod incompatibility.