Onenrico

Delay Ban (maybe) :v

Jul 5th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. options:
  2. delay: 3
  3. dqmsg: &8[&6DQ&8]&eIncoming DQ in [s] second
  4. dqban: &8[&6DQ&8]&e%arg 1% &6banned by &e%player% &edue to &6%arg 2%
  5. sound: true
  6. command /dq [<text>] [<text>]:
  7. trigger:
  8. if player has permission "essentials.ban":
  9. if arg 1 is set:
  10. set {_p} to arg 1 parsed as player
  11. if {_p} is not set:
  12. send "&cThat's player is not online"
  13. stop
  14. if arg 2 is set:
  15. set {_d} to "{@delay}" parsed as number
  16. if {_d} is not set:
  17. send "&cConfig Error ! Delay Must Be A Number"
  18. loop {_d} times:
  19. set {_msg} to "{@dqmsg}"
  20. set {_delay} to {_d} - loop-num + 1
  21. replace all "[s]" with "%{_delay}%" in {_msg}
  22. broadcast "%{_msg}%"
  23. if "{@sound}" is "true":
  24. loop all players:
  25. play "NOTE_PLING" only to loop-player with pitch 2 and volume 2
  26. wait 1 second
  27. if "{@sound}" is "true":
  28. loop all players:
  29. play "ORB_PICKUP" only to loop-player with pitch 2 and volume 2
  30. console command "/ban %arg 1% %arg 2%"
  31. broadcast "{@dqban}"
  32. stop
  33. send "&cUsage: /dq <player> <reason>"
  34. stop
  35. send "&cYou Don't have permission BITCH!"
Advertisement
Add Comment
Please, Sign In to add comment