#issues

1 messages · Page 9 of 1

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

This is a common issue you will face with offline servers. LuckPerms uses UUIDs for identifying players because unlike names are UUIDs unique per player. This however is getting lost when you run the server in cracked/offline mode as the server itself now creates the UUID based on the player's name.
Spigot even gives a hug warning when running in offline mode:

**** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
The server will make no attempt to authenticate usernames. Beware.
While thi...
lilac dewBOT
lilac dewBOT
#

I get some warning on 1.15.2

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/opt/minecraft/mineqc/plugins/LuckPerms-Bukkit-5.0.94.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: Use --illegal-access=warn ...

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

The noteworthy bit is here:

[12:36:05] [Server thread/INFO]: [LuckPerms] Enabling LuckPerms v5.0.94
[12:36:05] [Server thread/INFO]: __
[12:36:05] [Server thread/INFO]: | |__) LuckPerms v5.0.94
[12:36:05] [Server thread/INFO]: |___ | Running on Bukkit - CraftBukkit
[12:36:05] [Server thread/INFO]:
[12:36:05] [Server thread/INFO]: [LuckPerms] Loading configuration...
[12:36:05] [Server thread/ERROR]: Error occurred while enabling LuckPerms v5.0.94 (Is it up to date?)
java.lang.U...
lilac dewBOT
#

Can you show your full server log?
Seems like something is shutting down your server as soon as it enables - but it's not LP doing it.

Hello.
I have the same problem when I installed this plugin.

My full server log.

[CSRV] Changing working dir...
[CSRV] Scanning for network conflicts... ['127.0.0.1:41807', '176.9.2.107:41807', '127.0.0.1:0']
[CSRV] Setting kernel resource limits
[CSRV] Switching to unprivileged server user
[CSRV] Executing Java...
Loading libraries,...

#

If I'm wrong, the worst thing this PR would do is a maybe lose a few milliseconds on performance.

Not quite, there are other issues with the behaviour of the code. permissionsUnmodifiable is a view of the permissions map - copying in the constructor means this is a copy, not a view, and therefore will not update automatically.

I glossed over that because the fix is unnecessary anyway.

I've slightly improved the performance of getEffectivePermissions in this commit 05b82cdbabd...

lilac dewBOT
#

Yes, it's a copy, but as far as I can tell the method is provided for external use; not internal, so it makes little to no difference in practice, unless you're expecting someone to call the method ad infinitum, in which case we'd run into a parallel issue.

I appreciate the commit, as it seems Guava will ultimately create a copy of the entry set, likely to avoid this very problem:
https://github.com/google/guava/blob/559e1ac1359e8d5dc0941aa72691698185d65407/guava/src/com/google/common/col...

lilac dewBOT
#

Line 113 sends you to a 404, probably an outdated link.

### `storage-method`
Which storage method the plugin should use.

See [here](https://github.com/lucko/LuckPerms/wiki/Choosing-a-Storage-type) for a full list of supported types.

should be...

### `storage-method`
Which storage method the plugin should use.

See [here](https://github.com/lucko/LuckPerms/wiki/Storage-types) for a full list of supported types.
lilac dewBOT
lilac dewBOT
#

As the title suggests, whenever I attempt to use this command on the console, the server doesn't recognize the command. Any help is appreciated.

version is: 5.0.72 on a spigot server hosted on Shock Byte on version 1.15.2
context: Used the Web Permissions Editor and used the command generated by the website when I saved the page.

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Add an option to make the server exit with a status code of 1 (basically just crash) if the connection to the external database can't be established on startup.

I run my servers in a Kubernetes cluster, and sometimes the MariaDB server will take a bit longer to start up than the Minecraft servers. As Kubernetes has a self-heal function, if the server exits, the scheduler will restart the server for me with an exponential backoff.

Currently all that happens is that the plugin gets disabl...

#

For reference for anyone having a similar problem, here's a solution that works outside of the plugin: https://medium.com/@xcoulon/initializing-containers-in-order-with-kubernetes-18173b9cc222

Basically create an initContainer that runs before the Minecraft server pod that checks to see if it can connect successfully to the database. If the initContainer fails to connect, exit 1 and the cluster will keep trying to run the initContainer until it succeeds.
Only after this will the Minecraft...

lilac dewBOT
#

Fair enough - I find this to be desirable behaviour in a microservices envirionment however, as I prefer to give the scheduler more freedom on placement. Either why, I'm suggesting a config option, not a default.

Maybe another option is a retry w/ backoff within Luckperms? From my experience I see that the plugin disables itself after the connection times out, instead of retrying. Correct me if I'm wrong.

#

The plugin doesn't disable itself when it can't connect to the database, but rather denies the login of players, due to it being unable to connect to said database.
I can't see the point of this retry option here either as 99% of the time the database is already running before the server and not vice-versa.
You should have the database setup and running before you start the server, or other plugins using the remote database too might face the same issue.

#

Strange, I'll attempt to reproduce the issue I'm seeing of the plugin getting disabled - most likely a bug causing it to crash.

@Andre601 I can definitely agree on the fact that 99% of the time the database will be running. From what I see, the vast majority of Minecraft servers run on a more traditional operating model of discrete, stateful machines.

This is proving difficult to translate into a newer containerised model as the plugin is making assumptions that services will always be ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi everybody, my name is Manu, i am typing from Switzerland and I'm a dad setting up a server for the children of our neighborhood to help them stay healthy and entertained while we are collectively fighting the coronavirus with self-isolation.

I am using LuckPerms (v5) and I am puzzled because it appears nobody by default is in the default group. Is this the expected behaviour? If not, how can I debug what is going on?

Thanks for your help!

lilac dewBOT
#

When i try to use /lp editor or lp editor in console i recieve this message

Unable to upload permission data to the editor.

I tried latest spigot and https://luckperms.net, but problem is still here, What can i do?

Additional info:

[20:59:04 INFO]: [LP] Running LuckPerms v5.0.72 by Luck.
 [LP] -  Platform: Bukkit
 [LP] -  Server Brand: Paper
 [LP] -  Server Version:
 [LP] -  git-Paper-1618 (MC: 1.12.2) - 1.12.2-R0.1-SNAPSHOT
 [LP] -  Storage:
 [LP] -     Type: H2
 ...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hey,
is there a way to execute a command like /lp user ... parent add player with a command block?
Yes, exactly this question was here several months ago and it was closed with: "Command blocks are - to my knowledge - not supported by plugins or spigot in general." (https://github.com/lucko/LuckPerms/issues/1721)
I have the same problem but I performed some tests and here is my results.
I have command block with this command:
`/pex user ...

lilac dewBOT
lilac dewBOT
#

Hello, we have a little issue with the command /luckperm parent remove in the global context.

If we define a rank, for example the rank adept, on our survival with the command /luckperm parent add adept survival, the player has the rank. If we remove him with the command /luckperm parent remove adept survival everything works.

So there's my player : https://i.imgur.com/Dv9b0Ro.png
Setting him the rank adept : https://i.imgur.com/bm5cdo2.png
Removing him the rank adept : http...

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

So I get this error spammed in the console:
WARN: Establishing SSL connection without server's identity verification is not recommended. ect ect

However, my pool settings seem to be correct?
pool-settings:
# This setting allows you to define extra properties for connections.
properties:
useUnicode: true
characterEncoding: utf8
useSSL: false
verifyServerCertificate: false

I was told to redirect to github and make an issue thingy here!

lilac dewBOT
#

hi, it's been 1 month since I have a problem with another plugin, which is nametagedit, it throws me an error that I can't fix by updating the same plugin, since the updates higher than 4.4.1, they close the server, and check that it is not the plugin nametagedit, even so when I use 4.4.1 of luckperms I get an error with the other plugin and that does not let me use the commands within the game, create the error problem that both plugins have.

[19:04:23 INFO]: [NametagEdit] Found LuckPerms...

lilac dewBOT
lilac dewBOT
#

Getting this issue when using a 1.7.10 bungeecord. Is it possible to get a version of luckperms-bungee that will work with 1.7.10?

15:32:18 [WARNING] Exception encountered when loading plugin: LuckPerms
java.lang.NoClassDefFoundError: com/google/gson/internal/bind/TreeTypeAdapter
at me.lucko.luckperms.lib.text.adapter.bungeecord.TextAdapter0.bind(TextAdapter.java:104)
at me.lucko.luckperms.lib.text.adapter.bungeecord.TextAdapter0.(TextAdapter.java:76)
at me.lucko.luckperms....

lilac dewBOT
lilac dewBOT
#

I'm not really sure what the issue is here - could you give an example of what you're currently seeing and how that differs from what you expect?

The problem is that Tab displays prefixes regardless the server context set in LP. So if a user is in a group and has a prefix on server1 it will display the prefix on server2 as well, if you are using the same setup, ranks, etc. But Neznamy believes it's an issue with the LP api not supporting server contexts not allowing his plugin to work pr...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I recommend using a tab plugin for BungeeCord for easier configuration and management.

You don't seem to understand what I mean. If a user is in groupA with the server context server1 it will show the prefix fine, like intended. But if a user is in groupA with the server context server2 on a different server it will show the group prefix still, yet it's a different server. The only thing in common are the rank names and the same lp db. Given that, Tab does not respect per-server context,...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I also think this change is focused enough so that it shouldn't have any harm on the future maintainability of your code.

I agree!

The fix is only intended to support basic functionality. Yes, there is some more logic that would have to be added for full support, but I would agree you don't want to diverge your project for a fork.

Sure, it might make it load correctly, but methods such as PermissionAttachmentInfo getEffectivePermission(String name) are going to cause a runtime ...

lilac dewBOT
#

Hello everyone ! So, i started to create a mimecraft server and I decided to use luck perms instead of Groupmanager, until now Luckperms for me is better and I have some question about using it with Tebex/Buycraft. I learned the plugin a bit but I don't know how I can sell ranks. I know about the tracks and that there is a comand wich upgrade your ranks depending to the track. I can use that as rank upgrade in my store but I don't know this things:

  1. How can I sell ranks directly without ne...
lilac dewBOT
#
[11:46:13 INFO]: iLemon issued server command: /lp migration permissionsex
[11:46:13 INFO]: [LP] MIGRATION [PermissionsEx] > Starting.
[11:46:13 INFO]: [LP] MIGRATION [PermissionsEx] > Calculating group weightings.
[11:46:13 INFO]: [LP] MIGRATION [PermissionsEx] > Starting group migration.
[11:46:13 INFO]: [LP] MIGRATION [PermissionsEx] > Migrated 1 groups so far.
[11:46:13 INFO]: [LP] MIGRATION [PermissionsEx] > Migrated 2 groups so far.
[11:46:13 INFO]: [LP] MIGRATION [Permission...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I have an issue with LuckPerms overriding a different plugin i use to configure the tab.
The plugin i use for this is [https://www.spigotmc.org/resources/tab-1-5-x-1-15-x-free-version.57806/]
I have configured this plugin to order online players in the tab list (with higher ranked players nearer the top) and to format player names and their prefixes (They are formatted slightly differently to the prefixes they have in LuckPerms). However with LuckPerms, this config is totally ignored and li...

lilac dewBOT
lilac dewBOT
#

LuckPerms does not "override" another plugin.
It doesn't manage the tab list at all. This is all handled by the tab plugin and not LP. If you have issues with the tab list, then the plugin might conflict with another one, or it just sucks tbh.

Anyway, this is not an LP issue at all and entirely caused by the tab plugin itself.
I suggest requesting support from the dev of Tab here: https://discord.gg/EaSvdk6

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

[20:35:35] [Shutdown Thread/INFO] [LuckPerms]: Starting shutdown process...
[20:35:35] [Shutdown Thread/INFO] [LuckPerms]: Closing messaging service...
[20:35:35] [Shutdown Thread/INFO] [LuckPerms]: Closing storage...
[20:35:35] [Shutdown Thread/INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Shutdown initiated...
[20:35:35] [Shutdown Thread/INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Shutdown completed.
[20:35:35] [Shutdown Threa...

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

Hello Today I switched from Permissionsex to LuckPerms and I must say I love it, but I crossed by to a problem.
I used this method to allow cerian groups to enter a specific area protected with world guard:
_

/region flag Stuff entry deny
/region addmember Stuff g:CoolPeople
/region flag Stuff entry -g nonmembers

Then I'd add the permission node "group.CoolPeople" to the CoolPeople group in your permissions plugin's config.
full thread [click here](https://bukkit.org/thre...

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

I work with luck perms.
If i set a prefix /lp group owner meta addprefix 100 &4[&c&lOwner&4]
I get this if i chat [Owner] [Owner] BrownciosB
i get 2 prefixes. but i want onliy one time like this [Owner] BrownciosB
How do i fix that pleas help me as soon you guys can !!

image

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hello, i've connected my luckperms into my MySQL DB, everything works perfectly except if i run /lpb networksync it does not sync a single thing. I've bunch of groups in my Sponge server, i'm trying to add those groups into bungeecord as well by running this command and i had no luck so far.

My messaging service setup is correct, MySQL DB works perfectly, the only command does not work properly is the sync commands.
LuckPerms Version: 5.0.108

lilac dewBOT
lilac dewBOT
#

The main issue with this request boils down to:

  • The currently used YAML library doesn’t allow for persistent comments. As it’s the library shipped by Bukkit, it would require shipping a custom one, which comes within many problems.
  • It’s a personal problem, as you mentioned. And due to the previous point the effort required to implement this minute feature is several hours. Which is just not proportional to the benefit that feature would provide.
lilac dewBOT
#

I looked up help on my issue and saw many others had this issue but couldn't find a working solution. I have LuckPermsBungee Version 5.0.108 and PlaceHolderAPI Version 2.10.5. Everytime I try to load in PAPI placeholders I get this error.
I have tried using the extension-legacy-api extension and still getting error.

[14:17:11 WARN]: [PlaceholderAPI] Task #15 for PlaceholderAPI v2.10.5 generated an exception
java.lang.NoClassDefFoundError: net/luckperms/api/LuckPerms
at me.lucko....

lilac dewBOT
#

For those wanting the same result as me:
So EssentialsX worked after some tinkering, how it works is you gotta give the intended group the permissions essentials.gamemode and essentials.gamemode.others. After this you gotta save those unless you do it all in the .yml, if you use the editor as myself, save those first and "update" editor by getting a new link ingame (/lp editor) go back in and search for essentials.gamemode.spectator and essentials.gamemode.survival now it should work...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

LuckPerms dev 1025

[06:47:00] [ForkJoinPool-2-worker-37/WARN]: [LuckPerms] Unable to pass event NodeAddEvent to handler github.scarsz.discordsrv.hooks.permissions.LuckPermsHook$$Lambda$5036/0x00007fd5467950b0
[06:47:00] [ForkJoinPool-2-worker-37/WARN]: java.lang.ExceptionInInitializerError
[06:47:00] [ForkJoinPool-2-worker-37/WARN]: 	at me.lucko.luckperms.common.util.PrivateMethodHandles.(PrivateMethodHandles.java:41)
[06:47:00] [ForkJoinPool-2-worker-37/WARN]: 	at me.lucko.luckper...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Used Java 13, just to be ready for future releases:

30.03 21:56:33 [Server] INFO WARNING: An illegal reflective access operation has occurred
30.03 21:56:33 [Server] INFO WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/plugins/LuckPerms-5.0.72.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
30.03 21:56:33 [Server] INFO WARNING: Please consider reporting this to the maintainers of me.lucko.luckperms.commo...
lilac dewBOT
#

Okay, here you go!

30.03 22:33:02 [Multicraft] Received start command
30.03 22:33:02 [Multicraft] Loading server properties
30.03 22:33:02 [Multicraft] Starting server!
30.03 22:33:02 [Multicraft] Loaded config for "PaperSpigot (latest stable)"
30.03 22:33:02 [Multicraft] Updating eula.txt file
30.03 22:33:03 [Server] INFO System Info: Java 1.8 (OpenJDK 64-Bit Server VM 25.242-b08) Host: Linux 4.19-ovh-xxxx-std-ipv6-64 (amd64)
30.03 22:33:03 [Server] INFO Loading libraries, please wa...

lilac dewBOT
#

Hi Luck. I raised an issue with Nucleus about an issue I'm having with my RLCraft server. Upon speaking to dualspiral, he informed me that it's more of a LuckPerms issue. https://gist.github.com/Voxdnb/0952f96bee5a5d78d43988444afb694c -- This is the logs from the server. dualspiral mentioned it could be something deep in LP code causing the issue.

Description of the problem: LuckPerms works fine until I add Nucleus. Then, when I try to send a message, my name completely disappears.

lilac dewBOT
#

Could you link me to the issue or chat log you had with dualspiral? I trust his judgement, but what you've said so far doesn't lead me to believe the bug you're experiencing is caused by LuckPerms.

Could you also clarify: when you say your name disappears, I assume you mean your username in the chat?

LuckPerms doesn't do any chat formatting itself, it merely provides "option" data (prefixes, suffixes, etc) when other plugins request it.

lilac dewBOT
lilac dewBOT
#
public void addPermission(Player player, String permission,int timer) {
        // assert that the player is online
        if (!player.isOnline()) {
            throw new IllegalStateException("Player is offline");
        }
        User user =  LuckPermsProvider.get().getUserManager().getUser(player.getUniqueId());
        long time1 = new Date().getTime();
        time1 +=timer * 3600;
        user.getNodes().add(Node.builder(permission).value(true).expiry(time1).build());...
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I'm trying to make a skyblock in which the improvements of the island are unlocked with money, but when I enter the command that through npc it will go to console ie "/ lpb user %player% permission set askyblock.island.range.150" or something like that instead of% player% I tried with "@p" etc but it turns out that the command doesn't exist, is there any way to do it?

#

Citizens is a Spigot plugin, therefore handling commands on the Spigot server/Console.
/lpb is the command of LuckPerms Bungee, a BungeeCord plugin.
BungeeCord and Spigot are two completely separate things and won't interact with each other, except for some really specific cases.
Just use the Spigot version of LP and use /lp instead of /lpb
In addition is it not LPs job to translate placeholders in commands, that would be Citizens job.

lilac dewBOT
lilac dewBOT
#

[19:35:43 INFO]: ozraru issued server command: /lp user ozraru parent addtemp owner 2147483648 replace
[19:35:43 INFO]: [LP] LOG > (ozraru) [U] (ozraru)
[19:35:43 INFO]: [LP] LOG > parent addtemp owner PT156064H38M25S
[19:35:43 WARN]: java.util.concurrent.ExecutionException: org.h2.jdbc.JdbcBatchUpdateException: Numeric value out of range: "2147483648" in column "EXPIRY"; SQL statement:
INSERT INTO luckperms_user_permissions (uuid, permission, value, server, world, expiry, contexts) VAL...

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

Sorry, (btw idk how to understand logs)
this is what i got
[23:46:01] [Server thread/INFO]: LeEpicCheese issued server command: /papi ecloud download luckperms
[23:46:01] [Server thread/INFO]: [PlaceholderAPI] Attempting download of expansion: LuckPerms by user: LeEpicCheese from url: http://api.extendedclip.com/media/Expansion-LuckPerms_IaULsEO.jar
[23:46:01] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[23:46:01] [Craft Scheduler Thread - 251/INFO...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Please read the warning next time:

The operation to load user data for 'cee3152c-3879-39c0-b8ee-8b2f7eb5fafc' was cancelled by LuckPerms. This is NOT a bug.
The lookup request was made on the main server thread. It is not safe to execute a request to
load data for offline players from the database in this context.
If you are a plugin author, please consider making your request asynchronously.
Alternatively, server admins can disable this catch by setting 'vault-unsafe-lookups' to t...

lilac dewBOT
#

Kinda yes.
There is nothing on LPs end other than this, to "fix" this, as it isn't a bug, nor a issue on our end.
Also the "lag" should be fairly minimal or even non-existant.
The warning is not saying, that lag will for sure be the result.

I recall that the dev of WorldGuard has been already made aware of this but refused(?) to change how WorldGuard is handling stuff.

#

Like mentioned in the linked issue is there not much that LP can do about it.
It already does everything it can and this is just a warning that a different plugin (and not LP) attempts to check permissions of a player (or the player itself I assume) on the main synchronous server-thread which depending on how much it is, can cause a lot of lag, so LP denies this request by default by throwing a "fake" exception.
Since Wiz still doesn't get it (it seems) is the enabling of unsafe lookups t...

#

I have been made aware of this by others and it seems to be true.
The solution I suggested should in theory work. If not, then perhaps the name is too long, or something else is causing trouble?
And just to be clear: From what I understand can you not set a user's permission if they didn't join at least once and therefore got cached/saved (Unless Nukkit has a different save-policy in that regard) and I don't think the UUID would work, as it looks like to be a Nukkit thing and not a general ...

#

Stacktrace
https://pastebin.com/raw/j5rbesN6

Description
Just a simple permissions check, originating from the TAB plugin (which, I might add, is a terrific plugin).

The calling stacktrace is off by a couple of lines due to other commits, but the calling code hasn't changed. It's just a bungeecord-specific player.hasPermission("tab.staff") check:

https://github.com/NEZNAMY/TAB/blob/master/src/me/neznamy/tab/shared/ITabPlayer.java#L125

https://github.com/NEZNAMY/TAB/blo...

lilac dewBOT
#

I didn't say it's anyone's fault. I also "get it". Seems luck did too last time, despite the rest of you guys telling me I'm doing things wrong.
WG can't just let people bypass protection by e.g. setting off tnt and then immediately logging out while it blows up. That'd be a bit dumb don't you think? Short of a proper log that can tell us what's going on here, looks to me like WG is acting just fine.

lilac dewBOT
#

It doesn't seem that I can. I contact their support team and they just said, that I have to ask the community, which leads me to nowhere since the community is not active at all.

Anyway I gave up, I just found away to fix the problem that I had without using LuckPerms.
Thank you so much for helping me even if the issue didn't get resolved the way I hoped it would, the time it took to respond was incredibly short on your end and I really appreciated that, since I have little to no clue w...

lilac dewBOT
lilac dewBOT
#

This is really a bummer. I suppose the fix hasn't landed yet still.

I'd like to issue lp commands over RCON to initialize groups and memberships from a web UI. The commands itself execute, so that's technically fine there's no feedback and I can't verify the existing settings.
Are there any suggestions how to achieve that instead? I could directly access the database, but I figured letting LuckPerms handle that would avoid interference and potential consistency issues. But looks like this...

lilac dewBOT
#

Minecraft 1.12.2 with forge
Sponge Forge 1.12.2-2838-7.2.0
LuckPerms-Sponge-5.0.113
Config: default

Other plugins: Nucleus-1.14.3-S7.1-MC1.12.2-plugin, Pieconomy-0.6.2, worldedit-sponge-api7.1.0-6.1.10-SNAPSHOT-dist

Exception: (send when player connect to server and with interval)

me.lucko.luckperms.lib.caffeine.cache.LocalAsyncCache lambda$handleCompletion$7
WARNING: Exception thrown during asynchronous load
java.util.concurrent.CompletionException: java.lang.IllegalStateExcept...

lilac dewBOT
#

https://i.imgur.com/ZIKr6Le.png

On the wiki, in that section, the one you were linked to twice, there is a section where modifier keys are explained. The temporary modifier [accumulate] can be added onto the end of the command to make it add up instead of reset. Additionally you can also set the default for settemp commands in the LP config to always accumulate without the specification in the temporary modifier.

Again, this is in the same section th...

#

A few questions:
Are you running a cracked server?
Are you running a server network with Bungee?
If so, what database and messaging service have you set up?

Feel free to respond on the discord, just let us know who you are and be ready to link this page!

Are you running a cracked server? No
Are you running a server network with Bungee? Yes those are from the Bungee
If so, what database and messaging service have you set up? MySQL/phpMyAdm...

lilac dewBOT
#

Hey :)

I've fresh installed LuckPerm jenkins build on spigot 1.15.2 and after basic setup and /stop and a start, I've run migrate from groupmanager which went successful. I was able to restart the server without groupmanager and run the lp editor to get the web editor to show me everything's there.

When I clicked save and copy paste the applyedits command in console i noticed this

Hostname bytebin.lucko.me not verified

in

>lp applyedits (string-redacted)
[15:28:55] [...
lilac dewBOT
lilac dewBOT
#

Hello, we run MariaDB with latest build of Luckperms.
When we start the server, everything is okay, but around 18 hours, it started being very very very strange. Luckperms disconnected from our database and didn't connect again... It tells things about maxLifetime or timeout things. We already tried to change values multiple times, we already multiple times asked on your discord server, but nobody couldn't really help us....

The error: https://pastebin.com/YfnkU6re

Thanks, Larkyy.
And...

#

I have the same exact problem as the poster, we read the wiki and tried many different values for the configs on lp and mysql and nothing works, everything is fine at fist and then after 10 hours of less it errors start happening.

Waterfall : build 327
MC Servers: Paper 161 and Tuinity 39
Luckperms : 116

lilac dewBOT
#

Can you try setting the maximum-lifetime to a lower value? Cut it in half, if that doesnt work, cut it in half again. Also you might want to set the messaging-service to sql instead of pluginmsg

I already tried to change the value of maximum-lifetime and also some values in the config of MariaDB. But thanks for the information about messaging, I will try it.

#

That maybe is your problem, every one of that server opens multibke connections to the database, and somewhen the limit is exceeded and the Database wont accept more connections. You could try to increase the maximum simultanious connections to your database server.

you need to add these variables to your mysql config to do that:

max_connections = 2000
max_user_connections=1000

That allows the database to accept 2k simultanious connections, but limiting the maximum connections...

lilac dewBOT
#

That maybe is your problem, every one of that server opens multible connections to the database, and somewhen the limit is exceeded and the Database wont accept more connections. You could try to increase the maximum simultanious connections of your database server.

you need to add these variables to your mysql config to do that:

max_connections = 3000
max_user_connections=1000

That allows the database to accept 3k simultanious connections, but limiting...

#

That maybe is your problem, every one of that server opens multible connections to the database, and somewhen the limit is exceeded and the Database wont accept more connections. You could try to increase the maximum simultanious connections of your database server.

you need to add these variables to your mysql config to do that:

max_connections = 3000
max_user_connections=1000

That allows the database to accept 3k simultanious connections, but limiting...

#

The messaging system is basically what informs the other servers about changes so that they re-sync the permissions. Setting it to SQL is the best option to avoid possible sync errors

In addition does pluginmsg require the Bungee version of LP to be installed too, which not everyone wants. This is also limited to servers that contain players, due to the nature of plugin messaging requiring this.
sql isn't affected by either of those things.

This is btw explained in the comments abo...

lilac dewBOT
#

That maybe is your problem, every one of that server opens multible connections to the database, and somewhen the limit is exceeded and the Database wont accept more connections. You could try to increase the maximum simultanious connections of your database server.

you need to add these variables to your mysql config to do that:

max_connections = 3000
max_user_connections=1000

That allows the database to accept 3k simultanious connections, but limiting...

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

There should be no reason for ingame commands to not work, and if the issue persists, please join us on the discord and we'll try and troubleshoot it. If the editor also doesn't work, also join us on discord and we'll troubleshoot. An easy solution is to just add the space in your chat format line, for whatever plugin you use.

As Andre said, LP might actually be doing what it needs to do. Make sure you don't have more than 1 permissions plugin.

#

Did you double-check that the command actually doesn't work?
You can always check if you (or the group) has a prefix by running /lp user|group <user|group> info

If the prefix shows there and has space at the end, then LP did everything it needed to do.

I also think this would be better suited for the LuckPermsWeb repository as it has to do with it.

Uhh, yeah. I’m so stupid. I forgot that it wouldn’t give it if it had a space a...

lilac dewBOT
#

I don't know why but LuckPerms is not working very well...

15:45:05 INFO: [LuckPerms] Enabling LuckPerms v5.0.117

15:45:05 INFO: | |) LuckPerms v5.0.117
15:45:05 INFO: |
_ | Running on Bukkit - CraftBukkit
15:45:05 INFO:
15:45:05 INFO: [LuckPerms] Loading configuration...
[15:45:06 INFO]: [LuckPerms] Loading storage provider... [MARIADB]
[15:45:06 WARN]: [Server thread] INFO me.lucko.luckperms.lib.hikari.HikariDataSource - luckperms-hik...

lilac dewBOT
#

@Tanguygab That looks normal to me - seems like your tab plugin is just pulling the prefix value and using that?

Regarding the main issue brought up here:

The User#getPrimaryGroup() API method will output exactly the same value as the one in the /lp user <user> info command.

So unless you're seeing a disparity in what shows in the info command and what is being exposed via the API, then I don't believe there is any bug here.

Closing for now, but please feel free to re-open i...

#

The exception messages posted above are triggered when a plugin checks for a permission on a player which LuckPerms doesn't have any loaded data for.

This can occur:

  1. When other plugins alter UUIDs during or sometime after the login process
  2. When other plugins check for permissions after a player disconnects from the proxy
  3. If due to some bug, LuckPerms unloads data for a user prematurely, or doesn't load any data in the first place.

However, the errors above don't give much ...

#

LuckPerms internally uses the group.<group name> permission to denote group membership.

So for example, it's not possible to give user x the group.admin permission, without automatically making them a member of the admin group.

My suggestion for solving your issue is to just add all of the LP groups you want to access a region to the definition in WorldGuard.

e.g.

/region addmember Stuff g:vip
/region addmember Stuff g:mvp
... etc
#

@Tanguygab That looks normal to me - seems like your tab plugin is just pulling the prefix value and using that?

Regarding the main issue brought up here:

The User#getPrimaryGroup() API method will output exactly the same value as the one in the /lp user <user> info command.

So unless you're seeing a disparity in what shows in the info command and what is being exposed via the API, then I don't believe there is any bug here.

Closing for now, but please feel...

#

I'm guessing your duration calculation is wrong - so the the node is expiring straight away.

Assuming timer is how long you want the permission to last in hours (I assume that due to your * 3600 call), then this will work.

Node.builder(permission).value(true).expiry(Duration.ofHours(timer)).build()
#

Since the change made as a result of #1651, LP now clears user data after a delay of 1 minute, so checks made via Vault in that time should proceed as normal.

Using wiz's TNT example: players should be able to set off TNT & then log out - assuming it explodes within 1 minute, WorldGuard should still be able to run permission checks on the player that detonated it without a problem.

Following along in the stack trace above, seems like:

  • a connected (online) player has hit an entity
    ...
lilac dewBOT
#

I think this may be okhttp being picky about the SSL certificate, but can't work out a good workaround.

I thought the commit above might work but it just resulted in this error.

>lp editor
[17:45:37 INFO]: [LP] Preparing a new editor session. Please wait...
[17:45:37 WARN]: java.lang.RuntimeException: Error uploading data to bytebin
[17:45:37 WARN]: 	at me.lucko.luckperms.common.web.WebEditor.post(WebEditor.java:140)
[17:45:37 WARN]: 	at me.lucko.luckperms.common.commands.misc....
#

Not helpful at all, but maybe relevant: https://github.com/lucko/LuckPerms/wiki/Storage-system-errors

There's a very limited amount of things I can practically do to help (sorry!) - it's just a case of tweaking your configurations - although I can see you're trying that already. :)

Hello lucko, thanks for you reply. I think we maybe fixed it, but I don't know that 100%. We changed our database host and it works good now ^^. So let's see how would it go next X hours/days.

  • Thanks...
lilac dewBOT
#

Essentially what's happening on the WG side is Player(Connection) attacks and kills entity, entitydeathevent (bukkit) fires, WG fires internal SpawnEntityEvent on an XP orb, which triggers a check for the xp-drops flag. that flag check checks if the cause of the event (includes player -> entity dying) have perms. perms are only checked for players, so either the attacking entity of the dying entity corresponds to that uuid (as we mentioned, would need more of a log to see which - especially s...

lilac dewBOT
#
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hill, i have an error, that doesn't allow me to enter to the server .
It tested different versions of the plugin and it says the same error.
I tested to host on my pc (Windows) but i also created a VM of Ubuntu server and the problem remains.

I just read (https://github.com/lucko/LuckPerms/issues/674) but my server its in online-mode=true (i also tested to make from 0 the server.propierties) But nothing.

I don't know where is the problem.
I am using SportPaper for 1.8.8.

https:...

lilac dewBOT
lilac dewBOT
#

When I use the api to add Permission, I get the Permission in game, but when I reload my plugin I lost the Permission. I am sure when I can use the Permission, I can't see it in Web Permissions Editor. So...I can't save it, and I think duration calculation is ok because I can use the Permission in game. What's more, is the expiry a time stamp?

lilac dewBOT
lilac dewBOT
#

Not helpful at all, but maybe relevant: https://github.com/lucko/LuckPerms/wiki/Storage-system-errors

There's a very limited amount of things I can practically do to help (sorry!) - it's just a case of tweaking your configurations - although I can see you're trying that already. :)

I already saw this website multiple times... I tried everything from there and it still doesn't work. We changed few Hostings and it is still dropping from any reason. The server runs for example for 18...

lilac dewBOT
lilac dewBOT
#

Hello,

Could you rewrite LuckPermsBungee using PostLoginEvent instead of LoginEvent? I have BungeeCord with anti-bot protection (captcha).
When someone launches an attack on my server, a lot of bots join it at one moment, and LuckPerms does not allow other players to log in to the server.
I understand that there may be incompatibility with some plugins because of this. But how else can you deal with a bot attack? Pay the one who attacks?

#

It is not LPs job to look for other plugins that cancel a connection.
Your anti-bot should cancel the connection before LP handles it, as luck said, which is done by having a higher priority set.
From what I understand can (and should) such plugins cancel connections on the PreLoginEvent which (obviously) happens before the LoginEvent.
Again: Not LPs job here. Tell the dev of the other plugin to increase the priority, or to switch to the PreLoginEvent if possible.

#

Plugins expect permissions data to be loaded by the time the player is entering the server - it's too late to only be loading it then, and besides, it's not an async event so cannot be done then anyway.

The LoginEvent is absolutely the correct event for LuckPerms to be listening to.

It is impossible to do strong anti-bot protection using PreLoginEvent

I disagree - there's plenty of information available during the PreLoginEvent to decide whether a connection should be allowed.

...

#

It is impossible to block bots on PreLoginEvent.
All Russian servers use captcha to protect server from bots. There is no other way to block them.
For example, https://github.com/Leymooo/BungeeCord
You can block them at the connection setup, but this option is only suitable for dumb bots.
If you are an administrator of a server with 20 players online, you don't need to be afraid of bot attacks, but in my case, when there are more than 1500 players playing on my server, I need goo...

#

Do me a favour and stop claiming stuff that isn't true.
I in fact know a dev of a anti-bot plugin which can block bots on Pre-Login.
Your claim about this being "impossible" is as wrong as the Pin-system you use, as this doesn't block bots at all from joining. The damage is already done when they joined as plugins like Essentials will create files for the user on first join.

There aren't any "smart" bots. Only Bots, which - again - can be blocked using a suffisticated anti-bot plugin...

#

The only information that is available in PreLoginEvent is client version, username, hostname, ip address and maybe some other handshake data that i can't remember now but that doesn't matter. How you are supposed to know from this very limited and easily spoofable information is this a bot connection or not? We are not talking about simple rate limiters that are easily bypassed by cheap proxies, right? There's no damage from just logging in to special captcha server that is running inside bu...

#

I get this error when a player joins by Bungeecord proxy.

`11:50:13 [SEVERE] [LuckPerms] Exception occurred whilst loading data for 7bd8b230-680e-45e2-acff-5215f7f69688 - EnderTweaks
11:50:13 [SEVERE] [LuckPerms] Exception occurred whilst loading data for 8a9dacdf-8d99-4ad9-9b07-55728d547a17 - rupertrmstr
11:50:13 [SEVERE] java.lang.NullPointerException
11:50:13 [SEVERE] at me.lucko.luckperms.common.plugin.util.AbstractConnectionListener.loadUser(AbstractConnectionListener.java:67)
...

#

It isn't.
It's not LPs job to listen for other plugins. The plugin you use does need to change its Listener Priority to fix this.
And the player stull joins, no matter what as they need a way to get the map displayed, as you've shown before. This won't work for the player without joining to the server first, which at the end will cause issues.

And I in fact never experienced this, as I use one of the best Anti-Bot systems out there: Mojangs Auth-System,
From what I can tell are you runn...

#

Alright I see what you mean about the captcha.

Unfortunately this breaks the design of BungeeCord somewhat - my suggestion would be that your fork of BungeeCord should hold off from calling the LoginEvent until after the captcha has been completed, and then call the event for normal BungeeCord plugins afterwards.

I don't think this is really LuckPerms (or plugins similar to LuckPerms) should be expected to work around.

lilac dewBOT
lilac dewBOT
#

Hey, i created the track "Helper" and appended the group "Helper" and "Default" to it so the person gets the perms from both and prefix from helper, but when I try and promote myself to the track it just gives me this error "[LP] The end of track helper was reached. Unable to promote FazzyPlayzMc."
Could anyone give me why this happens and how to fix it?

lilac dewBOT
lilac dewBOT
#

Hello.

I recentely reset my server completely (1.12.2 Sponge Server), I used LP without issues on there before.
I wanted to reuse LP, but after trying to install it again the config file does not create itself.
Not sure what to do here as there are no console logs or anything the like to indicate what is wrong, it's just not there, like I haven't installed it on the server.

Help is much appreciated as this is for an ongoing server project that had to be reset unexpectedly, hen...

#

Also keep in mind that moving the data load to the PostLoginEvent would not only lag servers it would also break plugins that expect permissions to be loaded during the LoginEvent. The only somewhat reasonable way to handle things would be by not storing new player data until for example the PostLoginEvent. Though I doubt the effort would be worth the niche use, especially considering security vulnerabilities like the one you describe are easily fixed by using the Mojang authentification serv...

lilac dewBOT
lilac dewBOT
#

i use a rank mod called rankgrant+, to use its ranking system i have have to use luckperms and the ranks arent showing up in chat. I went to the rankgrant support discord and they said to come to your discord and make a ticket. Please help.

lilac dewBOT
#

[05:48:23] [Server thread/INFO]: [LuckPerms] Enabling LuckPerms v5.0.72
[05:48:23] [Server thread/INFO]: __
[05:48:23] [Server thread/INFO]: | |) LuckPerms v5.0.72
[05:48:23] [Server thread/INFO]: |
_ | Running on Bukkit - Paper
[05:48:23] [Server thread/INFO]:
[05:48:23] [Server thread/INFO]: [LuckPerms] Loading configuration...
[05:48:23] [Server thread/INFO]: [LuckPerms] Loading storage provider... [MYSQL]
[05:48:23] [Server thread/INFO]: [me.lucko.luck...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

So, I searched for previous issues prior to creating this and found issue #2120. This is a duplicate of my issue, and I'm currently using LuckPerms 5.0.72, which I believe is older than the c3128de commit you mentioned in that issue.

My question is this - how do I go about using this commit? I've never learned how to compile a jarfile from GitHub, and before digging into that, I want to be certain of what...

lilac dewBOT
lilac dewBOT
#

@BrainStone

IS it possible to display say this node:
"cmi.command.fly" in a API/Placeholder to say this is active, but not show if it is not active?

Eg Timed perks that could be active on the server for 24 hours for those receiving the free perks.
I do use MyCommand yet to play around with it but thought to ask

lilac dewBOT
lilac dewBOT
#

Server hangs occasionally and gives this thread dump- I'm not exactly sure whats going on here but any help would be much appreciated.

Cheers

[16:13:22] [Paper Watchdog Thread/ERROR]: Stack:
[16:13:22] [Paper Watchdog Thread/ERROR]: java.base@11.0.6/java.util.concurrent.ForkJoinPool.registerWorker(ForkJoinPool.java:1376)
[16:13:22] [Paper Watchdog Thread/ERROR]: java.base@11.0.6/java.util.concurrent.ForkJoinWorkerThread.(ForkJoinWorkerThread.java:103)
[16:13:22] [Paper...

lilac dewBOT
#

Basically I use a fork of bungeecord, aegis to be more specific(It worked perfectly), today I updated the fork and I started getting this error message spammed in my console. I thought it was an error from the fork but after I searched a lot and tried many thing I reached to the conclusion that is an luckperms error, because the error disapears when I remove that plugin. I tried putting the plugin in a clean server, but I got the same thing again, I dont know what does it implies or what shou...

lilac dewBOT
lilac dewBOT
#

Hi,

I tripped over this too at first but lucko has correctly provided mongodb_connection_URI which gets passed directly into the MongoDB driver.

However, I only discovered that after seeing this open issue and going through the code to see if I could create a PR for it 😅

@lucko I'd recommend adding a section to the documentation, or maybe even just improve the readme description above connection to clarify the uri option is there. As it is very easy to scroll past as surrounding...

lilac dewBOT
#

It seems that importing v4-style exports broke between above mentioned versions.
I had to update the plugin in our 1.14 server while migrating as URI-based MongoDB connections were broken on 4.4.1 (what was installed at the time).

5.0.150 (latest on website) seems to try unzipping the file, even after specifically renaming it to a .txt (it was just an extensionless file before)

Luckily, yesterday I downloaded 5.0.72 somewhere (via spigot directly?) instead of the latest 5.0.150; wh...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

When attempting to utilize the documentation in: https://github.com/lucko/LuckPerms/wiki/Argument-based-command-permissions#promote-other-players-but-not-to-or-past-their-own-level-on-a-track

If the permissions listed are given in a server context to a group (G1), the functionality is backwards of what is listed in the documentation. Instead of having to specify the groups G1 cannot promote to or beyond, I have to add permissions for the groups that G1 can promote with the context.

Rel...

lilac dewBOT
#

Hello, I am new to using Databases with LuckPerms.
I have read the setup for databases with LuckPerms but when I try to set the storage-method to mariadb (mariadb is the database application I am using) it says connection refused.
I have when through the troubleshoot to find out but I cant find anything, I even installed phpmyadmin to see what is going on. If anyone can tell me why this is happening and a solution to fix this.

lilac dewBOT
#

Honestly, I don't know if this is even possible, and it may just need to be implemented within plugins themselves, but if there was a %luckperms_rank_with_permission% placeholder so I could create messages when someone tries to do something like

You must be MOD rank or higher to use this.
That would be kinda cool. It probably isn't possible, but if it is it would be a cool feature.

lilac dewBOT
#

SO i use the legacy jar with a custom spigot:
https://mega.nz/#!gmRG1aAL!E-fz0oYWaVAl-mKd3yuPJm450FAXp15RCT0dhifG2Dc
(I need this because of the Lazurus core)
https://www.mc-market.org/resources/11362/field?field=dependencies
This plugin supports LuckPerms but if i try to connect LP to database it chrashes

I get This LOG:

[12:17:04] [INFO]: [LuckPerms] Enabling LuckPerms v5.0.130
[12:17:04] [INFO]: __
[12:17:04] [INFO]: | |__) LuckPerms v5.0.130
[12:17:04] ...

lilac dewBOT
lilac dewBOT
#

So let's say there's 2 groups
helper & officer

default, has an option set of "home-count 5", and a group weight of 0
helper inherits from default, and the group has a weight of 30
officer has an option set of "home-count 10", and the group has a weight of 15

User dino has both helper and officer, but the player gets 5 homes because helper's weight is higher, despite inheriting the option from default, a lower weighted group.

I don't particularly want officer to...

lilac dewBOT
#

Hi there.

I have 1 BungeeCord VM and 2 Spigot VMs, currently running the latest PowerfulPerms, version 4.5.2 (not developed any more) alongside the latest versions of ProtocoLib and Placeholder API.

I have setup LuckPerms 5.0.72 on all 3 VMs, with MySQL and Redis on the BungeeCord VM.

On 1 of the 2 Spigot VMs, I have ran the following command in the server console to try and migrate from PowerfulPerms to LuckPerms:

_luckperms migration powerfulperms BUNGEEIP:3306 mysql_db mysql_u...

lilac dewBOT
#

Set the officer group as the primary group of a user using the switchprimarygroup command.
This should - to my knowledge - fix your problem.
https://github.com/lucko/LuckPerms/wiki/Command-Usage:-Parent#lp-user-user-parent-switchprimarygroup-group

Alternatively should it be possible to just make default the parent of officer too, and since it has a own permission + higher priority than default should it override the permission... Don't quote me on this one tho.

#

Seems like PowerfulPerms didn't even had the db connection active?

Anyway, about the errors:

[15:15:51] [pool-11-thread-1/WARN]: Thu Apr 02 15:15:51 UTC 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 t...
lilac dewBOT
#

Hello,

This is more a question then a bug report, because I don't think it actually is a LP issue but I can't figure out what it is.

So basically I set a prefix to a group but /lp group [grp] info shows no prefix, and it also doesnt show up in the user info. I looked with verbose but I don't see what the issue is, I think something might overwrite the LuckPerms prefix provider.

Here is the verbose session:
https://luckperms.net/verbose/#WUyv46pC7b

and here a editor session to...

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

Not sure is this error caused by spigot or luckperms.
But seems like it has something to do with luckperms. Check this error log.

[ERROR] ------------------------------

[ERROR] The server has stopped responding! This is (probably) not a Spigot bug.

[ERROR] If you see a plugin in the Server thread dump below, then please report it to that author

[ERROR] Especially if it looks like HTTP or MySQL operations are occurring

[ERROR] If you see a world save or edit, then it means yo...

#

It's not LP, it's an unrelated server crash. The first part of your thread dump tell me this, as there's no LP, but only mythicmobs and such. This is the section to look at:

[ERROR] Server thread dump (Look for plugins here before reporting to Spigot!):

[ERROR] ------------------------------

[ERROR] Current Thread: Server thread

[ERROR] PID: 29 | Suspended: false | Native: true | State: WAITING

[ERROR] Stack:

[ERROR] sun.misc.Unsafe.park(Native Method)

[ERROR] java.util.c...

lilac dewBOT
#

For some background, I have LuckPerms installed on my Spigot and Bungee servers.

The issue is that I have a plugin known as 'GrantX' and everything works fine. Although, it does not seem to be able to execute this - "lpb user %target% parent set %group%". Although, "lp user %target% parent set %group%" works fine. I contacted the GrantX plugin developer. However, he stated that it doesn't have anything to do with the GrantX plugin as it simply executes the command and that I should come ...

lilac dewBOT
#

My server is based on the fact that, as you progress, you can buy better ranks that guarantee better permissions, but I couldn't find how I define a user without saying his nickname to LuckPerms.
I know my explanation was bad but what I tried to do was:
/ svs add lp user parent add admin
to add the player that interacts with the card (from the ServerSigns plugin) to a certain group but I don't know what to put in "" so that LuckPerms recognizes that it is the player that is interacting.
...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hey, I would really like to see my users' avatars in the web editor (/lp editor).
However, my server is non-premium and every player head on the list appear as Steve.

I suggest retrieving the Minotar skull not using an UUID, but the username instead.
This requires changing the URL from for example
https://minotar.net/helm/17257402-4aa4-36f4-adf4-c0fff91b8b7a/100.png
to https://minotar.net/helm/nickname/100.png.

![image](https://user-images.githubusercontent.com/3465457...

lilac dewBOT
#

I was trying to set up permissions with the default group (the group LP already makes) and did this command
/lp group default permissions set essentials.kit.newplayer true
It said it worked so when I tested it I couldn't use /kit newplayer so I tried it again but with this
/lp group default permissions set essentials.kit true and /lp group default permissions set essentials.kit.* true
Both of those still didn't work. I have the latest version of LP and essentiallX

lilac dewBOT
#

https://github.com/lucko/LuckPerms/wiki/Verbose

Try using verbose to find what nodes are being denied you, super easy and tells you exactly what you need!

I did verbose for myself and noticed something strange. Even though I did
/lp group &l&4owner permission set essentials.* true
I cannot do /kit and verbose tells me that essentials.kit = false.
Owner inherits default and it still tells me that I cannot use /kit even when op'ed. As far as I know LP is the only plugin on my s...

#

I believe this is a feature in the editor (I don't use the editor), but it could be nice to search by context in game.

Example: View all permissions within a server=name
/lp context "server=name" permission info

Example: View all of a group/user's permissions within a server/world
/lp user/group permission info "server/world=name"

I think this would be a very handy feature, especially when preparing for a /lp bulkupdate where you are changing a certain context. The results could b...

lilac dewBOT
#

Retrieving avatars by username is deprecated, due to a) the Mojang ratelimits, and b) the fact that UUIDs are the recommended way to refer to specific accounts.

Offline mode players do not have real skins - that skin you posted is not in fact the skin off the offline player buty935, it is the skin of the real online mode premium player in question - therefore it would not make sense to display skins for them.

It is possible to fork & self host the editor if you wish to change this beh...

#

I'd recommend checking the wiki of ServerSigns. They have a placeholder for getting the player's username: https://i.jay.network/C5PqMQ.png

From the looks of that wiki, it would be /svs add lp user <player> parent admin then svs will automatically replace <player> with, for example bryanrmelo if it was you who clicked it.

I would note however that this is out of scope of the LuckPerms project and definitely would be better answered by the makers of the ServerSigns plugin.

#

I am trying to find the root cause for extreme lag spikes when executing the Residence subcommand to create a subzone.
After sampling 5 executions of subzone creation (each taking about 4 seconds in which the server main loop gets frozen), I get the following info from VisualVM:

image

Any other plugin permissions works as expected, permission calculation never lags.

Any idea what...

lilac dewBOT
#

As mentioned by @codingJWilliams are username-lookups deprecated and most APIs to retrieve a players avatar/skin have removed such a support (with some exceptions).

The fact that your server is in cracked (offline) mode comes with such disadvantages, as the server itself wouldn't lookup the skin of a player either. You can simply check your tab list to see this effect in action.
On offline servers do tab lists not show the face of a player, while they do on online mode servers.

Your su...

lilac dewBOT
lilac dewBOT
#

I am making a PHP script, in which I query the primary group that a specified user has, to do some stuff.
The problem here, is that said user has the default group in my SQL Database, and in the server shows me that he has the vip rank.

/lp user info:
image
(VIP Rank is 'magnate')

SQL Query:
![image](https://user-images.githubusercontent.com/29718791/79271021-fd94e380-7e53-11ea-8...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hi, what I'm trying to do is have a player enter a portal (Advanced Portal) and when they enter that portal they'll be assigned a LuckPerms group. However I can't figure out a way to assign this based on anything but their username, which I'd have to do manually.

Is there a way to have LuckPerms assign this automatically? I tried using @p to mimic command blocks but had no success there. Ideally I'd like to be able to tie LuckPerms groups to the Towny nation a player belongs to, but I've n...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

i am trying to allow users who have just joined the server to be able to do basic things, /kits , use jumpads and teleport, I am able to do all of this in OP and when i create a permission in luckperms and deop myself it does not let do the command that i just allowed users to do. For example i want my jumpads to work so in lucky perms in the default group i have put the code
jumppads.use and set it to true, then when i join the server i am unable to use the jumpads. I am wondering if it c...

#
  1. The plugin is called LuckPerms 😉
  2. What exactly is powerrank? If it is a permission plugin, then it might interfere with LuckPerms and cause unwanted side-effects.
  3. How did you give the permissions? And did you double-check that it is the right permission?
    You can use Verbose to find the right perms: https://github.com/lucko/LuckPerms/wiki/Verbose
  4. EssentialsProtect, EssentialsGeoIP and EssentialsXMPP are pretty much useless (especially XMPP which nobody uses) so you should rem...
lilac dewBOT
#

Hi Luck,

My name is Ben, and I work with Sparked Host LLC, and we would be interested in discussing a partnership with you!

If you are interested, I have sent you a friend request via Discord (Ben G#0001) and we can start talking.

Kind Regards,
Ben G.
Sparked Host LLC Marketing Team

lilac dewBOT
lilac dewBOT
#
  1. The plugin is called LuckPerms 😉
  2. What exactly is powerrank? If it is a permission plugin, then it might interfere with LuckPerms and cause unwanted side-effects.
  3. How did you give the permissions? And did you double-check that it is the right permission?
    You can use Verbose to find the right perms: https://github.com/lucko/LuckPerms/wiki/Verbose
  4. EssentialsProtect, EssentialsGeoIP and EssentialsXMPP are pretty much useless (especially XMPP which nobody uses) so you ...
#

Either you aren't using the correct permission or there is something else wrong with the plugin.

Verbose mode will likely tell you the correct permission that's being checked.

Thanks again for the quick reply, i am going to get in touch with the plugin developer as it is definitely just that plugin that seems to be failing. I will keep you updated with how it goes. Thanks

lilac dewBOT
#

Hi,

I'm trying to get the permissions of a UUID that is currently offline. I wrote the following code but it always returns false. Can you please advise whether I'm doing something wrong with the code? or whether it is a genuine bug

    public CompletableFuture hasPermission(String permission) {
        return Main.getLuckPermsAPI().getUserManager().loadUser(uuid)
                .thenApplyAsync(user -> {
                    ContextManager contextManager = Main.getLuckPermsA...
lilac dewBOT
#

I'm currently working on an automated installer script for the web editor.
It currently installs the webeditor and bytebin. Designed for Debian based systems (expects apt-get for missing packages. Should however work on different systems if have all required packages installed). Also you need nginx preinstalled.

If you fulfil these criteria, run this command as a user with sudo permissions or as root:
``git clone --branch installer_script https://github.com/BrainStone/LuckPermsWeb; L...

lilac dewBOT
lilac dewBOT
#

Just as an update, the reason this hasn't been merged is because it doesn't actually add full support for SportBukkit - as noted above more work is necessary.

Two ways this can move forward:

  1. More changes made to LuckPerms to support SportBukkit - would probably mean LuckPerms would need to depend on SportBukkit's API instead of Spigot and implement the extra methods it adds.

  2. SportBukkit removes the patches which modify the permissions API to make itself compatible with permissi...

lilac dewBOT
#

Hey. I currently have the spigot version of LuckPerms on a backend server and I have the bungee version on the bungee. I have went through how to set it up and made sure that it was working on the backend server before putting it into the bungee server. It works fine alone in the spigot/paper server, and it is even connected to the database correctly. However, when I put it into the bungee server, it shows a message in chat after connecting saying "Permissions data for your user was not loade...

lilac dewBOT
lilac dewBOT
#

Hello,
Why not adding a simple way to access prefix from offline players in the API ?
It may be useful in many case where, for example, when you want to show the prefix of a player talking via discord with an account linked to a minecraft server, or when you make a "disguise" plugin and want to copy even the prefix.

lilac dewBOT
#
[21:40:40] [Server thread/ERROR]: Cannot load plugins/LuckPerms/config.yml
org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
 in 'string', line 98, column 3:
      address: blmsk65e5b1c6qdpjukl-my ...
      ^
expected <block end>, but found BlockMappingStart
 in 'string', line 145, column 5:
        properties:
        ^
 
    at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) ~[patched_1.12.2.jar:git...
#

There's a syntax error either before or at exactly where the little arrow in the error is pointing. You've likely either removed the ' ' where it needed to be or added an extra character (or space) where it shouldn't be. Easiest fix is to regenerate the config and fill everything in again, being careful not to add or remove anything except for adding your info.

#
 address: "censored"
 
  # The name of the database to store LuckPerms data in.
  # - This must be created already. Don't worry about this setting if you're using MongoDB.
  database: "censored"
 
  # Credentials for the database.
  username: "censored"
  password: "censored"

This section is what looks like has been done wrong, remember not to add " " or remove ' ' anywhere.

#

you paste the config in there and go where it points you, then you try and remove whatever syntax error you've included. Without your full and actual config ( which you definitely shouldn't post here ) that's the best I can do. If you delete and regen the config, there will be no syntax errors, and if you just paste values where they belong, the thing'll work. It says there's a syntax error, so there's a syntax error, for sure.

#

When you paste your config into the box on the left side of that website, it will tell you where the syntax errors are and you can either try and fix them or try to redo the config without creating a syntax error, again. There's nothing more I can say because there's definitely a syntax error in the config, if that's the error you're getting.

lilac dewBOT
#

I was remaking a pixelmon server with the same mods i used before just updated. So my old server i was able to see any permission node (worldedit. whatever and something like pixelmon,* and pixelextras.* but now all i can see is nucleus, grief protection and luckperms nodes. i will add screenshot of both new and old for reference im just stumped why before i could look to see what nodes i wanted and now i have to manually type them so its like why use the web editor and just use the ingame co...

#

Hello,
I am extremely new with how plugins with minecraft servers work. I have a server that has multiple worlds (factions and creative plots), and I want to have certain permissions for each rank for each world. I use luckperms for my permissions and I am trying to put permissions for the plugin, plotsquared. I have a few ranks and I want to know how permissions is responsible on figuring out how many plots a certain rank can claim, and how I can set it up. (Example: member - 2 plots, VIP -...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

OK, now I have the same problem again. I just disabled SSL because there was a warning and I get the same syntax error. Now the site tells me the exact same thing that the console told me.

ERROR:

while parsing a block mapping
in "<unicode string>", line 98, column 3:
address: blmsk65e5b1c6qdpjukl-my ...
^
expected <block end>, but found '<block mapping start>'
in "<unicode string>", line 145, column 5:
properties:
^

lilac dewBOT
#

Hey, i just moved on to using luckperms bungeecord instead of having to manage perms on each server, so I have luckperms on my main proxy server and on each backend server, and also I have linked all of them to one MySQL database as to control all permissions from the bungeecord server, now I want to control every group, track and permission so should I just use /lpb or /lp? I'm a little confused on it, also if I want players to only have a certain group on a certain server and not on all ser...

#

Sorry misread the part about bungeecord.

The commands you use to control your database should not matter, /lp or /lpb will be fine to use if everything is connected to the same database.

For adding groups and permissions to users on certain servers then you need to read about Contexts on the wiki.

The web editor is the only method of editing this, unless you use the in-game commands.

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

Problem

Crash report in console when starting up and loading papi (PlaceholderAPI)
Details

Plugin version: Bungee-5.0.136

Software version: Latest Bungeecord (installed LuckPerms on)
Server Spigot: 1.8.8

Relevant plugins: Bungeecord: Luckperms
Spigot: Vault, Placeholderapi, essentials, essentialschat, advancedchattorch, tab
Console error
`[02:26:53 WARN]: [PlaceholderAPI] Task #4 for PlaceholderAPI v2.10.5 generated an exception
java.lang.NoClassDefFoundError: ne...

lilac dewBOT
#

Everything about parent seems a little buggy. I have a prefix on each group set, but when I set default as a parent so I can have the same permission + some, the default overwrites the prefix and I cannot seem to change it to operate more like a child, or to have the prefix have a higher weight then the default one. doing /lp user (username) meta info, I can see that default is taking full priority when I do not want that and there does not seem to be any way to change it. Please correct me i...

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

Got this in my console reported it here as the output wanted me to do :-)

....WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/home/container/plugins/LuckPerms-Bukkit-5.0.23.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.ReflectionClas...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hello,

I'm trying to set up LP with a locally hosted MySQL db.
Everything works -- the permissions data is correctly stored in the database.
I seem to be running into a persistent/spammy (and somewhat annoying) console warning. This warning is flashed ~10 consecutive times at boot, and every 10-20 minutes:

[18:15:51 WARN]: Mon Apr 20 18:15:51 UTC 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+...
lilac dewBOT
lilac dewBOT
#

[23:41:42] [Server thread/INFO] [FML]: Identifying ItemStackHolder annotations
[23:41:42] [Server thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[23:41:42] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[23:41:42] [Forge Version Check/INFO] [forge.VersionCheck]: [spongeforge] Starting version check at https://files.minecraftforge.net/maven/org/spongepowered/spongeforge/promotions_slim.json
[23:41:43] [Forge Version Check/INFO] [forge.VersionCheck]: [sponge...

#

[23:40:48] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[23:40:48] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[23:40:48] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[23:40:48] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2768 for Minecraft 1.12.2 loading
[23:40:48] [main/INFO] [FML]: Ja...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Hello. My Minecraft version is 1.15.2, I'm using Paper v184. I tried to delete all plugins except LuckPerms to make sure there is no conflicts. There's a group "admin", I tried to add prefix like so:

/lp group admin meta addprefix 100 "Admin"

I checked prefix:

/lp group admin meta info

It shows that prefix is there. Then I checked myself:

/lp user eXorcisTv parent info

It shows that I'm in the group "admin" and it's my only group. But there is no prefix in chat.

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

This could be me being a n00b, but here goes.
I want to give keepInventory to only certain players using the essentials plugin. If I apply the permissions to a user with "/lp user $username permission set essentials.keepinv true" it works fine. But it's a pain to manually apply this to all the users I want individually, so I created a group as follows:

/lp creategroup keepinv

/lp group keepinv permission set essentials.keepinv true

/lp user $username parent add group

And then smi...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I already know that LuckPerms uses HikariCP for connection pooling, and there is some ideal connection pool size. The default setting is 10, but I realised that this could not possibly be the ideal setting for servers of all sizes – servers with more players would undoubtedly require more connections. That said, it is possible that the default value of 10 encompasses a scope of optimisation such that even large deviations in player count would not be cause for a substantially different pool...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

You put the spigot/paper servers into offline mode and set ip-forwarding as well as bungee-online-mode to true in the bungee config. Additionally, you set bungeecord to true in the spigot.yml files of all non-bungee servers and if you're running paper also turn on the bungee settings in the paper.yml files.

lilac dewBOT
#

So first of all LP is continually conntected to the database. The existing connections are held open while the plugin runs (and reopened should one close).

Also a joining player needs more than one connection. In order to load data as fast as possible database queries are executed in parallel. Meaning that each query uses one of the connections in the pool. To load a player roughly 4 queries are needed and that data is cached in memory for performance.

Now LP saves the data to the datab...

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I don't think this really is a bug.
It mentions to be like a Cauldron for 1.12, but nothing more.
If it has an OP system based on Sponge does what you experience happen on purpose.
Other than that is there not much we can do here, as this is a fork/separate jar we barely heard from and it would most likely require an additional implementation of LP specifically for Magma. But seeing how this is currently only for 1.12 is this in my opinion not worth it...

#

In any case I don't even know LP could be doing wrong.
I already suggested you have a look at verbose and see if any permissions are being checked. If not, it's not LP. If there are, you need to give them.

In any case all this not covered by LP support (specific permissions are nothing we can help you with, as they are defined by the plugins (and mods) themselves). I'd suggest you reach out to Magma support.

#

Been a bit busy but I've started ironing out the issues you mentioned.

I've been discussing with others and we decided the integrated server support is too much hassle due to threading not liking the client and thereby crashing when you enter a different game. (so dedicated server only)

The permissions api side has been in the works, I'm going to try to get it into Player's view (one of the maintainers) so he can comment on it. Maybe a week at most if we have to go through a last call p...

lilac dewBOT
#

https://pastebin.com/raw/en7vQzNJ

[12:27:05 INFO]: [LP] Running LuckPerms v5.0.72 by Luck.
[12:27:05 INFO]: [LP] -  Platform: Bukkit
[12:27:05 INFO]: [LP] -  Server Brand: Paper
[12:27:05 INFO]: [LP] -  Server Version:
[12:27:05 INFO]: [LP] -  git-Paper-1595 (MC: 1.12.2) - 1.12.2-R0.1-SNAPSHOT
[12:27:05 INFO]: [LP] -  Storage:
[12:27:05 INFO]: [LP] -     Type: MariaDB
[12:27:05 INFO]: [LP] -     Ping: 0ms
[12:27:05 INFO]: [LP] -     Connected: true
[12:27:05 INFO]: [LP] [LP] ...
lilac dewBOT
lilac dewBOT
#

There is one space where it could use placeholder support, and that is in player-run commands for dates that use an unknown (pre-set) specific date. That way, you don't have to be checking and counting the seconds to apply another permission with the same end time. I do agree that the easiest way is to do the command through a plugin which parses and runs them, but even in that case the date to expiry placeholder needs to have an alternative with the spaces removed so LP can read the whole ...

lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I've been checking my LuckPerms logs and this is what i saw;

`[11:01:47] [pool-10-thread-1/INFO] [minecraft/DedicatedServer]: [LP] #35 (10h 55m 20s ago) (Console) [G] (default)
[11:01:47] [pool-10-thread-1/INFO] [minecraft/DedicatedServer]: [LP] > permission set * true
[11:01:47] [pool-10-thread-1/INFO] [minecraft/DedicatedServer]: [LP] #36 (10h 53m 52s ago) (11cab11) [G] (default)
[11:01:47] [pool-10-thread-1/INFO] [minecraft/DedicatedServer]: [LP] > webeditor remove * true
[11:01:47]...

lilac dewBOT
lilac dewBOT
#

I've a good feature request for this kind of situations where some people joins the server with a hackclient that can run commands as the console (It's exist, i've dealth with it)

Add a password protection for LP commands, we set a password in configs (if we want to) and everytime we want to use any kind of LP command no matter what permission we have (including the console itself) has to confirm the password before running a LP command. (I'd be even more awesome if we can add passwords in...

lilac dewBOT
#

Way out of scope for LP.
If your server is protected in the right way (i.e. disable OP, don't have remote access to console through like DiscordSRV's console channel, etc.) is this kind of issue non-existant.
Your problem comes from a poorly setup server and nothing more.
This feature would barely bring any benefit to any users other than yourself.

#

Way out of scope for LP.
If your server is protected in the right way (i.e. disable OP, don't have remote access to console through like DiscordSRV's console channel, etc.) is this kind of issue non-existant.
Your problem comes from a poorly setup server and nothing more.
This feature would barely bring any benefit to any users other than yourself.

I've disabled VPNs, I've blocked all the ports except 25565 (which my Bungee's default port) I'm running modded servers and the `O...

lilac dewBOT
#

Those clents would just abuse bad plugins/mods.
The fact that they gain access to the console tells me that a plugin/mod gives them acces and LP does NOT do that, so having this wouldn't help at all...

It's a modded server like i said, i can not just go and ban a random mod or whatever mod does it because it will literally kill the whole progress.

lilac dewBOT
#

Luckperm is a permissions plugin, not an anti cheat plugin. If you have players with hacked client luckperm isn’t the place to solve it.

Jesus dude, i'm not asking for a anticheat plugin this feature doesn't make anything anti cheat related, it just makes anyone who got access to anything somehow can't ruin anything, LP is some kind of a protection plugin so it can have this feature, it will not give harm to anyone, it's really useful feature literally for everyone. I'm asking this to be...

#

LP is not some kind of a protection plugin, it is a permission plugin to set permissions for players on a MC server. Luckperm does not deal will hacked client, its completely out of scope of luckperms. If hacked clients can gain console access, no matter the permissions is set by luckperm, console will always have all permissions and can run all commands regardless of luckperm's permission or setting as luckperm doesnt do not and will not do any console locking. Sure, having password protecti...

#

LP is some kind of a protection plugin so it can have this feature, it will not give harm to anyone, it's really useful feature literally for everyone.

Wrong. LP was and always will be a permission plugin. Protection is not LPs job, but the job of other plugins like WorldGuard or CoreProtect, so this feature wouldn't make much sense in that context.

Additionally is there no proof that it will be useful for anyone. People will wonder "Uhm, what is that", set it and then get confused as...

#

LP is some kind of a protection plugin so it can have this feature, it will not give harm to anyone, it's really useful feature literally for everyone.

Wrong. LP was and always will be a permission plugin. Protection is not LPs job, but the job of other plugins like WorldGuard or CoreProtect, so this feature wouldn't make much sense in that context.

Additionally is there no proof that it will be useful for anyone. People will wonder "Uhm, what is that", set it and then get c...

#

It's a waste of time to tell you this, because you won't listen, but here we go again:

99% of such issues can be boiled down to at least one of these errors:

  • You messed up the permission system, being it making groups inherit the wrong permissions or setting permissions to the wrong groups.
  • You didn't setup your server properly. This can be a server running in offline mode and not having a proper Auth system in place or a server on a network not being protected against joins from out...
#

It's a waste of time to tell you this, because you won't listen, but here we go again:

99% of such issues can be boiled down to at least one of these errors:

  • You messed up the permission system, being it making groups inherit the wrong permissions or setting permissions to the wrong groups.
  • You didn't setup your server properly. This can be a server running in offline mode and not having a proper Auth system in place or a server on a network not being protected against ...
#
  • My servers arent cracked, i'm blocking all connections from the the ports except the 25565 port, and i also block proxy, VPN connections.

Pretty sure that is not guaranteed to protect your server properly.
How should a server know what IP is from a VPN and which aren't? That's not a proper protection imo.

  • It'd be seen in the logs if they done such thing with a mod or plugin, a person can not have magically all the perms out of nowhere except they're using a hack client.

You ...

#

@Andre601 I feel that you’re being very naive and oblivious to the situation that is actually at hand. I’m not sure if you run any dedicated modded servers, but you clearly aren’t grasping the issue.

Regardless of whether or not this is to prevent hackers, LuckPerms is a permission plugin that controls access to every plugin in the game, whether it allows for changing game modes, the destruction of hub servers, or the ban of every player across a network.

Due to the importance and powe...

#

I am as respectful as you can be in this situation.

What you guys are asking for is nothing more than damage control and nothing else.

When a player suddenly has access to LP commands is my first question "How did he get access to them?" and not "How can I prevent him from running LP commands?"
The main issue here is not that the player can execute LP commands without any authentication in place, but that he somehow gained permission to access those commands in the first place.

As a...

lilac dewBOT
#

@Andre601 I agree that the root causes of issues should be fixed, however, you have the sole power to create a one size fits all solution to literally every one of these issues that allow exploiters to gain access to permissions, and it's just as simple as adding a new argument that cross-checks a configured value.
Even if this isn't within the scope of LuckPerms, it'd massively improve the plugin's usefulness and it would be a hugely attractive feature for those looking for permissions ...

lilac dewBOT
#

Currently the root of the issue is the hacked client. If the player with hacked client can have console access, I am very sure there are hacks that will allow things like command spy. This will result in the hack client able to see commands like /lp confirm <password> even if there is such a feature, allowing the hacked client to have access to the password.

Sure adding a password will always be more secured, its the same for every plugin. If a hacked client also used WorldGuard commands...

#

@benwoo1110 I think it's important to make the distinction that these hacked clients are doing when they "gain access to console". They are able to spawn in items with NBT data that run commands. Such as signs that run /lp permission set * commands, they aren't actually gaining access to console as they cannot see the output of the commands they run as console.

Commands run by console don't show in commandspy, so it wouldn't be a problem to have a password as long as the password isn't run...

lilac dewBOT
#

Draft API looks good - only two comments:

  • Why limit scope of permissions to Identifier - all other modding platforms accept String, I don't see the harm in supporting that too.

  • Can sometimes be useful to differentiate between a false result and just "not set". (see: LP's Tristate class)

I wrote a very basic permissions API for Velocity, might be a useful reference. As far as I know it's working well there.
https://github.com/VelocityPowered/Velocity/tree/master/api/src/m...

#

The bottom line is this: if you have an exploit that is letting malicious players execute whatever commands they like from the console - you have bigger problems than just permissions on your hands.

Hypothetically, I add the password system you suggest to LP - then they're just going to move onto other commands, /stop, /ban, /give, /kill, access to WorldEdit, etc etc, all of which are arguably able to cause more damage to a server than editing permissions.

I understand where you...

#

You kind of insult every developer by hiding the plugin name (and version) from others.
Some if not most devs do work on those plugins in their free time, which often also costs money for them (Hosting own CI servers, licenses and such stuff)
Not everyone donates to the dev to support them and this kind of exposure is the most they often get.
So hiding what plugin you use and who made really takes away the small expose some devs often have.

It also isn't that big of a deal. What would s...

#

Answer me one question then:
What about hiding a popular plugin's name makes your server more professional?

Your point makes no valid sense and I refer to my previous post: Hiding what plugin is used and who made it is basically insulting the dev.
LP isn't that small I know. But some plugins are and this kind of exposure is often the only method a developer has to share his plugin.

And wow.... a host.... You are aware that hosts not always give money or similar in return, right? The...

#

I'd quickly like to chime in and point out a few things.

  1. Keep in mind that Andre is not an authority of any kind of this plugin. And neither am I!
  2. I whoelheartedly agree that preventing hackers from using LP is at best just a band aid on a flesh wound. With console access in malicious hands you have bigger things to worry about. All this would do is slightly inconviniece the hackers.
  3. Instead of asking random plugins to implement security band aids you should instead focus your e...
lilac dewBOT
lilac dewBOT
#

LP is unable to reconnect to my MariaDB server if the connection gets lost, the only way is to restart the server instance.
The console starts spamming this exception (https://paste.lucko.me/WXyKKPvvkC) and players are unable to join the server.
If i try to connect to the remote database via bash it works as expected, so I'm sure this isn't an issue with my database software or firewall rules.

lilac dewBOT
#

The error tells me otherwise.
It clearly tells you that it couldn't establish a connection within 5000 milliseconds (5 seconds) which can mean one of these things

  • Your database cridentials are wrong (unlikely)
  • Your database timed out/went offline (likely)
  • The connection between LP and the database was cut (likely)

I myself can't see a cause on LPs end as this is an error from Hikari which LP uses for database connections.
I would make sure to double-check that your database does...

lilac dewBOT
lilac dewBOT
#

It really could be a good idea for the few that want to protect LP commands, however the users are only giving themselves all perms through LP in order to be able to do things in-game easily... They'll still be able to run any other plugin or mod command through console, including sudo commands on opped/players with permission, thereby even allowing in-game commands to still be done, though not as easily.

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

When I want to list the permissions of a user/group, I'm only getting the permissions they're inheriting directly, but not via inheritance of other groups.
E.g.

/lp user  permission info // Will list the permissions the user is directly inheriting

If I do:

/lp user  parent add 
/lp user  permission info // Will still list the permissions the user is directly inheriting,
but not the ones that are inherited from the group
lilac dewBOT
lilac dewBOT
#

But you should also try to prevent the downtime of the database...
When a database goes down unintended is that not good and should be prevented somehow.

Hello Captain Obvious nice to see you. But if you don’t mind let’s focus on the issue at hand instead of throwing around pointless advise that does nothing to solve the issue. I mean it’s like saying “Oh your car seat belt broke? Just don’t get into any accidents. Then you don’t need it in the first place.”

lilac dewBOT
lilac dewBOT
lilac dewBOT
#

Have also started having this issue happen using Paper 1.15.2 #208, LuckPerms 5.0.72 and Towny 0.96.1.6.
No errors from either plugin, "/lp sync" fixes it for a while but then it randomly starts again after a while for no reason.

Check your LP config. See if 'include-global-world:' is set to false. If it is, set it to true, restart your server, and see if that works.

lilac dewBOT
#

Have also started having this issue happen using Paper 1.15.2 #208, LuckPerms 5.0.72 and Towny 0.96.1.6.
No errors from either plugin, "/lp sync" fixes it for a while but then it randomly starts again after a while for no reason.

Check your LP config. See if 'include-global-world:' is set to false. If it is, set it to true, restart your server, and see if that works.

Was already set to true when the issue was happening

#

Have you tried updating your plugins? I know that's not the latest paper, I think they released build #213

At the time of my post that was the latest issue - the server is updated regularly, is now on the latest build (#214) and still has the same issue that is only fixed by using "/lp sync" which is only temporary and it starts again randomly after a while.

#

Typing /lp or any other non-LP command prefixed with a / in the console produces some java error output, but luckily no crash, the server keeps running.

Probably introduced by 642d14d003fc9295f4b7ecfb55a79348ab234a46 if I have to guess.

Output is as follows:

>/lp
[16:28:32] [Server thread/ERROR]: Could not pass event ServerCommandEvent to LuckPerms v5.0.139
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja...
lilac dewBOT
#

I saw that someone made an issue about WorldCalculator (#2119) before but that issue was closed like a month ago but it's still throwing warnings in the newest 5.0.139 version, at least it does for me. The problem is I didn't use to throw any warning before, but my console is filled with:

[LuckPerms] An exception was thrown by me.lucko.luckperms.bukkit.context.WorldCalculator whilst calculating the context of subject CraftPlayer{name=Thinkverse}
java.lang.NoSuchMethodError: net.lu...
lilac dewBOT
lilac dewBOT
lilac dewBOT
lilac dewBOT
#

I can see multiple issues here

  1. Not having a password is bad practice and should be avoided. Always set a password, so that you have some protection agains people accessing the database.
    • This is also the main cause of the issue, as it seems that the password can't be null/empty
  2. Don't use root. This user is only meant for you (the administrator) and shouldn't be used by plugins at all. Reason behind this is, that root can access all databases, so a malicious plugin could abus...
lilac dewBOT