Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript by Flooft/Fleft - use as you wish, edit as you wish.
- options:
- P: &7[&fWhitelist&7]&r
- command /wl [<text>] [<text>] [<text>]:
- permission: skript.op
- trigger:
- if arg-1 is "on":
- execute console command "/whitelist on"
- broadcast "{@P} Whitelist enabled!"
- if arg-1 is "off":
- execute console command "/whitelist off"
- broadcast "{@P} Whitelist disabled!"
- if arg-2 is "uhc":
- wait 5 seconds
- loop all players:
- execute console command "/spawn %loop-player%"
- heal the loop-player
- if arg-1 is "add":
- execute console command "/whitelist add %arg-2%"
- message "{@P} %arg-2% is whitelisted!"
- add arg-2 to {whitelisted::*}
- if arg-1 is "clear":
- loop {whitelisted::*}:
- remove loop-value from {whitelisted::*}
- execute console command "/whitelist remove %loop-value%"
- delete {whitelisted::*}
- broadcast "{@P} Whitelist cleared!"
- if arg-1 is "remove":
- execute console command "/whitelist remove %arg-2%"
- message "{@P} %arg-2% removed from whitelist!" to the command sender
- if arg-1 is "list":
- if {whitelisted::*} is set:
- message "{@P} %{whitelisted::*}%" to the command sender
- else:
- message "{@P} No players are whitelisted!" to the command sender
- if arg-1 is "all":
- loop all players:
- execute console command "/whitelist add %loop-player%"
- add loop-player to {whitelisted::*}
- execute console command "/whitelist on"
- broadcast "{@P} All players whitelisted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement