LuckPerms

LuckPerms

41.4k Downloads

enable-ops ignoring configuration value. Always disabled

2008Choco opened this issue ยท 9 comments

commented

At one point on my server, I set the enable-ops configuration option to false. I then changed my mind and reset it back to true due to the fact that command blocks were non-functional with operator privileges. As of currently, with enable-ops set to true, LuckPerms continues to tell me that the vanilla OP system is disabled with the message "The vanilla OP system is disabled on this server".

My current config (the relevant parts anyway):


# +----------------------------------------------------------------------------------------------+ #
# |                                 OP (Server Operator) Settings                                | #
# +----------------------------------------------------------------------------------------------+ #

enable-ops: true

auto-op: false

commands-allow-op: false
commented

I was having the same issue on paper 1.17.1. I noticed enabled-ops was set to false for one of my clients so I switched it to enable-ops: true. I restarted the server and it would still give me that Vanilla op is disabled message from LuckPerms.

I deleted the config.yml and restarted the server. Once the config.yml regenerated it pretty much solved it.

commented

Minecraft: 1.12.2 git-Spigot-109b080-a3decfd (11 versions behind as of this message)
LuckPerms: 4.0.88

I'm ever so slightly dated on LuckPerms versions, but I'm using a dev build. No recent commit has addressed the issue I'm having as far as I'm aware. Though I only had a quick glance over code changes. For the most part, I use up-to-date versions of most software.

commented

Did you restart the server after changing the config or did you just do a reload?

commented

Yes, I've restarted a number of times since this configuration change. I've also ensured that I've executed the /lp sync command, but beyond that, the server has been restarted. I noticed this issue a couple days ago but thought nothing of it, only to realize that it's a problem now.

commented

What version do you use?

commented

OPS_ENABLED returns true if auto-op is false and enable-ops is true.

https://github.com/lucko/LuckPerms/blob/master/common/src/main/java/me/lucko/luckperms/common/config/ConfigKeys.java#L308

The /op command is disabled if OPS_ENABLED is false.
https://github.com/lucko/LuckPerms/blob/master/bukkit/src/main/java/me/lucko/luckperms/bukkit/listeners/BukkitPlatformListener.java#L70

In other words, if enable-ops is set to false, or if auto-op is true, the command will be blocked. Otherwise, it's allowed.

The only thing I can think of is that you might've duplicated the options twice in your config file somehow?

commented

Request that this be reopened because I can confirm that there are no configuration duplicates. I have Ctrl + F'd my configuration file and also searched manually to no avail. The configuration options listed in the original ticket are the only ones present in the configuration file.

commented

Test with the same config you posted above, no other options in the file.

C:\Users\luck\Desktop\Spigot>type plugins\LuckPerms\config.yml
enable-ops: true
auto-op: false
commands-allow-op: false

C:\Users\luck\Desktop\Spigot>java -jar spigot.jar
Loading libraries, please wait...
[19:25:46 INFO]: Starting minecraft server version 1.12.2
[19:25:46 INFO]: Loading properties
[19:25:46 INFO]: Default game type: SURVIVAL
[19:25:46 INFO]: This server is running CraftBukkit version git-Spigot-9b8bba4-bdcc7c7 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
[19:25:46 INFO]: Debug logging is disabled
[19:25:46 INFO]: Server Ping Player Sample Count: 12
[19:25:46 INFO]: Using 4 threads for Netty based IO
[19:25:46 INFO]: Generating keypair
[19:25:46 INFO]: Starting Minecraft server on *:25565
[19:25:46 INFO]: Using default channel type
[19:25:46 INFO]: Set PluginClassLoader as parallel capable
[19:25:46 INFO]: [LuckPerms] Loading LuckPerms v4.0.97
[19:25:46 INFO]: [LP] Identified the following dependencies: [CAFFEINE]
[19:25:46 INFO]: [LuckPerms] Enabling LuckPerms v4.0.97
[19:25:46 INFO]:                __        __   ___  __         __  
[19:25:46 INFO]:     |    |  | /  ` |__/ |__) |__  |__)  |\/| /__` 
[19:25:46 INFO]:     |___ \__/ \__, |  \ |    |___ |  \  |  | .__/ 
[19:25:46 INFO]:
[19:25:46 INFO]:   Loading version v4.0.97 on Bukkit - CraftBukkit
[19:25:46 INFO]:   Running on server version git-Spigot-9b8bba4-bdcc7c7 (MC: 1.12.2) - 1.12.2-R0.1-SNAPSHOT
[19:25:46 INFO]:
[19:25:47 INFO]: [LP] Loading configuration...
[19:25:47 INFO]: [LP] Identified the following dependencies: [H2_DRIVER]
[19:25:47 INFO]: [LP] Loading storage provider... [H2]
[19:25:47 INFO]: [LP] Loading internal permission managers...
[19:25:47 INFO]: [LP] Performing initial data load...
[19:25:47 INFO]: [LP] Successfully enabled. (took 545ms)
[19:25:47 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[19:25:47 INFO]: Preparing level "world"
[19:25:47 INFO]: Preparing start region for level 0 (Seed: 691908200454652844)
[19:25:48 INFO]: Preparing spawn area: 82%
[19:25:49 INFO]: Preparing start region for level 1 (Seed: 691908200454652844)
[19:25:49 INFO]: Preparing start region for level 2 (Seed: 691908200454652844)
[19:25:49 INFO]: Server permissions file permissions.yml is empty, ignoring it
[19:25:49 INFO]: Done (2.246s)! For help, type "help" or "?"
[19:25:56 INFO]: UUID of player Luck is c1d60c50-70b5-4722-8057-87767557e50d
[19:25:56 INFO]: Luck[/127.0.0.1:60745] logged in with entity id 280 at ([world]1.5, 74.0, 256.5)
>op Luck
[19:25:59 INFO]: Opped Luck
>deop Luck
[19:26:08 INFO]: De-opped Luck
>stop
[19:26:09 INFO]: Stopping the server
[19:26:09 INFO]: Stopping server
[19:26:09 INFO]: [LuckPerms] Disabling LuckPerms v4.0.97
[19:26:09 INFO]: [LP] Closing storage...
[19:26:09 INFO]: [LP] Shutting down internal scheduler...
[19:26:09 INFO]: [LP] Goodbye!
[19:26:09 INFO]: Saving players
[19:26:09 INFO]: Luck lost connection: Server closed
[19:26:09 INFO]: Luck left the game
[19:26:09 INFO]: Saving worlds
[19:26:09 INFO]: Saving chunks for level 'world'/overworld
[19:26:10 INFO]: Saving chunks for level 'world_nether'/the_nether
[19:26:10 INFO]: Saving chunks for level 'world_the_end'/the_end

Changed the initial config and set enable-ops to false - no other changes aside from that

C:\Users\luck\Desktop\Spigot>type plugins\LuckPerms\config.yml
enable-ops: false
auto-op: false
commands-allow-op: false

C:\Users\luck\Desktop\Spigot>java -jar spigot.jar
Loading libraries, please wait...
[19:26:33 INFO]: Starting minecraft server version 1.12.2
[19:26:33 INFO]: Loading properties
[19:26:33 INFO]: Default game type: SURVIVAL
[19:26:33 INFO]: This server is running CraftBukkit version git-Spigot-9b8bba4-bdcc7c7 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
[19:26:33 INFO]: Debug logging is disabled
[19:26:33 INFO]: Server Ping Player Sample Count: 12
[19:26:33 INFO]: Using 4 threads for Netty based IO
[19:26:33 INFO]: Generating keypair
[19:26:33 INFO]: Starting Minecraft server on *:25565
[19:26:33 INFO]: Using default channel type
[19:26:33 INFO]: Set PluginClassLoader as parallel capable
[19:26:33 INFO]: [LuckPerms] Loading LuckPerms v4.0.97
[19:26:33 INFO]: [LP] Identified the following dependencies: [CAFFEINE]
[19:26:33 INFO]: [LuckPerms] Enabling LuckPerms v4.0.97
[19:26:33 INFO]:                __        __   ___  __         __  
[19:26:33 INFO]:     |    |  | /  ` |__/ |__) |__  |__)  |\/| /__` 
[19:26:33 INFO]:     |___ \__/ \__, |  \ |    |___ |  \  |  | .__/ 
[19:26:33 INFO]:
[19:26:33 INFO]:   Loading version v4.0.97 on Bukkit - CraftBukkit
[19:26:33 INFO]:   Running on server version git-Spigot-9b8bba4-bdcc7c7 (MC: 1.12.2) - 1.12.2-R0.1-SNAPSHOT
[19:26:33 INFO]:
[19:26:33 INFO]: [LP] Loading configuration...
[19:26:34 INFO]: [LP] Identified the following dependencies: [H2_DRIVER]
[19:26:34 INFO]: [LP] Loading storage provider... [H2]
[19:26:34 INFO]: [LP] Loading internal permission managers...
[19:26:34 INFO]: [LP] Performing initial data load...
[19:26:34 INFO]: [LP] Successfully enabled. (took 587ms)
[19:26:34 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[19:26:34 INFO]: Preparing level "world"
[19:26:34 INFO]: Preparing start region for level 0 (Seed: 691908200454652844)
[19:26:35 INFO]: Preparing spawn area: 82%
[19:26:36 INFO]: Preparing start region for level 1 (Seed: 691908200454652844)
[19:26:36 INFO]: Preparing start region for level 2 (Seed: 691908200454652844)
[19:26:36 INFO]: Server permissions file permissions.yml is empty, ignoring it
[19:26:36 INFO]: Done (2.272s)! For help, type "help" or "?"
[19:26:41 INFO]: UUID of player Luck is c1d60c50-70b5-4722-8057-87767557e50d
[19:26:41 INFO]: Luck[/127.0.0.1:60759] logged in with entity id 282 at ([world]1.5, 74.0, 256.5)
>op Luck
[19:26:44 INFO]: The vanilla OP system is disabled on this server.
>stop
[19:26:47 INFO]: Stopping the server
[19:26:47 INFO]: Stopping server
[19:26:47 INFO]: [LuckPerms] Disabling LuckPerms v4.0.97
[19:26:47 INFO]: [LP] Closing storage...
[19:26:47 INFO]: [LP] Shutting down internal scheduler...
[19:26:47 INFO]: [LP] Goodbye!
[19:26:47 INFO]: Saving players
[19:26:47 INFO]: Luck lost connection: Server closed
[19:26:47 INFO]: Luck left the game
[19:26:47 INFO]: Saving worlds
[19:26:47 INFO]: Saving chunks for level 'world'/overworld
[19:26:48 INFO]: Saving chunks for level 'world_nether'/the_nether
[19:26:48 INFO]: Saving chunks for level 'world_the_end'/the_end
>
C:\Users\luck\Desktop\Spigot>
commented

Seems to be working exactly as intended in my testing (shown above).

Some things to check:

  • Make sure you're fully restarting your server after making configuration changes - these options are not affected by /lp reloadconfig - so you'll need to fully restart

  • Make sure you're actually modifying the right file, and not a copy of it (sounds obvious but it wouldn't be the first time it's happened.)