Advertisement
fleft17

Untitled

Jun 29th, 2014
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #Skript by Flooft/Fleft - use as you wish, edit as you wish.
  2.  
  3. options:
  4.  
  5. P: &7[&fWhitelist&7]&r
  6.  
  7.  
  8.  
  9. command /wl [<text>] [<text>] [<text>]:
  10. permission: skript.op
  11. trigger:
  12. if arg-1 is "on":
  13. execute console command "/whitelist on"
  14. broadcast "{@P} Whitelist enabled!"
  15.  
  16. if arg-1 is "off":
  17. execute console command "/whitelist off"
  18. broadcast "{@P} Whitelist disabled!"
  19. if arg-2 is "uhc":
  20. wait 5 seconds
  21. loop all players:
  22. execute console command "/spawn %loop-player%"
  23. heal the loop-player
  24.  
  25. if arg-1 is "add":
  26. execute console command "/whitelist add %arg-2%"
  27. message "{@P} %arg-2% is whitelisted!"
  28. add arg-2 to {whitelisted::*}
  29.  
  30. if arg-1 is "clear":
  31. loop {whitelisted::*}:
  32. remove loop-value from {whitelisted::*}
  33. execute console command "/whitelist remove %loop-value%"
  34. delete {whitelisted::*}
  35. broadcast "{@P} Whitelist cleared!"
  36.  
  37. if arg-1 is "remove":
  38. execute console command "/whitelist remove %arg-2%"
  39. message "{@P} %arg-2% removed from whitelist!" to the command sender
  40.  
  41. if arg-1 is "list":
  42. if {whitelisted::*} is set:
  43. message "{@P} %{whitelisted::*}%" to the command sender
  44. else:
  45. message "{@P} No players are whitelisted!" to the command sender
  46.  
  47. if arg-1 is "all":
  48. loop all players:
  49. execute console command "/whitelist add %loop-player%"
  50. add loop-player to {whitelisted::*}
  51. execute console command "/whitelist on"
  52. broadcast "{@P} All players whitelisted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement