#issues

1 messages ยท Page 8 of 1

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I backed up my database with "/lp export Pnodes" and then I updated the plugin. When I did "lp import Pnodes" it failed with over 1600 errors. So I added all my groups and a few permissions per group using the Web editor and then I exported the database.

The export file was saved as a ZIP file with Pnodes.json inside. When I unzipped it and viewed the file, the format was completely different from the format in 4.4.0.. So I used the format in the new Pnodes.json file that I exported and ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Well, you are almost there.. I was able to load the old export into luckperms but it had a few errors; all nodes were loaded but every UUID was rejected with this error:

[08:08:06] [ForkJoinPool-2-worker-18/INFO]: [LP] (Import) ------------> Showing Error #1 <------------
[08:08:06] [ForkJoinPool-2-worker-18/INFO]: [LP] (Import) Whilst executing: Command #681
[08:08:06] [ForkJoinPool-2-worker-18/INFO]: [LP] (Import) Command: user b058169e-a3bd-47c8-a7fe-4ce9b7a6f0fb switchprimarygroup mo...

lilac dewBOT
#

We have multiple groups and it seems its alphabetically determining what to show as the primary group in the user info command. For example, I have myself with parent groups admin and default, and according to the yaml file my primary group is default, yet in user info it shows admin. If I do user parent switchprimarygroup to default, it (correctly) says that I already have that set as the primary group. If I remove the admin group as a parent, then the user info command cor...

lilac dewBOT
lilac dewBOT
#

Well, I took the user info out of the import file and it loaded with only two errors:

  1. default (already existed)
  2. bukkit.command.restart (STATE ERROR - owner already has set in context global)

If I do a /lp listgroups; it shows my groups I created. I logged into the game and did a /help and I had default permissions (7 pages of help). I then promoted myself to member and I had no permissions. I then proceeded to promote myself through the entire Track and I still had no permission ...

lilac dewBOT
#

I provided that as an example of a command we're trying to use. Unfortunately for us, the 'setsuffix' command is performing the same function as the 'addsuffix' command, or at least emulating it. Perhaps I didn't do a good job of describing my situation.

We use a GUI that players can select/purchase a suffix with points. When they click on the suffix they want, the 'lp user %player% meta setsuffix 5000 " &7[&d&lAussie&7]&r" global' command is executed. However, when a player wants to sele...

#

The setsuffix command is essentially a simplified version of the addsuffix command with the difference, that the priority should be optional and LP would calculate a own weight to use to display the suffix.

It only replaces suffixes that are the same context as the one you set.

Quote from the command page

This is different from the addsuffix command in that *...

lilac dewBOT
#

OK, I have successfully rebuilt the import file from scratch and was able to import the file into luck perms. I could not import the user UUID data and had to reenter it manually thru Promotions for each use when they logged in. I will have to add any future permission to the file that I add manually in game or using the console for backup purposes because your export is no longer a viable backup option (that was one of your selling points to me installing it). I hope you fix it in the near f...

lilac dewBOT
#

I don't know how useful this would be to anyone else, but figured I'd suggest it anyways.

This suggest relies on a potential future change to LPB, renaming 'server' to 'proxy' and 'world' to 'server' (or which ever words would be used, BrainStone said this was a possibility in the future)

What I suggest is that LuckPerms catches world changes for players, and sets the player's "world meta" to the name of that world. Then, LPB could then read that meta to be used for LPB's 'world' cont...

lilac dewBOT
lilac dewBOT
#

Hello All,

I have a command (/afk) which add a permission node to the player. It seems however this permission node isn't being recognized as added from our plugin until either:

  • The Player relogs
  • We run /lp user {user} permission info
  • We run /lp networksync

We currently have 3 paper servers and one waterfall server. They are all connected using a MariaDB server and the message-service is set to SQL.

Here is some config entries you might find useful. They are the same ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Since @vk2gpz is probably too busy making his 1000th plugin, I'll add the things he said to @MackenzieMolloy on Discord:

then you can ask them to make sure that "null" for "world" parameter is supported for setPlayerPrefix, method. convention is that if "null" is specified for "world", the prefix should be applied to the player regardless of the world the player is in.

null is valid option there.

other permission plugins will apply prefix regardless of world if null was specifi...

lilac dewBOT
#
lilac dewBOT
#

Fixed in the above commit.

no, i have no interest in talking to those who just ignore the specification of Vault.
i do not have any explicit support for LP.
they're the one claiming that LP works with Vault... which clearly does not since they do not follow the specification of Vault.
it's fine for them to claim that "LP is not like other perm plugins"
but he needs to learn that if he claims that LP is supported by Vault, they need to follow Vault's specification.

@vk2gpz It was j...

lilac dewBOT
#

For the past 2 days I was doing permission related things on my server(I'm new), however, permission-EX stopped working and I found luckperms which was better, however when I added permissions for the /warp (essentials.warps.*/essentials.warp.list/essentials.warp) commands in essentials, it wouldn't work no matter what and later permissions such as /nick broke down as well, please help!

#

Make sure you removed PermissionsEx from your server as LuckPerms won't manage perms as long as it is still on the server.
You could also migrate your permissions from PEX to LuckPerms.

Next, make sure you're using EssentialsX and not Essentials (Run /ess version to proof this. If it only displays that Essentials was reloaded, then you're running the wrong version).
Essentials is not supported as it is outdated. Switch to Essenti...

#

Thanks for the fast reply, however, i believe that Permission-EX is not the problem because I'm also testing this on a separate server with only luckperms and basic plugins.
after running the command /ess version as instructed, the server replied with(sorry I don't know how to add a screenshot):
EssentialsX version: 2.17.1.0
LuckPerms: 4.4.1
Vault is not installed. Chat and permissions may not work.
You are running an unsupported server version!

Does this mean I need to install ...

#

This part here seems interesting:

You are running an unsupported server version!

What server version and what server type are you running?
And it wouldn't hurt to try using Vault too :)

Erm I'm sorry about this but I don't know what server type I am currently using, however, I DO know that the server is hosted on Minecraft version 1.15.1 (because minehut only hosts its servers on the latest version of Minecraft).

If you may could you please(i know this is unrelated)...

#

You can use /version to get the info about the server, like version, type, etc.

And Vault is a general API used by many plugins. It allows to connect multiple plugins with each other by providing a simple API.
Like f.e. a plugin manages money and now Essentials wants to know the money of Player X. Instead of having to hook into the API of x plugins to retrieve the balance, does it just use vault and get it through it.

This is kinda how Vault acts... Just imagine it as a major plugin ...

lilac dewBOT
#

this is why I told @MackenzieMolloy not to just copy & paste conversations...(by doing so, it will lose the context) I made those comment in response to your dev team's comment saying that I should not pass "null" and I need to fix my plugin even after I pointed out that that's what Vault informing other developers that it is a valid value, and was not made against you @lucko. Anyway, you did find the place to put those 32 characters. My estimation of 3 min job was rather accurate ;) Glad ...

lilac dewBOT
#

Since you are using Minehut, I would consider contacting their support. They like to edit plugins so they don't cause any issues with their infrastructure and may likely cause issues. LuckPerms v4 is quite old now and I'd highly recommend you upgrade to v5 but I don't think that will be possible for you.

I'd also recommend using another host which gives you more control over your server.

lilac dewBOT
lilac dewBOT
#

Thank you for your suggestion. I added weights to the groups and that indeed "fixed" the issue.

However, upon inspecting my config.yml it turns out primary-group-calculation: parents-by-weight was set instead of primary-group-calculation: stored. I don't remember having set this, maybe it was the default at some point in time. Setting it to stored fixed the issue without needing to give weights to the groups.

#

It has come to my attention that many users forget to remove their old permission plugin when migrating or try to use two perm plugins.

Since LP already detects that (for migration purposes) I think it would make sense to warn players that another permission plugin is installed at that theรฝ need to remove it (after the migration if they want to migrate) when they use LP commands and at the end of the migration command.
Maybe also display a warning to players with the log permission when...

#

I wish there was a way to have prefixes/suffixes in chat without needing additional plugins except for the plugin itself that provides it (thus no Vault + <the actual plugin that provides chat formatting>). I try to keep the amount of plugins/bloat to a minimum.

The reason behind why LuckPerms doesn't provide chat management is simple: It's out of scope.
LuckPerms is a permission plugin (keyword is permission) and managing chat is something no real perm plugin should do.

Also, al...

#

Vault exists so that plugin devs don't need to individually support every permissions plugin in existance. Which would be insane to be honest. As Vault provides common functionality to get prefixes and such. It makes a lot more sense to just require Vault. Because then you instantly support every permissions plugin (that also supports Vault, which is essentially all). Vault also has 0 impact on your server as it does nothing by itself.
It is also needed if you want to use economy between t...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hello, I need your help to be able to correctly go to version V5 of the plugin. Here is my configs as a whole.

confi.yml: https://pastebin.com/5v5YkYu4
default.yml: name: default
joueur.yml: https://pastebin.com/TXEVvBt8

Currently I am using the extension you provided. However as you said it is only temporary so I would like your help to make the transition correctly.

Very nice work on this new version! Congratulations !

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Note in the config extract you posted above:

# If LuckPerms should automatically push updates after a change has been made with a command.
auto-push-updates: true

after a change has been made with a command

This doesn't automatically happen with the API - if you want to push your changes to other servers via the messaging service, you need to request this explicitly.

Something like this...

LuckPerms luckPerms = LuckPermsProvider.get();

public void add...
lilac dewBOT
#

I would suggest having a new API option to enable auto-push for the plugin as long as it isn't disabled in the config...
Something like this maybe?

// We made the entire ServiceProvider mumbo-jumbo here

LuckPerms api = provider.gerProvider();

/*
 * Enable that LP should push updates, if nodes have been changed through the API.
 * This would be ignored if you set "auto-push-updates" to false in the config,
 */
api.enableAutoPush(true);
lilac dewBOT
#

Why not just have a little timeout (like a second) before syncing automatically.
And if an automatic sync is not wanted it could either be cancled or a second overload of the save method that accepts a boolean to control that behavior.

Because quite frankly I can't think of a single reason why you wouldn't want to sync.
Also this reduces the complexity of API usage and also improves performance slightly as it reduces the syncs in most use cases.

#

Just my little opinion, but I would find it very strange to configure an api via config.
It's something a plugin developer needs to know while developing, so making it dynamic only adds to the problems.

What if one api developer expects it to autosync and another expects it not to? Would only lead to more confusion and make it more complex.

Explicit is better than implicit, especially in this case :)

#

It's not getting easier if there is some config for it, that's all I'm saying :)
And to be honest I haven't used the api before so I wouldn't know.
But to make it easier the most obvious way would be to make an additional argument for saveGroup.
Just an additional bool that controls if it should push after saving.

Also I'm not a fan of api's making assumptions that lead to a worse performance.

lilac dewBOT
#

While I think that the API has been improved greatly from v4 to v5 I still think it has one major flaw:
Simplicity

In other words my main issue is that even to do simple things you need to use many aspects of the API and construct many intermediate objects.
So my main suggestion is to add overloads to all methods that fetch data and ask for a QueryOptions object. That overload would just not want one at all and do the same thing and just use a reasonable default value for it (like ...

lilac dewBOT
lilac dewBOT
#

Hello,

i have a problem with LP.
My server version: Paper-45 (1.15.1_R01 Snapshot)
LP: v5.0.39

LP blocked towny and granted jobs permissions. (jobs reborn)

permissions: worker.miner.1: value: true level: 1 worker.miner.3: value: true level: 3

This permissions gets a player, if they reach level 1 and 3, but its doesnt work with LP. LP block this.
Same with custom townypermissions in the townyperms.yml

What can i do?

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi! Upon installing luckperms and running the server, I have been having the following issue. When trying to run a luckperms command I recieve a message saying "An internal error occured while trying to perform this command." When I looked into the issue further, the console had said the following:
[16:08:50] [Server thread/INFO]: [LuckPerms] Disabling LuckPerms v5.0.39
[16:08:50] [Server thread/INFO]: [LuckPerms] Closing storage...
[16:08:50] [Server thread/INFO]: [LuckPerms] Shutting dow...

#

I quickly checked your log and from what I saw does something/someone cause plugins to disable.
This happens after BetterInvisibility was enabled:

[16:08:50] [Server thread/INFO]: [BetterInvisibility] Enabling BetterInvisibility v1.1.0
[16:08:50] [Server thread/INFO]: [BetterInvisibility] Plugin Version 1.1.0
[16:08:50] [Server thread/INFO]: [BetterInvisibility] - Server running version v1_...
#

Ok, this is easily explained.
BetterInvisibility only works for 1.8 - 1.14, you are using 1.15.1, therefore it disables itself.

Somehow this results in a chainreaction and also disables vault.
And since vault is relevant to luckperms it also disables luckperms.

Solution: Disable the plugin until it's ready for the version you are using :)

Wrong.
If a plugin doesn't work for version x and disables itself due to that (Uses PluginManager#disablePlugin(this)) then it w...

#

Wrong.

I deleted betterinvis and its working perfectly right now!

Somehow not wrong ;)

A plugin disabling other plugins doesn't proof that it causes a "chain-reaction".
Maybe the author (for some reason) loops through all plugins and disables them?
My point is still right that just because plugin X got disabled, does plugin Y not disable itself too unless it depends on it.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

The editor can and will only show permissions that have been checked recently. If none shows, then most no permissions where checked when running the editor command.
Try running /help on the server before creating a new editor session.

This could perhaps also be related to latest change of the editor (https://github.com/lucko/LuckPermsWeb/commit/dce60098c265cd6f4bea69a5a0ab6a1b7d503745) which doesn't display permissions, when the permission field is empty.

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi, I have an issue with EazyNick. Can you please add a support for EazyNick plugin? everytime I use LuckPerms and EazyNick Iยดve got error to console:
`Could not pass event PlayerNickEvent to EazyNick v1.231
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[server.jar:git-PaperSpigot-"4c7641d"]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[server.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plu...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

@Andre601 placeholders hasn't anything todo with permissions. Second placeholders with a + is normal just take a look at placeholderAPI Wiki

Just fyi: I made the wiki so I know it all too well, and if you look closely will you notice that none of the displayed placeholders contains a + (Ctrl + F, then search for "+" and the only thing you'll find is the names of the plugins)

lilac dewBOT
lilac dewBOT
#

When activating "admin mode" (somewhat similar to op/deop), it seems permissions are sometimes delayed. In the following log, /gm 1 adds the player to the admin group, then I attempted to place a block, resulting in the WorldGuard checks.

[21:52:34 INFO]: Dark_Arc issued server command: /gm 1
[21:52:34 INFO]: [LP] VB > dark_arc - worldguard.region.bypass.Halzeil - undefined
[21:52:34 INFO]: [LP] VB > dark_arc - worldguard.region.bypass.* - undefined
[21:52:34 INFO]: [LP] VB > dar...
lilac dewBOT
lilac dewBOT
#

Freshly installed Spigot 1.15.1 that i made with buildtools, got the old groupmanager/ folder and jar file and vault/cmi and luckperms

after the server started up once, i /stop it, started it again.

then typed in-game lp migration groupmanager true, and it looks like it's doing a bunch of groups and users. but the console is flooded with exception errors.

>ver
[15:41:28] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-492a779-d208733 (MC: 1.15.1) (I...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I have a custom spigot which generates the config files at /config/ instead of /plugins/ so basically my entire configs for server etc is on my /config/(plugin-name) instead of /plugins/(plugin-name).

Luckperms commands doesn't work at all since I have done that, may I get some fixes? (Using latest version) thanks!

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

"Custom".
That is an actual setting in spigot to change the name of the plugins folder.
And I don't think LP breaks because of that.
What plugins are you even using?

"Custom, This is an actual setting in spigot to change the of the plugins folder" To clarify that my spigot has a lot of optimizations, potion modifier, new commands etc. To test out if there was any plugins breaking it I decided to just run WorldEdit, Vault and LuckPerms. Still doesn't work.

https://hasteb.in/aj...

lilac dewBOT
#

Hi Luck,
I have LP install and it is working great. :)

I'm coding a plugin and I'm trying to run the command "lp user playername promote playerranks" when a player clicks on a menu item. The command /ranks opens a menu and displays all the ranks that a player can buy with in-game money. If they have enough in-game cash, they can promote to the next rank.

The command works fine when I type it on the command line but when the command is called from within my method I get the e...

#

BINGO! That worked!!

@Override
 public void onClickedInMenu(Player player, Menu menu, ClickType clickType) {
 Player commander = Bukkit.getPlayer("MCMaricopaAZ");		
 String command = "lp user "+ player.getUniqueId() +" promote playerranks " ;
 Common.dispatchCommandAsPlayer(commander, command);
	}

[13:52:58 INFO]: [ServerPlugin] Command lp user 652bf4fa-761c-3307-8fda-4c2ea1487944 promote playerranks
[13:52:58 INFO]: [LP] LOG > (MCMaricopaAZ) [U] (brookee20...

lilac dewBOT
lilac dewBOT
#

English

Hello, I would like to have my rank read out for my scoreboard (sidebar), but I cannot find any method for this. Do they even exist?


German:

Hallo, ich mรถchte fรผr mein Scoreboard (sidebar) meinen Rang auslesen lassen, jedoch finde ich dafรผr keinerlei Methode. Gibt es diese รผberhaupt?

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi I'm using luckperms in my spigot server 1.15.1 and I save all the data as YAML format. My problem is that user folder don't add user data unless I gave them a rank, like admin or stuff. By the way, if I check user data on the server for default user, the information is correct but don't generate the file.

Sorry about my english, I'm from Argentina, greetings.

#

This is intentional.
LP doesn't save any user-information if they only have the default group assigned. This was made to keep storage space low as you don't need to save a user that only has the default group.

We also recommend to not edit groups and users manually through the yaml files.
Use the web editor instead.

lilac dewBOT
lilac dewBOT
#

Would it be possible to get some messages for players when their group changes so they know their group has been updated? I made a fork of this repository so I could edit the config, which is found here: https://github.com/Jaimss/LuckPerms/blob/master/bungee/src/main/resources/config.yml
Essentially I added this to the Extra Settings Section:
`# Toggle on/off rank messages.
allow-group-change-messages: true

#Customize the Messages that get sent on group change:
#/lp user {name} promo...

lilac dewBOT
#

This was requested before and was denied, because it is out of scope for a permission plugin.
It is the job of other plugins to inform a player if they retrieved a role (e.g. for donating).

And due to the nature of LP in terms of how translations work would this also be not quite useful.
This is something only a few people requested so far and nothing that imo should be added as the majority doesn't want this.

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi lucko,

thank you for this awesome project!
I just tried to use regular expressions in the context of worldnames.
Should this work? This repo is well structured but also sophisticated and I was not able to find this in the code.
I am used to give worldnames some suffix "world_001" but things like "R=world_\d{3}" or similar are not working.

Thank you in advance

lilac dewBOT
#

@BrainStone thank you for opinion.

  • #1870

    This request is about using multiple "world" keys for each rule.
  • #1792

    Is about adding a context based filter for permission info command - for ingame commandline output.
    This is a duplicate of #819
  • #819

    Includes the filter from #1792 and for the search command.

My request is different. It is about using the supported regex syntax R=<expr> with the world.

Specified in https://github...

lilac dewBOT
#

Apologies, the wiki is incorrect there. This was previously a supported feature but was since removed to make way for the contexts system. (https://github.com/lucko/LuckPerms/wiki/Context)

Now, instead of having "world specific" or "server specific" assignments, we just have context specific assignments.

Currently context specific assignments work only on case insensitive matching.

https://github.com/lucko/LuckPerms/blob/7e8402b542b0a1eb2f5e072b6c3864a8e255f46c/common/src/main/java/...

lilac dewBOT
#

I'd like to ability to specify to not apply to a certain world. I'm trying to restrict the creation of automata (from Magic by NathanWolf) to 1 specific world. Since I load and remove worlds on the fly, this would mean constantly updating permissions. What I'm looking to accomplish is deny use of the spell unless the world is the one specific one I've chosen.

lilac dewBOT
#

22.01 14:54:14 [Server] INFO Running LuckPerms v5.0.63 by Luck.
22.01 14:54:14 [Server] INFO - Platform: Bukkit
22.01 14:54:14 [Server] INFO - Server Brand: Paper
22.01 14:54:14 [Server] INFO - Server Version:
22.01 14:54:14 [Server] INFO - git-Paper-240 (MC: 1.14.4) - 1.14.4-R0.1-SNAPSHOT
22.01 14:54:14 [Server] INFO - Storage:
22.01 14:54:14 [Server] INFO - Type: MySQL
22.01 14:54:14 [Server] INFO - Ping: 39ms
22.01 14:54:14 [Server] INFO - Connected: true
22.01 14...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Bungee Error

08:43:54 [INFO] Enabled plugin HubBasics version 6.9.5 by Fabricio20

08:43:54 [INFO] ยงb ยง3 __
08:43:54 [INFO] ยงb | ยง3|) ยง2LuckPerms ยงbv5.0.63
08:43:54 [INFO] ยงb |
_ ยง3| ยง8Running on BungeeCord - BungeeCord
08:43:54 [INFO]
08:43:54 [INFO] [LuckPerms] Loading configuration...
08:43:54 [WARNING] Exception encountered when loading plugin: LuckPerms
java.lang.UnsatisfiedLinkError: sun.nio.fs.LinuxWatchService.inotifyInit()I
at sun.nio.fs.LinuxWatchService.inotify...

#

From my understanding is the UnsatisfiedLinkError that LP throws caused by a library missing.
This library could either be one from Java (most likely in this case) or from a dependency that LP downloads.

Make sure that LP is able to download the files.
Stop the server, delete the lib folder in the LuckPerms folder (if present) and start the server again.

But like I said is this most likely a missing library from Java itself.
What system is the server running? Linux? Ubuntu?

lilac dewBOT
#

Allow users to append a group at the end of the /lp user promote command:
/lp user {name} promote {track} {final-group}

If the track is laid out like: default->vip->donor->staff and I do `/lp user {name} promote track1 donor.

If the user was in the group default, it would be cool if they moved through VIP and on to donor in one command.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Bungee - 1451
LuckPerms - 5.0.63

storage-method: PostgreSQL
messaging-service: redis
auto-push-updates: true

The error went away only after entering the networksync command.

21:14:30 [WARNING] Error dispatching event PermissionCheckEvent(sender=RUSROBOTX, permission=bungeecord.command.server, hasPermission=false) to listener me.lucko.luckperms.bungee.listeners.BungeePermissionCheckListener@1e044120
java.lang.IllegalStateException: No permissions data present for player...
lilac dewBOT
#

So when restarting my server I get this error printed on my console:

[21:22:31 ERROR]: Error occurred while enabling Prison v3.2.0 (Is it up to date?)
java.lang.NoClassDefFoundError: me/lucko/luckperms/LuckPerms
at tech.mcprison.prison.spigot.permissions.LuckPermissions.(LuckPermissions.java:20) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_212]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:6...
lilac dewBOT
#

One more error

[16:45:30 WARN]: [LuckPerms] LuckPerms already has data for player 'Jakubson' - but this data is stored under a different UUID.
[16:45:30 WARN]: [LuckPerms] 'Jakubson' has previously used the unique ids [5ea61e81-30c1-4c2e-84c8-776010fb95c0] but is now connecting with '520068b1-e9a8-4679-bf50-6ba37df55eb5'
[16:45:30 WARN]: [LuckPerms] The UUID the player is connecting with now is Mojang-assigned (type 4). This implies that one of the other servers in your network is not...
#

The error tells you exactly what is wrong:
LuckPerms already has data for player 'Jakubson' - but this data is stored under a different UUID.

The user has a different UUID than when he joined last time, meaning that something is different this time.
The most common issue is, that ip-forwarding was not properly setup, or that the user joined directly to the server, rather than through the proxy.

lilac dewBOT
#

So I have this weird thing that if I remove parent (group) from player they need to disconnect from the server and come back in order for that group to be removed.. so they basically have the removed groups permissions until they disconnect...

Is this feature of LuckPerms or any way I could fix it so that if I add or remove groups from players they would immediately have the new permissions?

lilac dewBOT
lilac dewBOT
#

So today i tried doing something with DeluxeMenus, PlaceholdersAPI and LuckPerms. I tried giving myself a temporary permission using thecommand "lp user %player_name% permission settemp permission.test2 true 2s". This should have given the permission for 2 seconds.

What I found out tho is that something is broken. When i use this placeholder: "%luckperms_expiry_time_permission.test2%" having "update: true" and "update_interval: 1" the countdown is broken.(update: true and update_interval b...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

LuckPerms doesn't have an auto update feature, so not sure what you turned off!

As far as I can tell the import is now working properly. The issue with the legacy importer was fixed in b73b73e2217be236ad93d8dac9a22e5d7144b1cf.

The new import/export format is not intended to be "unzipped" and manually read or edited. It's possible that you corrupted the file by doing that.

#

I've changed the placeholders (see above) so negative times won't be displayed.

However, technically those permissions will still be there until they are removed 1-3 seconds later. This is a documented quirk of temporary permissions. If you need finer control (accuracy greater than 3 seconds), then my recommendation is to find a plugin which will set transient permissions through LP, and then remove them a number of ticks later. (Vault supports this)

#

From an API design perspective, I prefer the removal of the existing (replaced) node to be explicit.
i.e.

user.data().clear(NodeType.META.predicate(node -> node.getMetaKey().equals("griefdefender.accrued-blocks")));
user.data().add(MetaNode.builder("griefdefender.accrued-blocks", "5000").build());

However, the API design doesn't affect the way the storage is implemented - since both systems are abstracted from each other. Even if an API method were added which allowed meta...

lilac dewBOT
#

Without seeing your Verbose logs, it might be that WorldGuard is listening to the Command preprocess event and/or the gamemode change event on a priority "sooner" than HIGHEST, and is therefore checking permissions before your plugin applies admin permissions.

Using /lp verbose paste will let you see the stack traces of the checks, which will clear that up.

As for delayed updates to WorldGuard bypass permissions - this is a WorldGuard issue and is not being caused by LuckPerms...

lilac dewBOT
#

Issue is likely being caused by JPremium.

LuckPerms uses UUIDs to uniquely identify players (I mean duh that's the point of them). If plugins (JPremium) are randomly changing players uuids, or modifying them in an unsafe manner on login then it should be expected that other plugins and systems will not work properly.

Not much I can do - I suggest reporting the issue to JPremium's author.

lilac dewBOT
lilac dewBOT
#

Hey! I have a question. I want to have a system on my server to give active players new ranks. So, how can i give them a role, without replacing the previous rank?

I mean, players with the "default" role get an "upgrade" to "Iron".
Thats working.

But when my team reach the required onlinetime, they get the "Iron"-Rank and this rank is displayed.

Can i sort ranks with priority or something like this?

lilac dewBOT
#

Displaying what rank is shown depends on many factors like if a group inherits from another one, if it has specific prefixes/suffixes set, what the weight is, etc.

We can't really give you a solution because we don't know your setup yet. Do you use tracks? Do the groups have weights? Does iron inherit from default or other groups? etc, etc, etc.

lilac dewBOT
#

Spigot 1.15.2 (Jenkins 2596)
LuckPerms 5.0.70

Description
Beginning with Spigot 1.15.2 (Jenkins 2596), missing dependency declarations are reported in the log on server start-up as WARN messages.

Reference: https://hub.spigotmc.org/jira/browse/SPIGOT-5546

The relevant log entry is:

[22:03:03] [Server thread/WARN]: [LuckPerms] Loaded class net.milkbowl.vault.permission.Permission from Vault v1.7.3-b${env.TRAVIS_BUILD_NUMB...
lilac dewBOT
lilac dewBOT
#

Ok, so the fault is this

Group Default has 'permission.x' set to false
Group Default has 'permission.x' set to true in world = world
This has the behavior that x is only true in world;

In a higher group such as vote3 i have permission.x set to true in both world nether and world_the_end
The above does not work, the permission check returns false.

lilac dewBOT
#

I am trying to create a Pixelmon server for me and my friends, but LuckPerms isn't being recognized as a mod when the server is launching. I have tried different versions but all of them do the same thing.

[Server thread/INFO] [FML]: FML has found a non-mod file LuckPerms-Sponge-5.0.70.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.

lilac dewBOT
lilac dewBOT
#

Your issue is, that LP does not manage the chat whatsoever... You need a separate plugin for managing the chat (Nucleus is recommended for Sponge servers).
You can check if LP did its job, when the prefix is showing for a player when using /lp user <user> info

Also, if you're using a normal server and not a server network, then the sync command is pointless as it is meant to be used on server networks and not normal servers.

lilac dewBOT
#

Despite multiple comments about this, none of the solutions worked on my server...

Mods installed:

Pixelmon
PixelExtras
Worldedit


I honestly don't know where the Worldedit config is so that could be the problem... Worldedit shows up in my lp tree, but when I try to do //wand, I end up with the message, "You are not permitted to do that, are you in the right mode," which I don't understand at all... So I've been trying to figure it out by searching it up numerous...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I can't reproduce this.

Groups setup as follows:

>lp group default permission set permission.x false
[14:47:25 INFO]: [LP] Set permission.x to false for default in context global.
>lp group default permission set permission.x true world=world
[14:47:36 INFO]: [LP] Set permission.x to true for default in context world=world.
>lp creategroup vote3
[14:47:46 INFO]: [LP] vote3 was successfully created.
>lp group vote3 setweight 10
[14:47:52 INFO]: [LP] Set weight to 10 for group v...
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Used Versions
Paper-87
LuckPerms 5.0.70

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/home/mcserver/25599/share/plugins/LuckPerms-Bukkit-5.0.70.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader
WARNING: Us...

lilac dewBOT
lilac dewBOT
#

Not really much I can do about this issue for the time being.

The solution to switching from a loadbefore to a soft-depend will break plugins which integrate with permission plugins by only depending on Vault - this is not a regression I want to have.

I've made some suggestions about how this could be resolved sensibly here: https://hub.spigotmc.org/jira/browse/SPIGOT-5546?focusedCommentId=35859&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-35859

...

lilac dewBOT
#

The server we (third party, Tau, and I) seems to have it functioning as expected. No clue if this is because of either one of the other 2 having changed how our groups are or what's up, but it's functioning (Proximyst is in the nether; could also use the permission in practice):
https://proletariat-dictatorship.is-serious.business/YZ3KsUu.png

I'd say it's likely a configuration error on our end which we've fixed at some ...

lilac dewBOT
lilac dewBOT
#

It should work as more detailed permissions (essentilas.build) override wildcards (* or essentials.*)
My idea is, that you either don't have Essentials AntiBuild (You shouldn't. That plugin is trash) or that the permission is wrong)

By default does LP calculate and manage the permission as follows:

  • More detailed permissions override wildcard (as explained above)
  • Permissions a group/user has override permissions they inherit.
  • Permissions with world/server context override th...
lilac dewBOT
#

We require more information for us to help you.
Please provide this additional information:

  • Server type (Spigot, Sponge, Paper, ...)
  • LuckPerms version ("Latest" is not a version)
  • The latest log of your server (upload it to https://hasteb.in please)
  • Other plugins you use.

In addition also explain what exact steps you did, as "Server stops when I add the plugin" doesn't give us any clue what exactly you did.

lilac dewBOT
#

[23:16:38 INFO]: [LuckPerms] Disabling LuckPerms v5.0.39
[23:16:38 INFO]: [LuckPerms] Closing storage...
[23:16:39 INFO]: [LuckPerms] Shutting down internal scheduler...
[23:16:39 INFO]: [LuckPerms] Goodbye!
[23:16:39 WARN]: java.util.ConcurrentModificationException
[23:16:39 WARN]: at java.util.HashMap$ValueSpliterator.tryAdvance(Unknown Source)
[23:16:39 WARN]: at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
[23:16:39 WARN]: at java.util.s...

lilac dewBOT
#

If you then enter any command you get this error permanently and you can no longer write anything in chat.

2020-02-03 17:11:42.313 [main] FATAL - Unbehandelter Fehler beim Ausfรƒยผhren des Kommandos "say > Shop.unkreativmc.net" in say: java.lang.NullPointerException
at cn.nukkit.Player.isPermissionSet(Player.java:504)
at me.lucko.luckperms.nukkit.inject.server.LPSubscriptionMap$LPSubscriptionValueSet.lambda$getContentView$1(LPSubscriptionMap.java:179)
at java.util.stream.ReferencePip...

lilac dewBOT
#

My server occasionally issues such an error, which tells me to lower the maxLifetime value. Although I have set it to 30000, it still issues such a prompt. When I lower the value to a lower value, it will revert to 180000. Is this a loophole or my problem?

[15:01:08 WARN]: [Craft Scheduler Thread - 19] WARN com.zaxxer.hikari.pool.r - HikariPool-1 - Failed to validate connection com.mysql.jdbc.JDBC4Connection@7fde312 (No operations allowed after connection closed.). Possibly consider using ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Even if I update the latest version of the plugin, this problem still occurs

[12:24:06 WARN]: [Craft Scheduler Thread - 38] WARN com.zaxxer.hikari.pool.r - HikariPool-1 - Failed to validate connection com.mysql.jdbc.JDBC4Connection@1ed8335e (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.
[12:24:06 WARN]: [Craft Scheduler Thread - 38] WARN com.zaxxer.hikari.pool.r - HikariPool-1 - Failed to validate connection com.mysql.jdbc.JDBC4Conne...

lilac dewBOT
lilac dewBOT
#

While I think that the API has been improved greatly from v4 to v5 I still think it has one major flaw:
Simplicity

In other words my main issue is that even to do simple things you need to use many aspects of the API and construct many intermediate objects.
So my main suggestion is to add overloads to all methods that fetch data and ask for a QueryOptions object. That overload would just not want one at all and do the same thing and just use a reasonable default value for i...

lilac dewBOT
lilac dewBOT
#

I'm the Dev of our LobbySystem. Please keep in mind that I use for you probably strange methods of loading my permissions, just haven't found and other way to load my permissions, cause I load my permissions dynamically and don't ask "hasPermission(permission)" with Strings....

Field pluginField = LuckPermsApiProvider.class.getDeclaredField("plugin");
pluginField.setAccessible(true);
LuckPermsPlugin lpplugin = (LuckPermsPlugin) 		pluginField.get(LuckPerms.getApi());
PermissionRegis...
lilac dewBOT
#

That's an hikari thing, not a LP thing, there is pretty much 0 reason to have a connection lifetime less than 30 seconds, that somewhat defeats the whole purpose of pooling connections and just creates more work for the client (LP) and the server itself.

I'd suggest looking at what the actual connection timeouts are on the mysql server, and speaking to your hosting provider if you're seeing this often, that generally means that something is closing the connection in an unexpected way, or t...

lilac dewBOT
lilac dewBOT
#

Instead of integrating directly with the LuckPerms internals, just register your permissions with Bukkit! This means all permission plugins (including LuckPerms) can pick up your data. :)

You can do this...

  1. In your plugin.yml file, as explained here: https://bukkit.gamepedia.com/Plugin_YAML (preferred)

or

  1. Programatically:
for (String permission : api.getKnownPermissions()) {
    try {
        Bukkit.getPluginManager().addPermission(new Permission(permission));
...
lilac dewBOT
#

Hey, small question.

I was planning to add DiscordSRV so when players link their minecraft account to Discord, they automatically get the rank 'Novice'. From there on, it should sync in-game ranks with Discord ranks.

If I were to implement this now, anyone who has a higher rank then 'Novice' would be set back to 'Novice' once they link their accounts.

Is there any better solution that would work out for me? For example;

  1. Only Strangers that link their account get Novice.
  2. Any...
lilac dewBOT
lilac dewBOT
#

I actually only want people with the ''Stranger'' rank to get promoted to Novice.

Then set up permissions accordingly.
And we can't help you here as this isn't at all related to LP and relies on DiscordSRV, so you're better of asking on their Discord for assistance.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I want to be able to add a useSSL configuration option because my server keeps showing this warning.

[13:24:35 WARN]: Fri Feb 07 13:24:35 CST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You ne...

lilac dewBOT
lilac dewBOT
#

I just clicked by accident sorry, i dont know how to delete it. So i gonna write here. I have a problem a plugin called grief defender in the last update they decided to transfer all their player info to contextual data in luck perms, the migrator worked perfectly but my server is a rankup server and when someon rankups and after that the player info of grief defender update the player returns to the previous parent. I talked to the creator of grief defender and told me that grief defender do...

lilac dewBOT
#

I'm making a badge selector using BossShopPro and LuckPerms.
I do want notifications/logging to be enabled for other purposes, but I don't want to see when a user switches his/her badge.

Could it be possible to add a -s argument to commands so that it doesn't show the logs for certain commands?

image

lilac dewBOT
#

I cannot rename default. I tried doing /lp group default rename member. It works temporarily but eventually, member is another existing rank and default is still there. Every time I tried reloading through the server, loading through luckperms, or restarting the server, it won't work.

lilac dewBOT
#

This is because you're not supposed to rename it.
LuckPerms always has a group called default, since that's the group everyone gets.

You have a few options to change the behaviour of default. You can either change the display name (It's still called default in LP but will display the other name for every plugin that gets it through Vault) or edit inheritance.

More Info:
https://github.com/lucko/LuckPerms/wiki/Default-Groups

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Still not working. My server has one track named default and even when I add luckperms.user.promote.<track>.<old/new-group> it does not let me execute the command. And I do have the option enabled in the config.
My default track goes default--->member--->trusted---->moderator--->admin---->owner
I want it so that the user inheriting trusted or higher can promote/demote players up to the group below them.
i.e. for moderator, I put, luckperms.user.promote.default.trusted, luckperms.user.demo...

#

Still not working. My server has one track named default and even when I add luckperms.user.promote.. it does not let me execute the command. And I do have the option enabled in the config.
My default track goes default--->member--->trusted---->moderator--->admin---->owner
I want it so that the user inheriting trusted or higher can promote/demote players up to the group below them.
i.e. for moderator, I put, luckperms.user.promote.default.trusted, luckperms.user.demote.default.member, and...

lilac dewBOT
#

Hello, I have a problem, I have the plugin EzRankPro, and I have multiple ranks, I want to accumulate the rank between the normal rankup rank and Vip rank this is my problem: (for example) I'm rank B and I want to upgrade to rank C, so I have to use /rankup, but, if I use (if a player buys the rank vip) /lp user (user) parent set vip this remove the rank B and I cant upgrate to C, but if I use /lp user (user) parent add vip this accumulate the rank and it works well.

This is my main proble...

lilac dewBOT
lilac dewBOT
#

There's a caveat on Sponge that's very easy to miss:
The permission xxx also adds all permissions that start with xxx..
That's why when you add the node luckperms.user.promote you also add all other nodes that start with luckperms.user.promote, like luckperms.user.promote.default.default.
The way around this (or if you only want one node and no child nodes on Sponge) is by setting the node you want (xxx) to true and xxx.* to false. Then only xxx is true....

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

`[LuckPerms] Failed to init storage implementation
[11:52:59] [Server thread/WARN]: org.h2.jdbc.JdbcSQLNonTransientException: IO Exception: null [90028-199]
[11:52:59] [Server thread/WARN]: at org.h2.message.DbException.getJdbcSQLException(DbException.java:502)
[11:52:59] [Server thread/WARN]: at org.h2.message.DbException.getJdbcSQLException(DbException.java:427)
[11:52:59] [Server thread/WARN]: at org.h2.message.DbException.get(DbException.java:194)
[11:52:59] [Server thread/WARN]: ...

lilac dewBOT
lilac dewBOT
#

Yeah, you were right. I had to recreate the MySQL database because I guess something went wrong? Would you know of any way to grab the old database information without having to redo all perms?

You can export tables of LuckPerms with phpMyAdmin function called "Export":
image

or if you don't have PMA, you can do it with command prompt through SSH:
https://stackoverflow.com/questi...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Looks like the database file somehow got corrupted.
Do you have a backup of the file? Else it's looking really bad.

I only expected that there would be a problem with MySQL database and gave MySQL backup, but I didn't think that LP's local data would be damaged.
So, if I don't have a fix or I can export the data then I might have to see god in advance.

#

The file got corrupted while it was being written to or at least open. So my guess would be that the server either crashed or was forcefully shutdown.
And recovering corrupted data is really nothing we can help you with. You might have luck reaching out people more invested with the h2 database format.
And as a note: If LP can't read the data while starting it also can't export anything from it, because that would require being able to read the data.

lilac dewBOT
lilac dewBOT
#

An auto updater is not something I want to add - I personally think that's much better being a manual process.

Update notifications is something I have considered, but feel that they're a bad idea for two reasons.

  1. The project has new "development" versions released quite frequently - it's would be impractical to update for each release.
  2. Most of the "development release" updates are not critical to the operation of the plugin - it's fine to just track the latest "stable" / "releas...
#

The wiki is actually outdated on many things. And quite a few examples use the old class names

Examples please? As far as I know everything has been updated now.

So are the Javadocs then, I presume? Some stuff I saw on the Javadocs contradicted what the wiki said

The JavaDocs are likely to be correct if there's a contradiction. Could you tell me what the contradiction was and I'll correct it.

#

I think it would be a beneficial thing to have an optional context option for the /lp import command to import the data of an export-file in a specific context.
That would be especially useful in cases where a user switches from a network using LP with separate storages to one with a central, remote-database.
The issue you face there is that - to my knowledge - the import command overrides every existing perm-setup, meaning it will remove/destroy any previously set perms in the database, ...

lilac dewBOT
#

I've just set up my server and have configured all of my essentialsX permissions, however I am only able to do so when I amOP myself.

I would rather not have to be OP and use the /lp user permission set luckperms.* true command.

I have only executed the command above, other than that there are no groups or users that have any luckyperms permissions.

Am I missing something or have I stumbled across a bug?

I am using LuckPerms v5.0.72 on Spigot 1.15.2

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

The JavaDocs are likely to be correct if there's a contradiction. Could you tell me what the contradiction was and I'll correct it.

My bad. After double-checking, it all made sense. Thanks for your time though. I guess the wiki wasn't made for beginners. Your ExtraContexts plugin helped me quite a lot but I just couldn't get my own one working (the tab complete works but everything else doesn't).

That's because you shouldn't copy-paste stuff, as stuff like that will happen.

That ...

lilac dewBOT
lilac dewBOT
#

According to the guidelines:

Download the LuckPerms-???-x.x.x.jar file that corresponds to your platform. You can find the latest versions here.
Navigate to your mods/plugins directory. This is usually either /plugins/ or /mods/. Then place the LuckPerms jar in this directory.
Fully stop & start your server, and allow the default configuration to be generated.

I followed it and restarted my server after uploading LuckPerms to the plugin folder.

#

Like I thought is not LP "crashing" the server. It doesn't even crash at all.
The cause of your issue is AuthMe, as it disables itself when something isn't properly configured:

[09:47:17] [Server thread/WARN]: [AuthMe] Aborting initialization of AuthMe: [InjectorReflectionException]: Could not invoke method 'setup' for fr.xephi.authme.permission.PermissionsManager@11b55135
[09:47:17] [Server thread/WARN]: [AuthMe] THE SERVER IS GOING TO SHUT DOWN AS DEFINED IN THE CONFIGURATION!

...

lilac dewBOT
lilac dewBOT
#

I have a custom website setup with launcher for my network. I wrote a simple php script so users can buy ranks on the server, it calculates the accout balance and sets the luckperms db luckperms_players primary_group to whatever the bought rank is. The script changes the group name in db, but it doesnt apply to the server. Changing it myself from phpmyadmin has the same effect. I've granted my mysql user all permissions for the db, restarted the server, refreshed the plugins and tried /lp net...

lilac dewBOT
lilac dewBOT
#

I would check the wait_timeout setting of your database and compare it with what you have set in LP.
LP's config has the value set in milliseconds while MySQL has it in seconds, so keep that in mind.

https://github.com/lucko/LuckPerms/wiki/Storage-system-errors

just did that, i've run sql command to set the wait time to 28800 and got the default lp time back, it removed the pool warns, but the problem is still there, also im not sure about the sql wait time. if i use sqld --v...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

It's not an issue with the mod, since mods are not plugins and thus by design do not target the sponge framework but instead use forges native permission systems which generally is just ops and op levels.

Secondly, the feature already exists - it has a valid use case in sponge due to the aforementioned reasons. I'm just asking or suggesting it be enabled for sponge as well. If you have ever ran a modded server you would understand, mods don't give a damn about sponge. No one makes a mod an...

#

Setting "storage-method" in config.yml to "MySQL" (along with address/database/username/password) works perfectly. The database tables get created and permissions are stored successfully.

However, if the value for "storage-method" is set to "MariaDB", which is actually what I am connecting to, it results in the following ClassNotFoundException error during startup:

[Server thread/INFO]: [LuckPerms] Loading configuration...
[Server thread/INFO]: [LuckPerms] Loading storage provider... [...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi everyone, I just want to know how it is even possible to have this thing in a simple rankup command on my prison server:
https://gist.github.com/maxlehot1234/a53e6abf6914397b1580c49ece1fa4b5

Sometimes, Luckperms start to "lag" (maybe?) and display its help command.
Sometimes, LP say that I already have the group...

How I can fix this?

Weight, permissions, track and everything was correctly setup.
I can't post the setup here for differents reasons, but I can by PM (discord)

I...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

This is occurring on two of my Sponge servers too, notably after scheduled restarts. Using the default H2 database storage option.

Like others here, I am using GriefDefender.
The issue only began after the 12th, when I updated LP from 5.0.55 to 5.0.78, but I also updated my GriefDefender at that time too (as the GD update introduced the migration of GD data to LP userdata).

SpongeForge: 1.12.2-2838-7.1.8
LuckPerms: 5.0.78
GriefDefender: 1.2.5-B16

I tried replicating the issues pr...

lilac dewBOT
#

As an update. This morning I had two further player reports of LP related issues:

The first was that GD claimblocks had seemingly rolled back, whilst I have logs of them being distributed correctly via /acb

The second was a player who had a rank set on the 13th and has played every day since- just for his permissions and prefix to vanish. Interestingly, he still had the group.rankname permission from past purchases, just not the one from 4 or so days ago.

This is rather troubling. I ...

#

As an update. This morning I had two further player reports of LP related issues:

The first was that GD 'bonus claimblocks' had seemingly vanished, whilst I have logs of them being distributed correctly via /acb

The second was a player who had a rank set on the 13th and has played every day since- just for his permissions and prefix to vanish. Interestingly, he still had the group.rankname permission from past purchases, just not the one from 4 or so days ago.

This is r...

#

Hi, I'm writing here because I searched online but didn't find anything to this relatively easy question:
I gave to my staff (of course) the luckyperm.group.* (which, as you know, gives the ability to set groups permissions) but since this staff is in a lower rank (I also put his group to a lower position in track than my owner rank) I want him to not being able to modify my perms... which he can.
How do I remove from him the permission to modify perms on a specific group (in this case the ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

We are getting that issue from time to time aswell. It happens only on adding a group to a player after a /rankup. When a restart happens some hours later, the added group is gone.
But that is pretty much the only big permission operation on our server, so guess it can happen with meta etc and group removing aswell.
Need to say, that we got that issue with one of the latest LP4 builds and all LP5 builds. But as it just happens every 3 weeks or so, I wasn't worried and didn't reported it

#

Could it be something relating to the new build for grief defender? I
realized my issue came into effect after upgrading gd to the new meta data
storage.

On Mon, Feb 17, 2020 at 5:34 PM John notifications@github.com wrote:

We are getting that issue from time to time aswell. It happens only on
adding a group to a player after a /rankup. When a restart happens some
hours later, the added group is gone.
But that is pretty much the only big permission operation on our server,
so gue...

#

I wonder if @bloodmc has any input on this

He does and is actively talking to Luck about it.
He said:

yea reported to Luck, ill see what he says
ill see if Luck can provide a debug build showing trace for meta unset
because it doesnt make sense how GD is causing meta not even related to it to be lost
also the strangest part is, its random
which tells me its most likely related to race conditions in caching
GD doesnt handle LP storage but it does call saves due to issu...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi

I am running a bungeecord server cluster so I set luckperm's backend data storage to MySQL.

Since I have the MySQL instance running on the same server. Using SSL for data connection is unnecessary.

Unfortunately. the hikari lib which is used by LP to maintain DB connection pool keeps generating lots of useless warnings. Making the console output ugly and difficult to read.

According to the warning message. I think it can be turn of by setting useSSL=false in Initializing the ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

But have you read the code or comment above? It's nonsense having SSL enabled on local database backend.

Of course I saw that. While I do agree that it doesn't matter I consider it irrelevant concerning whether it should be enabled by default or not.
And the current behavior of trying to use SSL but falling back to no SSL and printing a warning is the right behavior. Even if 99% of people weren't using SSL, because a warning is about a billions times better than a serious vulnerabili...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

This happens when downloading the LuckPerms Placeholder from PlaceholderAPI cloud.
when reloading, I get an internal error (in chat) and following error in console:

Using LuckPerms for bungee on a Waterfall server.
Using Paper.jar (1.15.2)

org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.10.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-112...

lilac dewBOT
lilac dewBOT
#

Alright I have a mostly functional draft in progress but a few things still need to be done:

Fix command completions.
Possibly make brigadier completions work (I wouldn't very much prefer that).
Fix the build (shadowed and relocated libraries aren't on the output jar)
Verify the code works on 1.15.2 and possibly the latest snapshot (20w08a as of now, should be possible due to the lack of technical changes in mostly recent versions)
Ask the config format question. Fabric doesn't have...

lilac dewBOT
#

[14:39:26 INFO]: [LP] Running LuckPerms v5.0.78 by Luck.
[14:39:26 INFO]: [LP] - Platform: Bukkit
[14:39:26 INFO]: [LP] - Server Brand: Paper
[14:39:26 INFO]: [LP] - Server Version:
[14:39:26 INFO]: [LP] - git-Paper-112 (MC: 1.15.2) - 1.15.2-R0.1-SNAPSHOT
[14:39:26 INFO]: [LP] - Storage:
[14:39:26 INFO]: [LP] - Type: MySQL
[14:39:26 INFO]: [LP] - Ping: 92ms
[14:39:26 INFO]: [LP] - Connected: true
[14:39:26 INFO]: [LP] - Messaging: Sql
[14:39:26 INFO]: [LP] - Insta...

lilac dewBOT
#

From the logs above I extracted two Important messages.

No operations allowed after connection closed.
Connection@3ce53f45 marked as broken because of SQLSTATE(08S01)

It seems that either you set the database connection timeout value too low or the connection reaches the max limit that your database allows. Which results in a connection forced closed.

Check you DB with following SQL

SHOW VARIABLES LIKE '%timeout%';
SHOW VARIABLES LIKE '%max_connections%';
SHOW STATUS LIK...
lilac dewBOT
lilac dewBOT
#

I have setup the servers as they should be and have done the commands necessary through console but it still hasint giving me any options I can force change my account to different groups from the server console but i cant do it from my own rig even though i have all the permissions set as they would be its very confusing! It allows me to create groups but i cant add parents it keeps telling me i dont have permission!

lilac dewBOT
lilac dewBOT
#

Here are some updates, been talking to the moderators.
https://prnt.sc/r5i6tj
https://prnt.sc/r5i7l0
https://prnt.sc/r5i7ms
https://prnt.sc/r5i7qs

eletroniccat also said our SSL is busted, but it's not as we are still able to connect to our MySQL databases over SSL from any of our machines, i.e LuckPerms is the only plugin having issues with MySQL.

please hurry the fuck up we're losing money BECAUSE IT'S 3 DAYS DOWN

lilac dewBOT
#

please hurry the fuck up we're losing money BECAUSE IT'S 3 DAYS DOWN

May I draw your attention to:

https://github.com/lucko/LuckPerms/blob/9f7d431d34867038c2abc252d876a9ca424b72a0/LICENSE.txt#L16-L22

Regarding your issue, this wiki page is most relevant.

https://github.com/lucko/LuckPerms/wiki/Storage-system-errors

LuckPerms delegates absolutely all connection handling with MySQL to HikariCP and the underlying JDBC driver.

Aside from possibly tweaking the Hikari configurat...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

We get the following response on bungeecord startup when we try to use another plugin with luckperms:
`> 18:12:05 [SEVERE] [LuckPerms] Exception occurred whilst loading data for fc123b5f-c423-411f-9f10-9c616fb61083 - red_man234

18:12:05 [SEVERE] java.lang.NullPointerException
18:12:05 [SEVERE] at me.lucko.luckperms.common.plugin.util.AbstractConnectionListener.loadUser(AbstractConnectionListener.java:67)
18:12:05 [SEVERE] at me.lucko.luckperms.bungee.listeners.BungeeConnectionListen...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I don't think /trigger is a minecraft command as I can't remember any command like that.
So you should double-check that you have the right permission (Use Verbose like Omega suggested) for the command.
Maybe LP is in conflict with another plugin? A common mistake people make is to not remove the old permission plugin, if they switch/migrate from it (f.e. from PEX)

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hey guys so I love luck perms and its features but every time I get finished setting up everything through the /lp editor (I've tried just in game set ups as well) It comes out great and the way I want it to look, work e.t.c. But every time I restart the bloody server it all gets reset!!! of course I'm using /lp applyedits yet when I restart the server it all gets reset. Its very stupid in my opinion. My storage method is mysql. It seems to work fine on both my lobby and kit pvp server throug...

lilac dewBOT
#

I know this isnt your problem but I want to ask anyways. Im using BungeeTabListPlus on my BungeeCord but Im getting this warning message. Do you guys know what this means?

[WARNING] Exception encountered when loading plugin: BungeeTabListPlus
java.lang.LinkageError: loader (instance of  net/md_5/bungee/api/plugin/PluginClassloader): attempted duplicate class definition for name: "net/luckperms/api/LuckPerms"
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassL...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

https://pastebin.com/HHT9Kw2T

Hi, I've been experiencing repetitive crashes for about 8 months (since I use LuckPerms). I run 5 servers (versions 1.12.2, 1.13.2 and 1.15.2) on a BungeeCord and I use the last version of LuckPerms for Spigot on each of them.

At the beginning the issue occurred like once a month so I used to ignore it but since the last two months it's been terribly annoying because it occurs almost every day and is getting worse as the time passes. Most of the time it hap...

lilac dewBOT
#

Nothing to do with LP, lp just has threads running in a pool to allow processing stuff, your server quite simply just took too long to tick, you'll wanna use a sampler or something to view what is going on, Paper does have better logging for recentish versions, there was also some plugin that adding a better watchdog for spigot/bukkit, no idea what it was

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I want to use the /scoreboad command and when ever i do lucyperms said i dont have permissions to do so. So when i go into lucky perms to find the line to give me that permission i cant find it anywhere. I need to use this command for the mod Ancient Warfare 2.

What now? lucyperms or lucky perms? (It's LuckPerms btw)

In addition does LuckPerms not handle /scoreboard so the error message about missing permissions is for sure not from LuckPerms itself.

To find out what perm...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

So some players are having perms like /invsee and else from plugins such as essentials and more and it had a lot of issues on my server and it is only happening with luckperms and when I switch to group manager or pex 0 issues please fix this ASAP

lilac dewBOT
lilac dewBOT
#

One of the things I want to integrate is the richer brigadier tab completions which fabric does support (since it's almost 100% vanilla internally). Of course you already have the tree built already for the bukkit module so I just need the parser for commodore files which I have mentioned in this issue:
https://github.com/lucko/commodore/issues/8

I'll try to parse this a bit more smartly so I can actually use Player selector argument.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#
Running LuckPerms v5.0.83 by Luck.
-  Platform: Sponge
-  Server Brand: SpongeForge
-  Server Version:
-  SpongeAPI: 7.1.0-ea50f0c2 - SpongeForge: 1.12.2-2838-7.1.9
-  Storage:
-     Type: MariaDB
-     Ping: 0ms
-     Connected: true
-  Messaging: Sql
-  Instance:
-     Static contexts: server=dev
-     Online Players: 1 (1 unique)
-     Uptime: 1m 6s
-     Local Data: 1 users, 9 groups, 0 tracks

Setting a permission to a group or user specifying a context and then...

lilac dewBOT
#

**Greetings !

Currently if you give a player a timed permission (/lp user permission settemp

The timer will still count even if the player leaves the server.

I feel like it would be really great if you gave the option in the config to disable/enable the Time Count if a player leaves the server. I'm sure it'd be helpful to a lot of people using settemp Permissions !

If you end up implementing that, Please make sure to Tag me (Spam me if needed) cause i really need such a featur...

lilac dewBOT
#

I compiled from Github branch v4 the previous version of Sponge (v.4.4.27) and tested it with that version on a new LuckPerms database (H2). The issue is present on that version too.

Running LuckPerms v4.4.27 by Luck.
-  Platform: Sponge
-  Server Brand: SpongeForge
-  Server Version:
-  SpongeAPI: 7.1.0-ea50f0c2 - SpongeForge: 1.12.2-2838-7.1.9
-  Storage:
-     Type: H2
-     File Size: 0.06MB
-  Messaging: None
-  Instance:
-     Static contexts: None
-     Online Player...
lilac dewBOT
#

Velocity Version: 1.1.0-SNAPSHOT
Luckperms Version: 5.0.79
Other plugins installed: Catalyst, Anvil (Both found on AnvilPowered GitHub)

Issue: Ever since updating to version 1.1.0 of velocity and updating luckperms there have been a few issues. Initially, there was an issue with 5.0 of velocity when setting permissions for a player or a group would kick up to 4 random players at once. After updating we were able to set permissions but the issue of random timeout's has been present since...

lilac dewBOT
lilac dewBOT
#

Upon first setting up my server LuckPerms was one of the first things I began setting up. I typed in the command to set all my permissions to true in the console. It came back with the error saying "Error whilst saving user data".

I tried a bunch of other things such as creating groups or tracks. Same error. It's always along the lines of "whilst saving".

I'm not too sure how better to explain that, I've ran it in Verbose mode and everything seems fine, LuckPerms is my only permissions ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

luckperms info:

Running LuckPerms v5.0.83 by Luck.
-  Platform: Sponge
-  Server Brand: SpongeForge
-  Server Version:
-  SpongeAPI: 7.1.0-ea50f0c2 - SpongeForge: 1.12.2-2838-7.1.9
-  Storage:
-     Type: H2
-     File Size: 0.03MB
-  Messaging: None
-  Instance:
-     Static contexts: None
-     Online Players: 1 (1 unique)
-     Uptime: 4m 22s
-     Local Data: 1 users, 1 groups, 0 tracks

How to reproduce
Fresh installation of the server as shown with the...

#

-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.1.13
Comment: https://keybase.io/crypto

wcFMAxavkAf6LzVtARAAjcqvGYbbB6RynPvrSR612NPLuOHuJNY4RhMHcgE8ajIi
sxFeHTqvA66c8ZZTaCc30+kaHI1YG8dUJ3lgerNhDjiJUJmF5udlWiNAxi/Umzqf
hHHx1P/sLT+jvFzZj7gtobok51t2pzT7rNobZOPl3gRH1j5iy3f+3/DiIYXfDSxR
cUKtDSxIO1/skw6d2Fdme/QvawQNspRinFRnyvT6b1PZUPb/hD/HHiA627lHnH4O
/MWlc/xVb/6S91VooVvxEK3iSgv5LVM/940D8DWWBZHcdIsPEIDQr7H+Pi1G2W7M
37IV2ME5Ub+Zhizv9KamRRccXtuH9mFR5TdEAt9LQnA01nHlv/jE0wdUO3fUcELK
...

#

Yeah, that works.

The reason I added if (subject instanceof Identifiable) is because in my actual code, also used in Spigot, I actually need the UUID object.

I didn't want to use UUID.fromString(subject.getIdentifier()) for performance optimization.
The Player interface in Sponge extends both Subject and Identifiable, and I just needed the UUID object, so I used Identifiable.

Is there any reason the Subject is not actually the Player object (or at least User)?

Do you have any...

#

Is there any reason the Subject is not actually the Player object (or at least User)?

Yes - there are (usually) two implementations of Subject for a given unique player present at runtime.

  • One is the actual Player Minecraft object - the one Sponge mixes into to implement it's API - this object will implement Identifiable and other interfaces.
  • The other is an object provided by the Permission Service (LuckPerms in this case) which actually implements the permission methods.

...

#

Or even just this will work:

@Override
public void calculate(@NonNull Subject subject, @NonNull ContextConsumer consumer) {
    CommandSource commandSource = subject.getCommandSource().orElse(null);
    if (!(commandSource instanceof Identifiable)) {
        return; // not a command source or identifiable
    }

    Identifiable identifiable = (Identifiable) commandSource;
    
    // TODO: do something with identifiable to calculate contexts
}
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

After further investigation, The timeout's were caused by my plugin.

What was happening?

Each time a player was sending a message in chat, I was getting their prefix, suffix, name color, and chat color from LP. So each time it was hitting up LP about 4 times.

Before : https://github.com/AnvilPowered/Catalyst/blob/4644a6b2f56588018c85256d2ef36b3afd8313de/velocity/src/main/java/org/anvilpowered/catalyst/velocity/utils/LuckPermsUtils.java

After : https://github.com/AnvilPowered/Cat...

#

If there is an error while saving data then there must be some issues with whatever data storage you use.

Please check the console for stacktraces (this error usually has some) and provide more info like the LP version, server type and version, other plugins you use and the output of /lp info

I'm not too sure what I'd be looking for with stacktraces. Could you explain that a little for me please?

Here's the all the plugins I'm running;
![Capture](https://user-images.gith...

lilac dewBOT
#

You have essentials twice in your plugin list, so better remove one.

And I personally suggest to not use file-based storage as it would increase storage space used and could get corrupted.
Staying with the default h2 storage is recommendet.

This isn't my storage system, this is all through MCProHosting. So I'm not too sure how else to do all that storage wise on there.

lilac dewBOT
#

This is for sure not "through MCProHosting", if you refer to the storage-type LP currently uses (Which is set to YAML in your case.
You can switch the storage type following this wiki page and if MCP doesn't allow you to switch storage type of a plugin (Which wouldn't make sense), then switch the host.

I'm receiving an error "unexpected error occurred whilst writing to the file" when I try to export it

lilac dewBOT
#

There must be more to this error than just that.
As I mentioned earlier should you check the console for stacktraces... They should be pretty obvious to spot and if not: Google "Stacktraces Java" to see how one looks like. This is basic server-management 101

java.nio.file.NoSuchFileException: /opt/service/plugins/LuckPerms/yaml-storage/users/38703788-e609-426c-9344-f09c8435c09c.yml

This is what the stacktrace is saying. I searched around and found one article on it, and the fix was...

lilac dewBOT
#

Looks like LP can't find a file (Maybe was deleted?)
Try restarting the server and maybe remove the lib/libs folder in the LuckPerms folder to let it re-download any required libraries.

At this point everything seems to be working as it should. Somehow when restarting my server though it changed the world seed so I'm gonna have to backdate that. There were a few missing libraries.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Several times a day Luckperms loses connection to my MariaDB storage. I have changed databases several times but it still happens. None of the other plugins I use have had a connection problem only luck perms do. I have even tried using one of the databases one of my other plugins is on which works correctly but luck perms still lose connection to it.

"23:04:09] [luckperms-scheduler-worker-21/WARN]: java.sql.SQLTransientConnectionException: luckperms-hikari - Connection is not available, ...

lilac dewBOT
#

[18:01:37] [luckperms-hikari housekeeper/WARN]: [me.lucko.luckperms.lib.hikari.pool.HikariPool] luckperms-hikari - Thread starvation or clock leap detected (housekeeper delta=1m28s149ms938?s513ns).
[18:01:38] [Paper Watchdog Thread/ERROR]: ------------------------------
[18:01:38] [Paper Watchdog Thread/ERROR]: The server has stopped responding! This is (probably) not a Paper bug.
[18:01:38] [Paper Watchdog Thread/ERROR]: If you see a plugin in the Server thread dump below, then please rep...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

How I can use LP where get/setPlayerInfoString is used? I need it to Towny plugin.
I try it with /lp user pvvvo meta set towny_default_modes local but it doesn't work, (It should put me in towny local chat for default) I even talk to the developer of Towny and he said me this:

yes so you should ask Luck how you can use LP where get/setPlayerInfoString is used.

#

Please allow us to export using the old export format.
Some of us keep track of our permissions changes via github, and the old format made this absolutely beautiful when it comes to debugging recent changes, issues and problems.

The new JSON format unfortunately, as much as I understand it's the new system, simply is very difficult to use with our tracking systems.

Example: https://i.imgur.com/TGd8M68.png

Please allow a command syntax to export using the old format <3
This would b...

lilac dewBOT
#

I don't really think there would be any real need to add any more support for the old export format.
The new one is more compact and allows LP to handle all the actions for the import slightly faster (from what I know)
Right now does LP have support to import exported files from v4, but I don't think there will be anything more to that.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I am getting an InterruptedException on Velocity after running the shutdown command.

This can be reproduced on a fresh installation of Velocity v1.0.5 and LuckPerms v5.0.88 by simply installing LuckPerms and running Velocity.

java.lang.InterruptedException
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awa...
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hey Guys,
I already had this bug with PermissionsEX and thought it would work with LuckPerms, but it doesn't.
So if I give myself the Admin Rank I've got in on the Lobby-UUID only and not on the other Servers like CityBuild. I know you can fix that problem with RedisBungee, but I wanted to ask if there's another option (a free one).

#

Check that you actually setup BungeeCord properly, as in enabling bungeecord in the spigot.yml on all servers and enabling ip-forwarding in the config.yml of the BungeeCord.
Servers, that aren't setup properly will create and use their own UUIDs based on the name of the player, rather than using the one provided through ip-forwarding, as this is how Offline-mode servers work.

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

hello there

I recently started a sky blocks server I added a plug-in to let people to do /shop called economy shop GUI. I added luck perms to allow people to do /shop and added it to the default but if people leave the server then join again it says you do not have to permission and I have to reload the server for them to have with the permission /Re-confirm can you help?

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I am not a native English speaker. If there is something wrong with my expressions, I hope it wouldn't trouble you. ๐Ÿ˜…

I have tried both MySQL and MariaDB as Storage Method, only to find errors, while other plugins using the same database work greatly. When I issued perms info, finding it seems that LuckPerms has connected with the database. But it was said "Table 'minecraft.perms_players' doesn't exist. " when I attempted to join the server.

BTW, I have googled and found it tha...

lilac dewBOT
lilac dewBOT
#

I have confirmed it more than 3 times, to make sure the configuration is correct.
And I have said that after the server said Done (8.272s)! For help, type "help" or "?", it was said by perms info that LuckPerms had connected with MySQL.

> [18:04:05 INFO]: [LP] -  Storage:
> [18:04:05 INFO]: [LP] -     Type: MySQL
> [18:04:05 INFO]: [LP] -     Ping: 25ms
> [18:04:05 INFO]: [LP] -     Connected: true         <- HERE
> [18:04:05 INFO]: [LP] -  Messaging: None

Beside...

lilac dewBOT
#

I am currently using the Tebex Webstore under this address: http://craftingforchrist.tebex.io/
I am having current issues on my Tebex store that I cannot use the luckperms plugin using "lp user parent add" command in my package.
When I get a free dummy package configured with this command applied, it won't apply and I can't see why it wouldn't be working.

I emailed tebex and got the following response.
"Hey there.A s far as I know, this is just a limitation of luckperms, and is not some...

lilac dewBOT
#

The fact that you have connections dying during startup is sketchy af, would suggest that either the mysql server is slow as heck or you're having connection issues to it in general

as for the other warning, looks like the connection failure likely caused the tables not to be setup properly, I would look into diagnosing the first set of issues and then just drop the lp tables and try again, schemas are here if needed, https://github.com/lucko/LuckPerms/tree/master/common/src/main/resources...

lilac dewBOT
#

Thanks for your tips. Importing schemas manually helps.

The fact that you have connections dying during startup is sketchy of, would suggest that either the MySQL server is slow as heck or you're having connection issues to it in general.

As for connections, I think that there shouldn't have been a problem.
There are some reasons:

  1. The server was newly created, as well as the database.
  2. The server enables few plugins using the database, all of which are not heavy-weight pl...
lilac dewBOT
#

Spigot 1.15.2 (Jenkins 2645)
LuckPerms 5.0.91

[17:36:25] [Server thread/ERROR]: Error occurred while enabling LuckPerms v5.0.91 (Is it up to date?)
java.lang.NullPointerException: null
        at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:391) ~[spigot-1.15.2.jar-2020-03-08-1937:git-Spigot-6de3d4b-fc24934]
        at me.lucko.luckperms.common.query.QueryOptionsImpl.(QueryOptionsImpl.java:58) ~[?:?]
        at me.lucko.luckperms.common.query.QueryOptionsBuilde...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

/lp user {username} group set {group} was an easy to understand addition. With its removal comes unnecessary confusion. If I were to give access to a staff member and said, "change this users group" they would look through 2 routes:
/lp group {groupname} add {player} - not a thing.
/lp user {username} group set {group} - now not a thing.

With the first obviously being the easiest to understand and the second being very self explanatory.
They are referred to as "groups". When ...

lilac dewBOT
#

Describe the issue

MinimalApiProvider throws an exception on getTrackManager

LuckPerms javadoc does not have a throws that indicates this behavior
https://github.com/lucko/LuckPerms/blob/95d2832884ac10020e7eec13c54f01381bce186d/api/src/main/java/net/luckperms/api/LuckPerms.java#L106-L114

Exception:

java.lang.UnsupportedOperationException: API is not fully loaded yet - current implementation is minimal.
	at me.lucko.luckperms.common.api.MinimalApiProvider.exception(Mi...
lilac dewBOT
lilac dewBOT
#

I'm using LuckPerms with 4 Paper and 1 Waterfall server, all on v5.0.92.
Snippet of config:

server: freebuild
use-server-uuid-cache: false
storage-method: mariadb
data:
  address: "333.444.555.666:3306"
  database: <db name here>
  username: <username here>
  password: <password here>
  pool-settings:
    maximum-pool-size: 10
    minimum-idle: 10
    maximum-lifetime: 600000
    connection-timeout: 5000
    properties:
      useUnicode: true
      characterEncoding:...
lilac dewBOT
#

It did load the messaging service config on all servers though.

Waterfall:

[21:00:18 INFO]: __
[21:00:18 INFO]: | |__) LuckPerms v5.0.92
[21:00:18 INFO]: |___ | Running on BungeeCord - Waterfall
[21:00:18 INFO]:
[21:00:18 INFO] [LuckPerms]: Loading configuration...
[21:00:19 INFO] [LuckPerms]: Loading storage provider... [MARIADB]
[21:00:19 INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Starting...
[21:00:19 INFO] [me.lucko.luckperms.lib.hikari.Hi...
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

This entirely depends on your Server setup and not LP itself, as it doesn't manage the gamemodes of players.
If you use a plugin like Essentials(X) that manages the /gamemode command, check its documentation for the command permissions.
If it is the default vanilla command, then the permissions would be minecraft.command.gamemode

Note that vanilla /gamemode doesn't have permissions to restrict it for specific gamemodes only, while EssentialsX does.

lilac dewBOT
#

This entirely depends on your Server setup and not LP itself, as it doesn't manage the gamemodes of players.
If you use a plugin like Essentials(X) that manages the /gamemode command, check its documentation for the command permissions.

Yes, I have essentialsX, but I did not quite understand where to enter the permissions.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Have you checked your DB server's error logs to see if there's any errors there? Also, could you try making a new user & the same database and see if it persists, then new user + new database, then new database + same user. That way if all except one of those configs work it'll narrow down the issue, if all of them do not work then maybe either a bug with your MySQL version in particular, or something like that.

lilac dewBOT
lilac dewBOT
#

I am using the newest version of Luckperms but in version 1.15.2 even when all my perms are in there they dont get the permission. I have essentials.hat enabled for all my groups and nobody can do /hat. Same goes for all of my moderator perms (Litebans permissions) I closed my server from 1.14-1.15 and when i reopped I put the new version of the plugin into my folders, it worked fine before.

lilac dewBOT
#

`LuckPerms api = LuckPermsProvider.get();
User user = api.getUserManager().getUser(UUID.fromString(spielerUUID));

InheritanceNode groupNode = InheritanceNode.builder(teamName).build();

user.data().add(groupNode);
api.getUserManager().saveUser(user);
api.runUpdateTask();`

Actually this code should be used to update the permissions. But I have to type ingame /lp editor or reload Luckperms to update permissions.

lilac dewBOT
#

As you can see, this.permissions is already a ConcurrentHashMap, so I'm not sure what creating a copy would do to fix the problem?

https://github.com/lucko/LuckPerms/blob/01e17adf82d00b81b4b5e86f0ce115d64811bcdc/common/src/main/java/me/lucko/luckperms/common/cacheddata/type/PermissionCache.java#L73

Iterating over ConcurrentHashMap.entrySet() is thread safe.

About the issue itself, I'll reply here: #2062

#

Strange, it's not obvious to me that either plugin is to blame.

The call that the Quests plugin is making to getEffectivePermissions seems to be perfectly safe (although arguably could be avoided for performance reasons, but that's besides the point)

https://github.com/PikaMug/Quests/blob/ccc2ee8ada6b8c9ce14d1933901e81a10296adb6/main/src/main/java/me/blackvein/quests/Quests.java#L3037

And the LP implementation of that method seems to be ok too, so I'm not sure.

Does the crash ha...

lilac dewBOT
#

Strange, it's not obvious to me that either plugin is to blame.

The call that the Quests plugin is making to getEffectivePermissions seems to be perfectly safe (although arguably could be avoided for performance reasons, but that's besides the point)

https://github.com/PikaMug/Quests/blob/ccc2ee8ada6b8c9ce14d1933901e81a10296adb6/main/src/main/java/me/blackvein/quests/Quests.java#L3037

And the LP implementation of that method seems to be ok too, so I'm not sure.

...

lilac dewBOT
lilac dewBOT
#

I'm sorry, this might not be specifically a LuckPerms issue, but I do need help.

Issue: Players are shown suggestions for commands they don't have permissions for. When they start typing "/", they get 3 suggestions for all plugins. I'd like to know how I can make it so players are only shown suggestions for commands they are able to use.

Running Paper 1.15.2
Thanks in advance.

![image](https://user-images.githubusercontent.com/62208477/76703899-f8594300-66b3-11ea-9188-3ccd3a9076ef.p...

lilac dewBOT
#

This is - as you mentioned - not related to LP.
The issue is, that the plugins themself don't properly handle the commands (e.g. assigning a permission to the command through the plugin's plugin.yml) or similar.
A relatively good plugin would hide the command, when you lack the permission, which is a bit rare tho.
A solution for this would be to use a plugin that blocks the command suggestions if you lack permissions.
I can't suggest any specific one, but I'm sure a quick Google search ...

#
  1. Not an LP issue, as LP generates the link (as shown in your second screenshot)
  2. Check your plugins. It could be one like an anti-ad plugin, that prevents links from being shown in chat (And handles this extremely poorly)?
  3. No need to censor the editor link. Nobody can harm your server through it unless they have console-access or can use the applyedits-command of LP.
lilac dewBOT
#
lilac dewBOT
#

We should create a new instance because, right now, it's merely wrapping the original collection. Here's a somewhat-similar example

It's not a similar example, because it is wrapping a HashMap, not a ConcurrentHashMap.

I might restate that this issue results in a server crash, not an exception, so it's my understanding this really shouldn't be left for other plugins to pick up on.

As explained on the other issue, I don't think this actually is an issue, and also don't think...

lilac dewBOT
#

I own a Spigot server, and I get this error in the log every time I try and run the server with LuckPerms in the plugins folder. In game I get "[LP] error occurred whilst loading permissions data. Please
try again later. If you are a server admin. please check the console for any errors".

My server is running on 1.15.2 and MY LuckPerms version is LuckPerms-Bukkit-5.0.94.

thanks!

lilac dewBOT
lilac dewBOT
#

Hello,I have a problem with this plugin.
When I added this plugin to my server, this started to showing in my console

[LuckPerms] Disabling LuckPerms v5.0.72

 [20:21:12 INFO]: [LuckPerms] Starting shutdown process...
 [20:21:12 INFO]: [LuckPerms] Closing storage...
 [20:21:12 INFO]: [LuckPerms] Goodbye!

When I tried to join I have this message

io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information:

Please help...

lilac dewBOT
#

Trying to remove a test permission:

# tail -f a3db90093614.log  | grep test.permission
		2617882 Query	INSERT INTO `luckperms_messenger` (`time`, `msg`) VALUES(NOW(), '{\"id\":\"<uuid>\",\"type\":\"log\",\"content\":{\"timestamp\":1584314514,\"source\":{\"uniqueId\":\"<uuid>\",\"name\":\"ptrcnull@bungee\"},\"target\":{\"type\":\"USER\",\"uniqueId\":\"<uuid>\",\"name\":\"ptrcnull\"},\"description\":\"permission unset test.permission\"}}')
		2617886 Query	INSERT INTO `luckperms_actions`...
lilac dewBOT
#

I'm assuming you mean https://github.com/PikaMug/Quests/issues/1121#issuecomment-599201817 which, to me at least, doesn't read as a suggestion and more of an analysis of the timing report. Anyway, given that we have three conversations on the topic going at once, maybe the issue is starting to lose focus.

It has been alluded to that this may ultimately be considered an exploit. Assuming I've been correct in my assessment, it would only take a server running LuckPerms + any plugin(s) which ...

lilac dewBOT
#

Sorry for bumping such an old issue, but I have the same problem.
LuckPerms is added to depend:

name: ChatManager
version: ${project.version}
author: ptrcnull
main: me.ptrcnull.chatmanager.ChatManager
depend: [LuckPerms]

and I'm getting the API instance in onEnable:

    @Override
    public void onEnable() {
        LuckPerms luckPerms = LuckPermsProvider.get();

        getProxy().getPluginManager().registerListener(this, this);
    }

Somehow, it...

lilac dewBOT
#

Hey Luck, I had an idea:

Would it be possible to allow something like
image
in order to be able to take advantage of spacing when using placeholders like %luckperms_prefix_element_highest_on_track_staff%?

As it is right now, using that placeholder will return the prefix that is highest on that track in chat, but spacing from the meta-formatting section will not be applied to it, ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

[22:19:25] [main/INFO]: Booting up Velocity 1.0.6-SNAPSHOT (git-5c6163d8-b195)...
[22:19:25] [main/INFO]: Connections will use NIO channels, Java compression, Java ciphers
[22:19:25] [main/INFO]: Proxy is running in offline mode!
[22:19:25] [main/INFO]: Loading plugins...
[22:19:26] [main/ERROR]: Exception in thread "main" com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: Lme/lucko/luckperms/api/LuckPermsA...

lilac dewBOT
#

When starting with Java 11, I get a warning on start-up relating to LuckPerms while running LuckPerms 5.0.94 and PaperMC 1.15.2 (Version 136)

C:\srv\minecraft-server>C:\srv\minecraft-server\jdk-11.0.6\bin\java.exe -Xms10G -Xmx10G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:G1MixedGCLiveThresholdPercent=35 -XX:+AlwaysPreTouch -XX:+ParallelRefProcEnabled -D...