Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- delay: 3
- dqmsg: &8[&6DQ&8]&eIncoming DQ in [s] second
- dqban: &8[&6DQ&8]&e%arg 1% &6banned by &e%player% &edue to &6%arg 2%
- sound: true
- command /dq [<text>] [<text>]:
- trigger:
- if player has permission "essentials.ban":
- if arg 1 is set:
- set {_p} to arg 1 parsed as player
- if {_p} is not set:
- send "&cThat's player is not online"
- stop
- if arg 2 is set:
- set {_d} to "{@delay}" parsed as number
- if {_d} is not set:
- send "&cConfig Error ! Delay Must Be A Number"
- loop {_d} times:
- set {_msg} to "{@dqmsg}"
- set {_delay} to {_d} - loop-num + 1
- replace all "[s]" with "%{_delay}%" in {_msg}
- broadcast "%{_msg}%"
- if "{@sound}" is "true":
- loop all players:
- play "NOTE_PLING" only to loop-player with pitch 2 and volume 2
- wait 1 second
- if "{@sound}" is "true":
- loop all players:
- play "ORB_PICKUP" only to loop-player with pitch 2 and volume 2
- console command "/ban %arg 1% %arg 2%"
- broadcast "{@dqban}"
- stop
- send "&cUsage: /dq <player> <reason>"
- stop
- send "&cYou Don't have permission BITCH!"
Advertisement
Add Comment
Please, Sign In to add comment