LuckPerms compatibility

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Frani

Member
Mar 29, 2017
1
0
0
26
Hey, could someone add LuckPerms stuff in an addon? Something like loop all players in luckperms group "donor", or primary luckperms group of %player%, etc... Would be really useful!
 
I posted this in the discord, but here:

code_language.skript:
function luckGroup(g: string) :: players:
  loop all players:
    if loop-player has permission "group.%{_g}%":
      add loop-player to {_h::*}
  return {_h::*}
something to note is that this only works for online players (which i assume is what you want anyway) and ops will be shown as being in every group. I've never even used luckperms, I just figured out you could do this by reading the docs on their Github (which is something I wish other people would learn to do)...
You can use it like this
code_language.skript:
loop luckGroup("donor"):
or
code_language.skript:
set {_g::*} to luckGroup("donor")
 
Last edited by a moderator: