#support-1
1 messages ยท Page 314 of 1
Ok let me check please
The trick is about setting weights?
ahh I see
default would have 10 of weight and builder 20, then I change the config and then my user will have the builder group as primary?
Will red the wiki to learn more about it, thanks
That's exactly what will happen
How do you reload the LP config?
/lp reload. Though I'd recommend a restart
Right. It's that one
Hey, just wondering if anyone knows if there's a permission node for creating nether portals? (And what it'd be lol)
Hi, I am writing a plugin which requires the use of the luckperms api, on bukkit. I have used both examples for getting the api, but it always seems to be null. The code which I am currently can be found here https://pastebin.com/Wjt5Vk8U .
what're you making that in? doesn't look like java to me.... is that a build.gradle ?
scala, a language which runs on the jvm and can access 100% of java libraries etc pretty much
oh, huh. interesting
have you done it with other sponge plugins?
(or bukkit plugins)
yes, but those are through the bukkit plugin manager, doing Bukkit.getPluginManager.getPlugin("PluginName").asInstanceOf[PluginMain] . I have tried luckPermsApi = Bukkit.getPluginManager.getPlugin("LuckPerms").asInstanceOf[LPBukkitPlugin].getApiProvider but that is null also
sadly i dunno, never used scala before ยฏ_(ใ)_/ยฏ
its using exactly the same bukkit libs, so the java would be LuckPermsAPI = ((LPBukkitPlugin) Bukkit.getPluginManager.getPlugin("LuckPerms")).getAPIProvider ..
yeah, i don't use Bukkit myself (Forge and Sponge) so i couldn't help ya, personally all i know is that usually i load API's using Gradle
Strange. Should work
is it possibel to maybe look at a plugin example to see if im doing anything wrong or is it just the docs example?
Now xD @fiery moth
thanks
It's in the package hooks
cheers
/lp user <user> parent add <group> server=<server>
@lapis ibex
why it this happening https://gyazo.com/03eb26c2496b9817ce436900c2df184f they have the permissions https://gyazo.com/810359049e66264b0fbeee269aa2f64f
is there a way to parent a group to another group for easier permissions setup, so what i mean is we have 2 groups default and a group named trainer is there anyway to give the permissions from default to trainer by 1 node?
I mean i just need the node for example group.pokemontrainer
That exactly how it works @gusty birch
so i have to do /lp group name permission set group.groupname?
without being able to verify syntax atm it should be /lp group name parent add othergroupname
or also parent set instead of parent add
ok so in my case /lp group default parent add pokemontrainer?
but isn't the group you mention first the one that should receive a parent?
so if you want the group trainer to inherit default
/lp group trainer parent set default
oh lel ok :p
Anyone know how to add a suffix?
I did this /lp group default meta addsuffix 1 &6[Starter]
and it doesn't work..
What chat plugin, and have you installed vault?
@foggy quartz ^
Let me instasll vault, I think I have.
I just updated to the latest version of Luckperms! and I have a quick question about the arguemnt based command permissions
I want to be able to allow my amdins to add a player to the helper group, and also be allowed to remove them from the helper group
but I dont want them to be able to do anything else to them, or move them to any other group
they would use
lp user {username} parent add helper
lp user {username} parent remove helper
what permissions do I need to give my admins to do this and limit it?
Turn on verbose, run the commands yourself and see what permissions got checked
can do that while the plugins running live?
update config, reload etc
then do it?
im on the wiki atm
./lp verbose on
holy jesus that spam from all players ha
my god
maybe lets use the paste option ha
My Luckperms is still not working
I can't create prefix/suffix..
I can, it won't show up in chat
@GodsDead#4614 you can enable a filter
what chat plugin?
You need a chat plugin such as essentialsXchat, bungeechat, herchat, uchat etc
luckperms doesn't modify chat itself
depends what functions you need. EssentialsXchat is the most simple
Bukkit or spigot
Doesn't matter. They're practically the same
But it must be EssentialsXChat, and not EssentialsChat
you will need EssentialsX on the server as well however.
@lapis ibex I did what you told me to and i found the permissions to be luckperms.user.parent.add
luckperms.user.parent.remove
But that would enable full access to moving to any group
You need to enable taht feature in the config
is there a copy of the config on the git? so I know where its got to go
it wasnt populated in my congig
config
in the update
check whether luckperms.user.parent.add.helper and luckperms.user.parent.remove.helper work. I haven't used it myself just yet, so I'm interested to see how it works.
This is where I got those two from: https://github.com/lucko/LuckPerms/wiki/Argument-based-command-permissions#checks-when-a-player-makes-changes-with-a-set-of-specific-arguments
ha thats the page I had open but I just didnt get it
thanks merjilin
ill give that a try
i al;so was able to extract the config from the jar
good idea
I do hope it is that simple ๐
ill give it a try!
Going ot update my config first!
From what I can tell, they will also need the other permissions, but those two permissions will restrict what they can change. The series at which they're checked indicates that to me at least
Still not fucking work.
Have you restarted the server after installing the plugin?
yes
Also i think you need essentialsX too for essentialsXChat to work
I have essentialsX
Mind to show us your plugin list?
Ok
oh jeysus
Ok. Was just checking to see if there was another perms plugin
any ideas..
Remove anything with the word chat in it, and reinstall EssentialsXChat
Time for some debugging
Nope no permission:
- luckperms.user.parent.add:
value: true - luckperms.user.parent.remove:
value: true - luckperms.user.parent.add.helper:
value: true - luckperms.user.parent.remove.helper:
value: true
what does verbose say?
no? Just go ingame, use /lp verbose record luckperms, do the command you want, then do lp verbose paste. Give us the link as well
Aha amybe its luckperms.user.parent.add.modify.others
Derp!
it also popped up with luckperms.user.parent.add.usecontext.global
I dont understand what that usecontext.glboal is doing
I'm not sure if you have to do that. But like I said, I haven't tested the argument based permissions before
Ill try without
it also calls luckperms.user.parent.remove.modify.others twice
maybe thats a bug
shouldnt do it twice
oh actualyl a ton of perms are called a ton of times
That shouldn't matter
I assume thats inheritace of opther groups
Nope, still you do not have permission
maybe they also need luckperms.modify.user.others
Maybe
All checked perms should be listed
And their result
UNDEFINED usually means false
thats not posted in verbose
but it could be because im OP
luckperms.user.parent.add.usecontext.global
Maybe
It's the context applied at the end
Now it makes sense
So they'll need that perm too
ok so my rank isnt called helper, I named it that in here so it made more sence to people in here
GodsDead luckperms.user.parent.remove true
GodsDead luckperms.user.parent.remove.modify.others undefined
GodsDead luckperms.user.parent.remove.modify.others undefined
GodsDead luckperms.user.parent.remove.usecontext.global undefined
GodsDead luckperms.user.parent.remove.usecontext.global undefined
GodsDead luckperms.user.parent.remove.craftsman true
its craftsman
I guess Ill try adding luckperms.user.parent.remove.usecontext.global aswell..
The undefined should be true too I guess
I am a bit confused on how to use LuckPerms on BungeeCord
Do I have to put the Bungeecord build in the plugins folder of the bungeecord server and the bukkit build in every spigot server I am running?
I think that did it, Im now able to set that specific group
but that usercontext.glboal makes no sence being there
@south snow exactly
It does @GodsDead#4614 you can add a context after most commands. And none means global
Ok thanks now I know what I did wrong
Ok I have the database setup just used the wrong jars on the spigot servers thank you
Alright
Keep in mind that for almost all intentions and purposes Spigot = Bukkit
Anything compatible with bukkit is compatible with spigot. But not the other way round xD
What does the context mean?
And if it's set to global does that open them up to do more things
The permission was required for the command to actually work
But isn't listed in the docs
Global is the default
That is ok
And probably what you want
As you probably want the rank to apply everywhere
hello =)
I have a question in bungeecord's luckperm's can we put prefix like "see the prefix of the server"
I use luckperms on every server
my chat plugin take the bungeecord prefix but I want server's prefix
thanks ๐
Unless the plugin specifically supports this, no
But you can also install LP on the bungee @static agate
I have lp everywhere in bungee too
Which chat plugin do you use?
How do you put server specific prefixes?
Because there is an additional step you can do to make that work on the bungee
I am not the developer of the plugin i don't know how he do that
Well he probably ran a command like /lp ... server=<server>
If that's the case he also needs to run /lp ... server=bungee world=<server>
You can tell him this
ok ๐ thanks
I have an other question
in console lp make a lot of spam like https://paste.md-5.net/ridifavaro.pl
can we remove some notification of lp ??
Eid Mubarak
Hey I have a question. How can I give Moderators access to add the group "Member" to players who are in the default group? I only want them to be able to add Member. Not any other groups.
luckperms.user.parent.add.member ?
so yes
How do I merge 3 LP databases into one?
@subtle stone why?
user data?
I mean
I'll tell u how
but gotta know what ur backends are rn
mysql, yaml, json
I think yaml database
./lp import and /lp export
@subtle stone do /lp export on all of your servers
COMPLETELY stop all 3 servers
change the backend to your new redis or mysql server
start all 3 servers
do /lp import on all 3 servers```
weird
when I installed LP, my Player#hasPermission(perm) stopped working
does anyone know why? before, everything was fine (when OP i had the perm, when not OP i didn't)
@foggy quartz My file is called luckperms-h2.mv.db
is that still how I would merge all three databases into one?
@subtle stone do the same
change the backend to your new redis or mysql server
I don't understand this part?
@foggy quartz
@subtle stone To combine the 3 dbs you must use another db in which all 3 can connect to, such as mysql or redis
to nigate a perm would I set it to be false or do -perm.node.whatever true?
ik false works
@foggy quartz Can I convert all my h2 files into Json files and then merge them and use json as storage?
not how that shit works fam @subtle stone
so once I pick h2 storage, I am stuck on h2?
there is no way to convert it to yml or json?
so if I convert all 3, I can't then put all 3 files into one folder and merge them in?
lower weight = more priority?
weight != priority
o.O
then how to I fix my prefixes
slower prefix weight the first to show sort of thing?
I exported all 3 servers files and then put all the "files" onto the one server and imported them all.. but that didn't seem to work despite all the files being properly placed in the yaml folder.
Any ideas?
https://gyazo.com/4f4b895dd987a50e089b20f0abe6eec4
all their files are here
but in-game they don't have the perms.
@foggy quartz
idk
@elfin egret Any idea?
...
wtf
I think he might have a minecraft server he wants people to join
Not a detective so iuhno
?
Who's going on the right track to get banned and why?
Some duded spammed messages to join his server
was a lot of spam too
Yup. Didn't want to clean up. So I banned
Same, I've seen a lot over the years of running servers
For some reason, the prefixes for my groups are all setup, yet they don't appear in chat
They were migrated from Pex
~Give me a moment
Or tell me: do you have vault, A chat plugin, possible confliction
Gimme a moment
Asking the owner
TitleAdvanced is the thing the message that appears on your screen when you join
No idea what ColouredTags is
coloured tags adds their name and prefix above their head
could you do /vault-info for us?
so chat is hooking into luckperms. Is your chat plugin EssentialsXChat?
That derp
I misread something
they do have essentialschat
Jin, I'm still calling you jin
EssentialsChat exists
Who said they didn't?๐
Heh xD
@noble niche could you also do /version
in /plugins, essentialsXchat returns as essentialschat, so it doesn't tell us much
Or was it /ihasbukkit
Confirming
It was not X...
well really, there is no reason to use Essentials over EssentialsX anyway. So I'd recommend an upgrade on all versions of mc
I don't think it does
nope ๐
sure
I exported all 3 servers files and then put all the "files" onto the one server and imported them all into yaml.. but that didn't seem to work despite all the files being properly placed in the yaml folder.
Any ideas?
but in-game they don't have the perms.
when I look in each file it has their uuid and ranks and perms but under "name" it shows this
"name": "null",
@subtle stone how did you export the permissions?
./lp export
And how did you import them?
Any errors?
no
Nope, none
I'll try to help you
thanks, I need it xD
I hope you still have the original data
Of course
Okay, cool
Hey @lapis ibex
Is there anyone who could help with the configs with luckperms please?
@lapis ibex he wants to combine all the data but dosent have a redis or mysql db
im sorry i forgot, when adding a permission that has multiple sub commands in spongeforge, do you do nucleus.tpa.* or nucleus.tpa.
the first ๐
thanks!
@lapis ibex Can we speak ?
Um sure
@elfin egret I have a very weird issue with the permissions. If yo have time I'd apprechiate if you could help
nvm
change this to parents-by-weight https://github.com/lucko/LuckPerms/wiki/Configuration#primary-group-calculation
BrainStone already told me to do that :/
ho
so i need to put higher priority for my group aventurier ?
have you set weights using /lp group <group> setweight <weight>
You need to set the weights using /lp group <group> meta setweight <weight>
*/lp group <group> setweight <weight>
Ok !
xD
The Weight and the priority it's not the same thing ?
Now i know why my work sucks
xD
I already have a server with 80 players at the best of the day
That's good!
but i need LuckPerm for my new server
biger, better, so... LuckPerm need to be with me
luckperms is the backbone of every server for me
if you ever feel like making a translation of the wiki, I'm sure luck will add it like he has Chinese ๐
Im not very good at translation, but i have an administrator who is really really god.
He make the translation of all my plugin in french and he sell translation of XenForo in french.
Hey im having some problems with permission settings. How do I add a perm to a specific group?
I tried /lp group <group> permission set <permission>
well that's the command. What is the name of the group?
do you have luckperms installed on bungeecord?
yes
Hello Community,
I have a problem. I have a default rank created, with a prefix created with priority 0, then I have a VIP rank created with a priority 1, and in my buycraft I give the ranges with add so my users have the default range and the VIP rank, I use ChatControl for the chat and in the chat the prefix of the default range appears.
And I wonder, is there any way to deny a prefix to a rank?
Thank you.
I'll help you in just a moment, Marc.
@sick horizon Are all luckperms instances connected to the same database?
so for example, is luckperms on hub and luckperms on bungee connected to the same database?@sick horizon
@storm geyser Okay, no problem
Yes
alright, try it using /lpb instead of /lp
What does that do?
/lpb isolates the server to bungeecord
@finite musk Alright, so what you're saying is that when a user is in VIP, the default prefix is shown instead of the VIP prefix?
It could actually be a preset prefix by chat control, so can you type in your server chat and send me the output of /lp user <your username> info? With your message in chat on the same picture.
Perfect works, thanks @storm geyser
np
yep. I need you to do the second think I asked you
Oo okay
However, if I were you, I'd grab another chat plugin and disable chat control's formatting, and just use it for moderation.
Not because the good thing about this one is that it can put more than 1 prefix, and more functions.
you can add more than 1 prefix with any chat plugin, but alright ๐
[15:16:25 INFO]: [LP] elitenew's Prefixes
[15:16:25 INFO]: [LP] -> 3 - "ELITE " (inherited from self)
[15:16:25 INFO]: [LP] -> 1 - "" (inherited from default)
[15:16:25 INFO]: [LP] elitenew's Suffixes
[15:16:25 INFO]: [LP] -> 3 - "" (inherited from self)
[15:16:25 INFO]: [LP] -> 1 - "" (inherited from default)
[15:16:25 INFO]: [LP] elitenew has no meta.
look
can you send me a screenshot of your chat?
alright, can you then screenshot /lp group default meta info
lp group default meta info
[15:23:22 INFO]: [LP] default's Prefixes
[15:23:22 INFO]: [LP] -> 1 - "" (inherited from self)
[15:23:22 INFO]: [LP] default's Suffixes
[15:23:22 INFO]: [LP] -> 1 - "" (inherited from self)
[15:23:22 INFO]: [LP] default has no meta.
so if elitenew is the name of your vip group, and you're in that group, it's working as intended. So what did you want to remove?
When I am with the "default" with /lp user Minemarc98 set default and elitenew with /lp user Minemarc98 add elitenew at the same time appears with this:
I need appears with http://prntscr.com/ggagpv
When i am with EliteNew with /lp user Minemarc98 set EliteNew appears correctly
but i need "with /lp user Minemarc98 set default and elitenew with /lp user Minemarc98 add elitenew"
do /lp user minemarc98 info for me
so you want the primary group to be default but also have elitenew as a group?
elitenew is not a default range, it's a VIP rank. Yes, default range is the primary range.
lp user xxxxxxxxxxx info
[15:31:01 INFO]: [LP] > User Info: xxxxxxxxxxx
[15:31:01 INFO]: [LP] - UUID: xxxxxxxxxxxxxxxxxxxxxxxxxxx
[15:31:01 INFO]: [LP] - Status: Offline
[15:31:01 INFO]: [LP] - Primary Group: default
[15:31:01 INFO]: [LP] - Counts:
[15:31:01 INFO]: [LP] - Permissions: 3
[15:31:01 INFO]: [LP] - Temporary Permissions: 0
[15:31:01 INFO]: [LP] - Prefixes: 0
[15:31:01 INFO]: [LP] - Suffixes: 0
[15:31:01 INFO]: [LP] - Meta: 0
[15:31:01 INFO]: [LP] - Parent Groups:
[15:31:01 INFO]: [LP] - > default
[15:31:01 INFO]: [LP] - > elitenew
[15:31:01 INFO]: [LP] - Cached Data:
[15:31:01 INFO]: [LP] - Has contextual data: false
[15:31:01 INFO]: [LP] - Current Contexts: None
[15:31:01 INFO]: [LP] - Current Prefix: None
[15:31:01 INFO]: [LP] - Current Suffix: None
chat should always display the prefix with the highest priority inherited from any group, so I think what you're after, luckperms can't do currently
Hey how do I add temporary permissions?
/lp ... permission settemp ... @sick horizon
@storm geyser
There is a plugin that spys on players msgs and i have no clue which plugin it is
is there anyway i can find out with luckperms?
Because i just want to turn it off
but i can't
Verbose
Yeah but socialspy is off
Okay,
The socialspy by this plugin is grey
like grey
and it says there username to another
Show me your plugin list
2048 mb
?
Don't you get a ton of lag?
Does GriefPrevention have a socialspy?
I swear i only got it after adding it
but i don't think it has one
No
๐
?
I don't know its on when i log on
it auto turns on
i don't even know which plugin it is
okay
Hello, i have a problem
when i put /lp user Name permission set permission.use Lobby1
the permission don't setted in this server
Came across LuckPerms the other day but had a few questions. I'm very eager to upgrade from PEX to LP!
-
I noticed LP supports a wide variety of database types. Even supports split databases so you could have groups in a yaml format! (Great for me coming from PEX flatfile). However with a very large userbase, is the default database of H2 the most optimized for optimal performance?
-
Is there any way to improve the LP import functionality from PEX? A lot of garbage from PEX grouping gets put in as a user/group permission when it isn't.
@finite musk Any errors in console?
@sturdy quarry H2 is great, as it indexes data, and is generally less prone to errors. (people love to screw with the YAML storage files) In terms of general performance, all i/o is done async, so it really doesn't matter that much which one you use. Even with YAML, data is split up into a file per user/group, so is also indexed in a sense.
As for import, no, there's not
internal PEX data shouldn't be included in the migration (I'm fairly sure it isn't), so anything you're seeing I'm guessing is probably unique to you and your setup
I generally prefer a yaml format for grouping because I make changes to permissions all the time. It is easier for me to open a file, make a change, upload, then reload in-game than it would be with an sql database since generally order of perms are important with negates and wildcards for some groups.
A lot of internal PEX data is being imported.
For example.
- weight.8
- prefix.8.&2
- meta.rank-ladder.Donor
- group.supporter
All listed under permissions:
that's intended
It is?
with the exception of meta.rank-ladder
although I suspect that's something else
luckperms stores metadata, prefixes, suffixes, and group inheritance data as permission nodes internally
Weight / group inheritence / ladder / prefix is all specified under the permission: definition?
see my last message
indeed it is
the yaml storage files are treated less like "configurations" and more as "storage files"
it is expected that most people will use the ingame commands or the web editor to make changes to their data
But aren't they consider a configuration since you are specifying certain things?
they're totally dynamic
and really only share the same layout
which is really just a name and permissions entry
Order of permissions is important in PEX when negating while inheriting a wild card to ensure a certain permission you don't want people to have isn't actually inherited.
right, and it isn't in LP
reason being, it makes things total hell when you decide to use SQL to store the data
and the order is important
This doesn't cause any problems in LP?
nope, permissions are applied based on a number of specific rules
for example, non wildcards > wildcards
and many more
Hmm, interesting.
So there is no definitive order for how it loads the permissions in the file? It bulk loads everything then figures out an order based on internal ruling?
correct
and actually, that's correct to the extent that if LP thinks two permission entries in the file are equal according to it's ordering system, the duplicate entry will be removed
What about with group inheritence? If it detects an overlap from a former group permission being inherited again, is it removed in the group file or just handled by the final bulk sorting?
i.e.
Member gets permission test.hi
Admin inherits from group Member
Admin gets permission wildcard '*', which grants test.bye
Admin has permission test.hi negated.
Is the permission still negated based on ladder group ordering? (If there is such a thing)
it gets a bit complicated
the short answer is that so long as:
- the user inherits admin, but not member
or
- admin has a higher weight than member
then the negated value is used.
group weights are used to work out inheritance order/priority
are you sure server: lobby1 is set in the LP config for that server?
That's a bit of a problem for me. I have some users who both inherit a builder rank and the member rank since they are granted member first, then builder is added on top. However builder still inherits member because some users had their group set to builder rather than added on top. Same applies with donor ranks.
With weight values, I have all weight values set the same with the exception of staff ranks so tab list sorts staff on top with everyone else in alphabetical order. I have group inherience order handled by ladder group / number.
Mmmm
the migration might have solved that for you @sturdy quarry
otherwise, it's just a case of setting new weight values for your groups
๐
Well the problem with that may be with someone earning a builder rank, then purchasing a donor rank. They would both inherit the member permissions since that is the base that everyone should have access to.
again, not an issue, so long as the weights are correct
As for setting new weight values, that isn't necessarily an option for me because tab list is sorted based on weight, then alphabetically. People far prefer everything be in alphabetical order with staff on top. With a weight configured on each group, high ranks would only show up on tab.
which plugin orders tab?
BungeeTabList
you can override the internal LP values
/lp group <group> setweight <value> will set the internal LP weight value
and /lp group <group> meta set weight <value> will set the public facing meta value
Er, sorry. I should specify, it hooks into the permission plugin to sort based on weight specified.
I know
There is no secondary manual list configured.
you can still override the internal value
Hmm, I see.
BungeeTabListPlus actually pulls the value from the user's metadata
and LP will only provide it's internal value there if one isn't already set
Another potential issue. User's primary group for displaying prefix / color in-game is based on the top-most group in their ordering with PEX. With the exception of people who are staff due to staff having a higher weight (higher weight = staff shows up irregardless of order), many users prefer to have one order over another.
I.e.
Player1
- Builder
- VIP
Player2
- VIP
- Builder
Player1 shows up as blue in-game, player2 shows up as green in-game. Both have the same permissions.
With LP, wouldn't order not matter and it forces what is displayed based on the interal weight count?
I also see a potential issue with importing users, it not using the top-most group already set as the primary group and adding the rest as secondary groups.
as for issue 1) the only real solution is to set an override prefix directly onto the user
/lp user <user> meta addprefix ....
which is messy I know
80,000 users with both VIP and Builder?
Overall.
right, so you're not going to have to adjust all of them
and as for the second issue
But I have many groups of various ladders. So that is a lot of users to adjust.
you can change how primary groups are determined
So setting it to stored would use their defined primary group defined prefix?
As long as it imports the top-most group correctly, that would alleviate the problem.
maybe I'm misunderstanding you
in reply to
I also see a potential issue with importing users, it not using the top-most group already set as the primary group and adding the rest as secondary groups.
you can set primary-group-calculation to parents-by-weight or all-parents-by-weight
and it'll work out their "primary" group dynamically
based upon group weightings
Many users prefer to have certain groups over others as they find achieving a certain builder rank to have more value for showing color / prefix. Hence their order is changed so that is defined as their primary group - since all weight values are the same to avoid forced override and to keep tab list in alphabetical order.
It's complicated. ๐ I'm a bit worried there's going to be permission inheritence / order problems.
yeah
you'll notice the LP files are ordered (kinda) alphabetically
but with wildcards at the top
I'm assuming I'll have to manually add my default in the default group file since it didn't import it as default.
Would any of the garbage data cause problems? All of the meta stuff that was imported but may not work properly in LP, such as login times, rank ladder, etc.
I also noticed start-up time takes quite a bit.
http://paste.ubuntu.com/25458286/
Any way to improve this? As this would I assume get slower as the final import completes and as more data is collected. This is with using yaml database - I would probably swap over to H2 with the exception of yaml groups after final testing. PEX loads dynamically as users connect, doesn't slow start-up initialization at all.
I'm already noticing inheritence problems with what was imported from PEX. I'm grouped an S-Admin which is suppose to inherit the admin group - that has the '*' wildcard. Then inherits other staff groups all the way down to the default member. However in-game, while I have the S-Admin prefix / color, I'm not able to use any commands.
easy
Again, ~80,000+ users. ๐
doesn't matter
/lp bulkupdate all delete permission "permission == meta.key.value"
easy as that
Except people with a meta login/logout time have a varying timestamp number.
Unless I can wildcard remove it? meta.key.*?
what does the permission look like
- meta.last-login-time.1461124853
- meta.last-logout-time.1461131018
/lp bulkupdate all delete permission "permission ~~ meta.last-login-time.%"
What about the no permission problem post-import? It set my primary group correctly and imported all the groups with defined inheritence, but I can't use any commands.
is PEX still installed?
No.
[07:48:56 INFO]: [LP] - Has contextual data: true
Luck i have a question
@sturdy quarry try /lp user mibby permission checkinherits *
More specific.
[07:48:56 INFO]: [LP] - Primary Group: Senior-Admin
[07:48:56 INFO]: [LP] - Counts:
[07:48:56 INFO]: [LP] - Permissions: 22
[07:48:56 INFO]: [LP] - Temporary Permissions: 0
[07:48:56 INFO]: [LP] - Prefixes: 0
[07:48:56 INFO]: [LP] - Suffixes: 0
[07:48:56 INFO]: [LP] - Meta: 2
[07:48:56 INFO]: [LP] - Parent Groups:
[07:48:56 INFO]: [LP] - > senior-admin
[07:48:56 INFO]: [LP] - Cached Data:
[07:48:56 INFO]: [LP] - Has contextual data: true
[07:48:56 INFO]: [LP] - Current Contexts: (world=world)
[07:48:56 INFO]: [LP] - Current Prefix: None
[07:48:56 INFO]: [LP] - Current Suffix: None
>```
When migrate PermissionEx to LuckPerms some users appears with rank in map Vestibulo and rank normal
They have two ranks.
the same rank but one in map vestibulo
and two in global servers
[07:50:39 INFO]: [LP] mibby has permission * set to true in context global. (inherited from admin)
ok great
which command are you trying to use?
@finite musk I don't really understand what you're saying
Except I can't use any commands in-game. Bukkit /help, essentials /gc.
Worldguard build permissions.
etc.
have a command to delete a rank X of all users they have this rank in X world?
are any of those permissions negated lower down the inheritance tree?
I have no global negate all anywhere, no.
ok, can you run /lp verbose record <your username, then try to run bukkit /help, essentials, or whatever the command was, then run /lp verbose paste and send the link it gives to you.
Unless
- bukkit.command.*:
value: false
- minecraft.command.*:
value: false
are negating all plugin-based commands rather than just the built-in bukkit command perms?
Essentials has its own help command.
ok, well try the verbose thing I explained above, and we'll see
@elfin egret have a command to delete a rank X of all users they have this rank in X world?
@finite musk It's all explained here: https://github.com/lucko/LuckPerms/wiki/Bulk-Editing
you have essentials.* set to false
Shouldn't. Perm doesn't exist anywhere in PEX.
run /lp user <you> permission checkinherits essentials.*
And * should override / grant all?
yeah, but more specific wildcards/permissions will override it
[07:57:35 INFO]: [LP] mibby has permission essentials.* set to undefined in context global. (inherited from self)
I do not understand much.
It does?
Since when?
Are you sure LP isn't just force negating every single plugin-inherited permission (plugin.yml) by default?
Would possibly explain why I also can't use other plugin commands or build with worldguard when I don't have it negate by default.
I assume you haven't touched the calculation settings in the config
running /lp info will confirm that
"Wildcard" should be listed as a calculator type
Er, the only thing I touched was include-global: false to use the server specific groups.
Enabling that seems to fix the issue.
oh right, that'll be why
setting that to false will ignore all permissions set globally
Groups aren't defined as server groups by default?
nope
@elfin egret With this? /lp bulkupdate user all group unset EliteNew global Vestibulo
to delete all users with the rank EliteNew in world Vestibulo
What about;
I also noticed start-up time takes quite a bit.
http://paste.ubuntu.com/25458286/
Any way to improve this? As this would I assume get slower as the final import completes and as more data is collected. This is with using yaml database - I would probably swap over to H2 with the exception of yaml groups after final testing. PEX loads dynamically as users connect, doesn't slow start-up initialization at all.
not sure why it's hanging for a few seconds there
it's not related to the data size, as that doesn't get loaded until later
Do you limit how many users load at a time?
users are only loaded when they're needed
As I noticed the import was going 100 users per set interval slowly.
Took an hour to import ~20k.
migration or import?
Migrate, sorry.
the migration will run as fast as it can, but is done on a single thread
it's hard to say what the cause is
Possible to debug the entire initialization to find out what is slowing down start-up?
I'll look into it
i'm gonna guess there's something there with split storage
which type are you primarily using?
I have all split storage set to yaml at the moment.
try setting it to just use yaml storage
But I would in the future set everything to h2 (if that is optimal) with the exception of groups yaml.
Nope, hung on loading storage provider. Too many files perhaps if it is loading everything to cache unintented?
[08:06:24 INFO]: [LP] Loading storage provider... [YAML]
[08:06:27 INFO]: [LP] Loading internal permission managers...
[08:06:27 INFO]: [LP] Performing initial data load...
[08:06:27 INFO]: [LP] Successfully enabled. (took 2730ms)
how many users do you have?
Right now on the test environment? 20k imported, then I stopped it.
But will end up with ~80k+.
Jeysus. I'd personally have the user data stored in mysql or mariabd then. It could make a difference with that many users.
Perhaps but PEX doesn't have a start-up loading problem.
@finite musk What backend for storage?
And post start-up log?
nothing is loaded until [08:06:27 INFO]: [LP] Performing initial data load...
and even then, only group data is loaded
Luck
@elfin egret With this? /lp bulkupdate user all group unset EliteNew global Vestibulo
to delete all users with the rank EliteNew in world Vestibulo
No, I'll explain in a sec
Well it seems to hang on the storage provider being loaded. Is it checking all files to remove duplicate perms maybe?
Ok
Moving the user folder so it doesn't load, it only takes 400ms loading the groups. (Which still seems high to me if just initializing the storage and reading groups.)
So definitely has something to do with loading users.
Can i just add this plugin to the proxy server or do i have to add it to all servers?
all servers. Then to sync data, connect all luckperms instances to the same database
like you would do in pex?
@elfin egrety?
I have not used pex in a very long time, but I expect so.
ok
I need help
with?
what is it you wanted to use bulk edit for? I read up, but it went out the other ear.
@elfin egret How about the time it takes to initialize on group loading?
Or is group specified under cleanupUsers task as well somewhere?
not sure what time you're referring to
~500ms to initialize the backend when just loading groups.
half a second?
Seems like a long time for what it is loading.
Compared to how PEX initializes anyways.
it's not just loading
there's a lot more to it than that
the log entries are slimmed down a bit
there's actually quite a lot of stuff happening in that period
Well I'm able to cut the initialize time in half just by moving the migrated group folder out from loading.
So it has something to do with groups being loaded / checked.
Perhaps not but it would grow over time as adjustments are made.
if you doubled the number of permissions in your group files, you could perhaps expect that time to double also
but I think that's unlikely
a slice of that time is waiting for the filesystem, for example
impossible to say without actually profiling it
The loader you mean? Or is the yaml file system the bottle neck with more than 1 file?
again, hard for me to say
I can make guesses, but without profiling it, I can't give you a definite answer
Well if you want to profile it, just let me know. I have a large enough database to test with.
29
Well technically 28 I guess since I need to change 'guest' into the 'default' file since it didn't import as default.
28 isn't many? I would consider that more than average in comparison to most servers.
For groups? What are they doing, only adding 1 permission per group?
That's ridiculous.
god knows
well actually I do know
it was a network
with a prison server consisting of 150 'levels'
plus the same system for some sky based gamemode
adds up pretty quickly
but they were using mysql iirc
either way, 500ms isn't a cause for concern
Bit silly for that type of functionality to be handled via perm groups. An actual plugin manager for those gamemodes would be better.
But I guess use whatever works.
Luck
@elfin egret With this? /lp bulkupdate user all group unset EliteNew global Vestibulo
to delete all users with the rank EliteNew in world Vestibulo
Hey, can anyone tell me where I find permission set for a specific user?
hey matt
u see screen ye
yes
k
start with hub
we might need to do this in a private chat
because of passwords ect...
its stupidly ridiculously complicated compared to pex.... the commands are so long and so complicated
/lp group <group> meta setprefix <priority> <prefix> <context>
compared to...
/pex group <group> prefix <prefix>
context is an optional argument
so, you're talking about one extra thing you need to specify
meta just divides up the sections
its just lots quicker to use pex
i mean its an amazing plugin and has loads of cool features, it connectected to the database first time
download & install that ^
ok
what is the lp editor command
./lp editor
ok
Need a lil help with something
[16:08:33 INFO]: [LuckPerms] [ERROR] Error occurred whilst initialising the database.
[16:08:33 INFO]: [LP] Loading messaging service... [BUNGEE]
[16:08:34 INFO]: [LP] Loading internal permission managers...
[16:08:34 INFO]: [LP] Performing initial data load...
[16:08:34 ERROR]: Error occurred while enabling LuckPerms v3.3.13 (Is it up to date?)
However 3.3.13 is the latest version?
@lapis ibex what is the ditor command
/lp group <group> editor or /lp user <user> editor
Which issue?
[16:08:33 INFO]: [LuckPerms] [ERROR] Error occurred whilst initialising the database.
[16:08:33 INFO]: [LP] Loading messaging service... [BUNGEE]
[16:08:34 INFO]: [LP] Loading internal permission managers...
[16:08:34 INFO]: [LP] Performing initial data load...
[16:08:34 ERROR]: Error occurred while enabling LuckPerms v3.3.13 (Is it up to date?)
Full log please
what is the permnode that makes a group inherret
/lp group <group> parent add group.<other_group>
when using default contexts is there a way to have it not apply?
What do you mean by that?
when I have a default context set on a server
if for one or two commands I don't want it to apply is there a way to do that?
@elfin egret Hello?
This is correct?
With this? /lp bulkupdate user all group unset EliteNew global Vestibulo
to delete all users with the rank EliteNew in world Vestibulo
Okay
Hi. Is a differance in include-global and apply-global-groups ?
How i set the server for a group, or what is ?
First read, then write
๐
how to check if an offline player has a permission? i tried with both vault and your api.
just a sec
so?
the fact is that that check will be very frequent
After the first check the player will remain cached
how long?
then you can modify it to only call api.getStorage().loadUser(uuid) if the user isn't already loaded
in other words, if api.getUser(uuid) is not null
but once you load a user, they won't be unloaded until api.cleanupUser(user) is ran
is the cached data removed on logout?
could you make it configurable?
an event is possible
?
ok
data gets unloaded on logout to avoid memory leaks
how to get a context that is into the server but outside the world?
@elfin egret you should load the user data when a request is made via vault api
atm there is no way to check a permission of an offline player via vault
the authors of vault didn't really anticipate permission plugins which would be storing data in mysql
thats one long ass github link @elfin egret
wew
last issue closed
seems to work ๐
_> Soo clean
Then go look at this xD https://github.com/rwtema/extrautilities/issues
That repo makes my eyes bleed
oh my
turns out, if you double the # of threads, you double the speed of the import
so how many threads is it across now?
lmao
it was 1 before ๐
Hi! Its realy to install luckyperms to bungee and sync it with all bukkit servers?
to setup luckperms across bungee and bukkit, you will need to on all servers (Including bungee), and then connected to the same database ๐
But without database? ๐
you can't have it synced then :/ You could always copy the data from one server to another, but it will never be synced. If you know what a symlink is, that may work
Okey. Thanks)
For the website editor, is it possible to add in multiple contexts at a time? Like, say I wanted some permissions to only work in three specific worlds. Can I add that, without having to add each thing each time and write everything multiple times?
Talking about that, would it be possible to add the possibility to modify the contexts, servers and worlds too?
And maybe the permission nodes aswell?
i have a small problem
I have a chat formater for default users
perm: nickname.format.default
And another chat formater for staff users
perm nickname.format.staff
The problem is, how can i make a context that the nickname.format.default will be available only when the player does not have the permission nickname.format.staff
@frank yacht You can negate permissions
i tried
- nickname.format.default:
value: false
on the staff group
but still seems no to work T.T
my player is in bofh groups
one is not parent of the other
i will make a few more tests here
to see if it is not me who is doing wrong
and come back later to ask again ^^
The heigher one wins
Need a little help i gave someone perms using /lp on the server so they can edit groups etc
how do i take away all rights from using anything /lp releated
If you remember the permission of gave them then use /lp group/user name permission unset perm
How do I change the color of the username of indivual players instead of whole groups?
well how do u do it for groups
then do it for players
wait
You can do /nick if you have essentials and use color codes
I dont use essentials and no plugins are compatible with the bungeecord version of this plugin(That I can find)
And groups adopt the color of the prefix
I fixed that by adding &r to the ends
what if i cant remember the perms i gave?
@devout swan you can run /lp user <user> permission info or /lp group <group> permission info
Is there any jenkins build for 3.3.13?
if i wanted to change the name of the default group a new player is placed into when they join the server.. i would edit rule 3 in the cfg?
the link in the wiki on primary groups doesn;t go anywhere anymore.
@plush pendant just ask
i has two servers connected with bungeecord
i want to can be "admin " in one server and "moderator" in another server, but admin and moderatos has the same permissions in all servers u understand me?
@hardy horizon https://github.com/lucko/LuckPerms/wiki/Default-Groups
Yes
what in need to change?
at the moment if i admin in one server im admin in all servers
Do you have set server names in the LP config?
yes, i read that brainstone, that's why i thought if i changed rule #3 it would place new uers in a group i created called peasants.
The name of the server, used for server specific permissions. Set to 'global' to disable.
server: factions
If users on this server should have their global permissions applied.
If set to false, only server specific permissions will apply for users on this server
include-global: true
if i change include global to false, admin not has the same permissions in all servers