Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {warns::%player%} = 0
- command /mute <player>:
- permission: staff.mute
- usage: /mute <player>
- trigger:
- if {Mute::%arg 1%} is "False":
- set {Mute::%arg 1%} to "True"
- broadcast "&e(Punish) &7%player% &fhas muted &7%arg 1%"
- command /unmute <player>:
- permission: staff.mute
- usage: /unmute <player>
- trigger:
- if {Mute::%arg 1%} is "True":
- set {Mute::%arg 1%} to "False"
- broadcast "&e(Punish) &7%player% &fhas unmuted &7%arg 1%"
- command /ban [<Offlineplayer>] [<Text>]:
- permission: staff.ban
- usage: /ban <Player> [<Reason>]
- trigger:
- if player has permission "staff.ban":
- if arg 1 is set:
- if arg 2 is set:
- set {banned.%arg 1%} to true
- set {ban.time.%arg 1%} to now
- set {ban.reason.%arg 1%} to argument-2
- set {ban.bannedby.%arg 1%} to player
- set {ban.expire.%arg 1%} to "Never"
- set {BanIP.%arg 1%} to "False"
- kick arg 1 due to "&e(Punish) &7Banned for &f%arg 2% &7by &f%player%"
- ban arg 1 due to "&8» &7Banned for &e%arg 2% &7by &e%player%"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7banned &f%arg 1% &7Reason: &f%arg 2%" to loop-player
- else:
- send "&8» &e/Ban <Player> <Reason>"
- else:
- send "&8» &e/Ban <Player> <Reason>"
- else:
- send "&8» &cNo permission"
- stop
- command /banip [<Offlineplayer>] [<Text>]:
- permission: staff.banip
- usage: /banip <Player> [<Reason>]
- trigger:
- if player has permission "staff.banip":
- if arg 1 is set:
- if arg 2 is set:
- set {banned.%arg 1%} to "true"
- set {ban.time.%arg 1%} to "now"
- set {ban.reason.%arg 1%} to argument-2
- set {ban.expire.%arg 1%} to "Never"
- set {ban.bannedby.%arg 1%} to player
- set {IP.%arg 1%} to ip of arg 1
- set {BanIP.%arg 1%} to "True"
- kick arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
- ban arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
- ban ip of arg 1 due to "&e(Punish) &7IP-Banned for &f%arg 2% &7by &f%player%"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7ip-banned &f%arg 1% &7Reason: &f%arg 2%" to loop-player
- else:
- send "&8» &e/Banip <Player> <Reason>"
- else:
- send "&8» &e/Banip <Player> <Reason>"
- else:
- send "&8» &cNo permission"
- stop
- command /tempban [<Offlineplayer>] [<Text>] [<Timespan>]:
- permission: staff.tempban
- usage: /tempban <Player> <Reason> <Timespan>
- trigger:
- if player has permission "staff.tempban":
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- set {banned.%arg 1%} to "true"
- set {ban.time.%arg 1%} to "now"
- set {ban.reason.%arg 1%} to argument-2
- set {ban.expire.%arg 1%} to "now"
- add arg-3 to {ban.expire.%arg 1%}
- set {_Unbantime} to difference between {ban.expire.%arg 1%} and now
- set {ban.bannedby.%arg 1%} to player
- kick arg 1 due to "&e(Punish) &7Temp-Banned for &f%arg 3% &7for &f%arg 2% &7by &e%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
- ban arg 1 due to "&e(Punish) &7Temp-Banned for &f%arg 3% &7for &f%arg 2% &7by &f%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7tempbanned &f%arg 1% &7for &f%arg 3% &7Reason: &f%arg 2%" to loop-player
- wait {_Unbantime}
- unban arg-1
- else:
- send "&8» &e/Tempban <Player> <Reason> <Timespan>"
- else:
- send "&8» &e/Tempban <Player> <Reason> <Timespan>"
- else:
- send "&8» &e/Tempban <Player> <Reason> <Timespan>"
- else:
- send "&8» &cNo permission"
- stop
- command /unban [<offlineplayer>]:
- permission: staff.unban
- usage: /unban <player>
- trigger:
- if player has permission "staff.unban":
- if arg 1 is set:
- if {banned.%arg 1%} is "true":
- unban arg-1
- unban ip of arg 1
- set {banned.%arg 1%} to "false"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7unbanned &f%arg 1%" to loop-player
- else:
- send "&8» &eThis player isn't banned"
- else:
- send "&8» &e/Unban <Player>"
- else:
- send "&8» &cNo permission"
- stop
- command /kick [<Offlineplayer>] [<Text>]:
- permission: staff.kick
- usage: /kick <Player> [<Reason>]
- trigger:
- if player has permission "staff.kick":
- if arg 1 is set:
- if arg 2 is set:
- kick arg 1 due to "&e(Punish) &f%arg 1% &7got Kicked for &f%arg 2% &7by &f%player%"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7kicked &f%arg 1% &7Reason: &f%arg 2%" to loop-player
- else:
- send "&8» &e/kick <Player> <Reason>"
- else:
- send "&8» &e/kick <Player> <Reason>"
- else:
- send "&8» &cNo permission"
- stop
- command /baninfo [<offlineplayer>]:
- permission: staff.baninfo
- usage: /baninfo <Player>
- trigger:
- if player has permission "staff.baninfo":
- if arg is set:
- if {banned.%arg 1%} is "true":
- send "&7"
- send "&8» &7Banned player&7: &e%arg 1%"
- send "&8» &7Banned by&7: &e%{ban.bannedby.%arg 1%}%"
- send "&8» &7Ban reason&7: &e%{ban.reason.%arg 1%}%"
- send "&8» &7Time of Ban (EST) &7: &e%{ban.time.%arg 1%}%"
- send "&8» &7IP Banned &7: &e%{BanIP.%arg 1%}%"
- send "&8» &7Expiration&7: &e%{ban.expire.%arg 1%}%"
- send "&7"
- else:
- send "&8» &eThis player is not banned"
- else:
- send "&8» &e/Baninfo <Player>"
- else:
- send "&8» &cNo Permission"
- stop
- command /unbanip [<offlineplayer>]:
- permission: staff.unbanip
- usage: /unbanip <Player>
- trigger:
- if arg 1 is not set:
- send "&8» &eYou must specify a player."
- stop
- if arg 1 is set:
- ip-unban arg 1
- broadcast "&e(Punish) &f%arg 1% &7has been IP-unbanned."
- stop
- command /ignore [<offlineplayer>]:
- permission: player.ignore
- usage: /ignore <Player>
- trigger:
- if arg 1 is not set:
- send "&8» &7You are ignoring: &e%{ignore::%uuid of player%::*}%"
- stop
- if arg 1 is set:
- if arg 1 is "%player%":
- send "&8» &7You cannot ignore yourself."
- stop
- else:
- if {ignore::%uuid of player%::*} contains arg 1:
- clear {ignore::%uuid of player%::%arg 1%}
- send "&8» &7You are no longer ignoring &e%arg 1%."
- stop
- else:
- set {ignore::%uuid of player%::%arg 1%} to arg 1
- send "&8» &7You are now ignoring &e%arg 1%."
- stop
- command /unwarn [<offlineplayer>]:
- permission: staff.warn
- trigger:
- if arg 1 is not set:
- send "&e(Warn) &7/Unwarn <player>"
- stop
- if {warns::%arg 1%} is equal to 0:
- send "&e(Warn) &7This player doesn't have any warns."
- stop
- if arg 1 is set:
- remove 1 from {warns::%arg 1%}
- broadcast "&e(Warn) &f%player% &7has unwarned &f%arg 1% &a(%{warns::%player%}%/3)"
- command /warn [<offlineplayer>] [<text>]:
- permission: staff.warn
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- add 1 to {warns::%arg 1%}
- broadcast "&e(Punish) &f%player% &7has warned &f%arg 1% &7for &f%arg 2% &a(%{warns::%arg 1%}%/3)"
- if arg 1 is set:
- if arg 2 is set:
- if {warns::%arg 1%} is equal to 3:
- set {warns::%arg 1%} to 0
- set {banned.%arg 1%} to "true"
- set {ban.time.%arg 1%} to "now"
- set {ban.reason.%arg 1%} to "Warning Threshold Met. (3/3)"
- set {ban.expire.%arg 1%} to "2 days"
- set {_Unbantime} to difference between {ban.expire.%arg 1%} and now
- set {ban.bannedby.%arg 1%} to player
- kick arg 1 due to "&e(Punish) &7Temp-Banned for &f%{ban.reason.%arg 1%}% &7for &f%arg 2% &7by &e%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
- ban arg 1 due to "&e(Punish) &7Temp-Banned for &f%{ban.reason.%arg 1%}% &7for &f%arg 2% &7by &f%player% &8- &7Will be unbanned &f%{ban.expire.%arg 1%}% EST"
- loop all players:
- loop-player has permission "staff.notify"
- send "&e(Punish) &f%player% &7tempbanned &f%arg 1% &7for &f%{ban.reason.%arg 1%}% &7Reason: &f%arg 2%" to loop-player
- wait {_Unbantime}
- unban arg-1
- command /resetwarns [<offlineplayer>]:
- trigger:
- set {warns::%arg 1%} to 0
Add Comment
Please, Sign In to add comment