BloodHead2001

Untitled

Dec 11th, 2014
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. every 1 minute:
  2. loop {waiting::*}:
  3. if {waiting::%loop-value%} is bigger than 0 days:
  4. subtract 1 from {waiting::%loop-value%}
  5. if {waiting::%loop-value%} is 0:
  6. set {ban.%loop-value%} to false
  7. on join:
  8. if {ban.%player%} is true:
  9. set join message to ""
  10. wait 3 tick
  11. kick player due to "Umarles! Masz bana na %{waiting::%player%}% Minut."
  12.  
  13. command /odbanuj [<offlineplayer>]:
  14. trigger:
  15. if player has permissions "ban.admin":
  16. if arg 1 is set:
  17. if {ban.%arg 1%} is false:
  18. send "&cGrasz nie umarl!"
  19. else:
  20. remove argument-offlineplayer from {lista::*}
  21. remove 1 from {bany}
  22. set {ban.%argument 1%} to false
  23. remove offlineplayer from {lista::*}
  24. else:
  25. send "&cPrzyklad: /unban <nick>"
  26. remove offlineplayer from {lista::*}
  27. on death of player:
  28. if player has permission "ban.true":
  29. add player to {waiting::*}
  30. set {ban.%player%} to true
  31. set {waiting::%player%} to 2
  32. kick player due to "Umarles! Masz bana na %{waiting::%player%}% Minut."
Advertisement
Add Comment
Please, Sign In to add comment