Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=====================#
- # Punish: #
- #=====================#
- command /ban [<offlineplayer>] [<text>] [<timespan>]:
- permission: fatality.ban
- permission message: {@noperms-prefix}
- trigger:
- if arg 1 has permission "ban.bypass":
- if arg 2 is not set:
- message "{@prefix} &cSorry, but you can't ban &3&o%arg 1%&c for &a&o{ban.reason.%arg 1%}c&o&7!" to player
- message "{@prefix} &3&o%command executor%&c&o tried to ban you for &a&o{ban.reason.%arg 1%}c&o&7!" to arg 1
- stop
- if arg 1 has permission "ban.bypass":
- if arg 2 is set:
- message "{@prefix} &c&oSorry, but you can't ban &3&o%arg 1%&c for &a%arg 2%&c&o!" to player
- message "{@prefix} &3%command executor%&c tried to ban you for &3%arg 2%&c!" to arg 1
- stop
- if arg 1 is not set:
- if arg 2 is not set:
- if arg 3 is not set:
- message "&c/ban <player> <reason>" to player
- if arg 1 is set:
- if arg 2 is set:
- set {ban.msg.%arg-1%} to " &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----}%new line%&7&oYou have been &4&lPERMANENTLY BANNED by &c&o%command executor%&7&o!%new line%&7&oReason&e » &a&o%arg 2%&7&o!%new line% &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----"
- kick arg 1 due to " &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----}%new line%&7&oYou have been &4&lPERMANENTLY BANNED by &c&o%command executor%&7&o!%new line%&7&oReason&e » &a&o%arg 2%7&o!%new line% &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----"
- ban arg 1 due to " &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----}%new line%&7&oYou have been &4&lPERMANENTLY BANNED by &c&o%command executor%&7&o!%new line%&7&oReason&e » &a&o%arg 2%&7&o!%new line% &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----"
- broadcast " &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----"
- broadcast " "
- broadcast " &4&o%arg 1%&7&o has been &4&lPERMANENTLY BANNED&7&o by &c&o%player%&7&o!"
- broadcast " &7&oReason&e » &a&o%arg 2%&7&o!"
- broadcast " "
- broadcast " &7&m-----]&b&m-------&e » » &cFatality&fGames &e« « &b&m-------&7&m[-----"
- execute console command "/playsound mob.wither.death @a ~ ~ ~ 1 1 1"
- send player title "&e» » &9&o%arg 1% banned! &e« «" with subtitle "&c&oBan Successful!" for 5 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement