Skip to content

Instantly share code, notes, and snippets.

@A248
Created April 22, 2020 23:49
Show Gist options
  • Save A248/bb300d62d8c604ad1ebdf38b01b09772 to your computer and use it in GitHub Desktop.
Save A248/bb300d62d8c604ad1ebdf38b01b09772 to your computer and use it in GitHub Desktop.
A simple Skript script to make permissions faster using LuckPerms
Command /user [<text>] [<text>] [<text>]:
Executable by: console
Trigger:
if arg 2 != "add":
if arg 2 != "remove":
send "&6Arim>> &cUsage: /user &e<player> <add|remove> <group>&c."
stop
execute console command "/lp user %arg 1% parent %arg 2% %arg 3%"
Command /group [<text>] [<text>] [<text>] [<text>]:
Executable by: console
Trigger:
if arg 2 = "add":
if arg 4 is set:
execute console command "/lp group %arg 1% permission set %arg 3% true world=%arg 4%"
else:
execute console command "/lp group %arg 1% permission set %arg 3% true"
else if arg 2 = "remove":
if arg 4 is set:
execute console command "/lp group %arg 1% permission unset %arg 3% world=%arg 4%"
else:
execute console command "/lp group %arg 1% permission unset %arg 3%"
set {_modif} to "unset"
else if arg 1 = "list":
execute console command "/lp listgroups"
else if arg 2 = "list":
if arg 3 is set:
execute console command "/lp group %arg 1% permission info %arg 3%"
else:
execute console command "/lp group %arg 1% permission info"
else if arg 2 = "create":
execute console command "/lp creategroup %arg 1%"
else if arg 2 = "delete":
execute console command "/lp deletegroup %arg 1%"
else if arg 2 = "parentadd":
execute console command "/lp group %arg 1% parent add %arg 3%"
else if arg 2 = "parentremove":
execute console command "/lp group %arg 1% parent remove %arg 3%"
else:
send "&6Arim>> &cUsage: /group &e<group> <add|remove|parentadd|parentremove> <permission> [world]&c."
stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment