BarunYYT

WoFF

Sep 22nd, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. command /wl [<text>] [<text>]:
  2. trigger:
  3. if player has permission "wl":
  4. if arg 1 is "on":
  5. if arg 2 is set:
  6. if {wl} is false:
  7. set {wl} to true
  8. set {powod.wl} to arg 2
  9. send "&4 Wlaczyles whitelist z powodu: &a %arg 2%"
  10. loop all players:
  11. if loop-players don't have permission "wl":
  12. kick loop-player due to "%arg 2%"
  13. else:
  14. send "&4Whitelist jest wlaczona"
  15.  
  16. if arg 2 is not set:
  17. if {wl} is false:
  18. set {wl} to true
  19. set {powod.wl} to "Przerwa techniczna"
  20. send "&4 Wlaczyles whitelist bez powodu"
  21. loop all players:
  22. if loop-players don't have permission "wl":
  23. kick loop-player due to "Przerwa techniczna"
  24. else:
  25. send "&4Whitelist jest wlaczona"
  26.  
  27.  
  28. if arg 1 is "off":
  29. if {wl} is true:
  30. set {wl} to false
  31. clear {powod.wl}
  32. send "&b Wylaczyles whitelist"
  33. else:
  34. send "&4whitelist jest wylaczona"
  35.  
  36.  
  37. on join:
  38. wait 5 tick
  39. if {wl} is true:
  40. if player don't have permission "wl":
  41. kick player due to "%{powod.wl}%"
Advertisement
Add Comment
Please, Sign In to add comment