Created
April 22, 2020 23:49
-
-
Save A248/bb300d62d8c604ad1ebdf38b01b09772 to your computer and use it in GitHub Desktop.
A simple Skript script to make permissions faster using LuckPerms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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