Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 second:
- loop {banlist::*}:
- if {%loop-value%.banned} is set:
- if difference between now and {%loop-value%.banned} >= {%loop-value%.length}:
- unban loop-value
- remove loop-value from {banlist::*}
- clear {%loop-value%.banned}
- clear {%loop-value%.length}
- loop {mutelist::*}:
- if {%loop-value%.muted} is set:
- if difference between now and {%loop-value%.muted} >= {%loop-value%.mutelength}:
- unban loop-value
- clear {muted.%loop-value%}
- remove loop-value from {mutelist::*}
- clear {%loop-value%.muted}
- clear {%loop-value%.mutelength}
- command /rlp [<text>]:
- trigger:
- if arg-1 is not set:
- send "&7Specify a reason."
- else:
- if {lastban.%player's uuid%} is set:
- set {_r} to arg-1
- execute player command "%{lastbanway.%player's uuid%}% %{lastban.%player's uuid%}% %arg-1%"
- clear {lastban.%player's uuid%}
- clear {lastbanway.%player's uuid%}
- else:
- send "&7You have not punished a player yet."
- stop
- command /ban [<offlineplayer>] [<text>] [<timespan>]:
- trigger:
- set {_P} to player
- if player is not set:
- set {_P} to console
- if {_P} does not have permission "ban.use":
- send "&fUnknown command. Type /help for help."
- stop
- if arg-1 is not set:
- send "&7Missing player."
- stop
- if arg-2 is not set:
- send "&7Missing reson."
- stop
- if arg-1 has permission "ban.exempt":
- send "&b%arg-1%&7 cannot be banned"
- stop
- if arg-1 is banned:
- send "&b%arg-1%&7 is already banned!"
- stop
- if arg-2 is not set:
- send "&7Missing Reason!"
- else:
- set {_b} to arg-1
- set {_r} to arg-2
- set {_l} to "%arg-3%"
- set {_l} to "%capitalized {_l}%"
- if arg-3 = "FOREVER":
- replace all "FOREVER" " FOREVER" and "FOREVER " with "<FOREVER>" in arg-3
- if arg-3 is not set:
- set {_l} to "<FOREVER>"
- if {_r} contains "-s":
- replace all " -s" and "-s " with "" in {_r}
- set {_silent} to true
- if {_silent} is set:
- loop all players:
- if loop-player has permission "Staff+":
- if {joined.%arg-1's uuid%} is set:
- send "&c&lVS &7| &7&o(SILENT) &b%{_P}% &7banned &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
- kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for &7'&3%{_r}%&7'. Banned for [%{_l}%&7] &7(&8!&7)"
- ban arg-1 due to {_r}
- set {%arg-1's uuid%.banned} to now
- set {%arg-1's uuid%.length} to arg-3
- add arg-1 to {banlist::*}
- add 1 to {staffbans}
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unban"
- else:
- send "&c&lVS &7| &7&o(SILENT) &b%{_P}% &7banned &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unwarn %{_b}% Error>&4&lWARNING<reset>" to loop-player
- kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for &7'&3%{_r}%&7'. Banned for [%{_l}%&7] &7(&8!&7)"
- ban arg-1 due to {_r}
- set {%arg-1's uuid%.banned} to now
- set {%arg-1's uuid%.length} to arg-3
- add arg-1 to {banlist::*}
- add 1 to {staffbans}
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unban"
- else:
- loop all players:
- if loop-player has permission "staff+":
- if {joined.%arg-1's uuid%} is set:
- send "&c&lVS &7| &b%{_P}% &7banned &b%{_b}% &7for &7'&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
- else:
- send "&c&lVS &7| &b%{_P}% &7banned &b%{_b}% &7for &7'&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unban %{_b}% Error>&4&lWARNING<reset>" to loop-player
- send "" to arg-1
- send "&7(&8!&7) &7You have been banned by &b%{_P}% &7for '&b%{_r}%&7'. You will be banned for &7[%{_l}%&7] &7(&8!&7)" to arg-1
- send "" to arg-1
- apply slowness 1000 to arg-1 for 5 seconds
- apply blindness 1000 to arg-1 for 5 seconds
- wait 5 seconds
- ban arg-1 due to {_r}
- if arg-1 is online:
- broadcast "&7(&8!&7) &b%arg-1%&7 Has been removed from the game. &7(&8!&7)"
- kick arg-1 due to "&7(&8!&7) &7You have been banned by &b%{_P}%&7 for '&3%{_r}%&7'. banned for [%{_l}%&7] &7(&8!&7)"
- add arg-1 to {banlist::*}
- set {%arg-1's uuid%.banned} to now
- set {%arg-1's uuid%.length} to arg-3
- add 1 to {staffbans}
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unban"
- command /unban [<offlineplayer>] [<string>]:
- trigger:
- if player does not have permission "unban.use":
- send "&cYou are not permitted to run this command!"
- stop
- if arg-1 is not set:
- send "&7/unban (player) [reason/-s]"
- stop
- if arg-2 is not set:
- send "&7Specify a reason!"
- stop
- if player is not set:
- set {_p} to "CONSOLE"
- else:
- set {_p} to player
- if arg-1 is not banned:
- send "&7That player is not banned!"
- stop
- if arg-2 contains "-s":
- replace all " -s" and "-s " with "" in {_r}
- set {_silent} to true
- if {_silent} is set:
- loop all players:
- if loop-player has permission "staff+":
- send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7unbanned &b%arg-1%&7 for '&3%arg-2%&7'" to loop-player
- unban arg-1
- remove 1 from {staffbans}
- remove arg-1 from {banlist::*}
- clear {lastban.%player's uuid%}
- else:
- loop all players:
- if loop-player has permission "staff+":
- send "&c&lVS &7| &b%{_p}% &7unbanned &b%arg-1% &7for '&3%arg-2%&7'" to loop-player
- remove 1 from {staffbans}
- unban arg-1
- remove arg-1 from {banlist::*}
- command /mute [<offlineplayer>] [<text>] [<timespan>]:
- permission: mute.use
- permission message: &fUnknown command. Type /help for help.
- trigger:
- if arg-2 is not set:
- send "&7Specify A Reason"
- stop
- if arg-1 has permission "mute.use":
- send "&7That player cannot be muted!"
- stop
- set {_p} to player
- if player is not set:
- set {_p} to CONSOLE
- if {%arg-1's uuid%.muted} is set:
- send "&7That player is already muted!"
- stop
- if arg-2 is not set:
- cancel event
- send "&7Specify A Reason"
- else:
- set {_b} to arg-1
- set {_r} to arg-2
- if arg-3 is not set:
- set {_l} to "<FOREVER>"
- else:
- set {_l} to "%arg-3%"
- set {_l} to "%capitalized {_l}%"
- if {_r} contains "-s":
- replace all " -s" and "-s " with "" in {_r}
- set {_silent} to true
- if {_silent} is set:
- loop all players:
- if loop-player has permission "helper":
- if {joined.%[player's uuid%} is set:
- send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unmute"
- else:
- send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unmute %{_b}% Error>&4&lWARNING<reset>" to loop-player
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unmute"
- else:
- loop all players:
- if loop-player has permission "helper":
- if {joined.%player's uuid%} is set:
- send "&c&lVS &7| &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7]" to loop-player
- else:
- send "&c&lVS &7| &b%{_p}% &7muted &b%{_b}% &7for '&3%{_r}%&7' &7[%{_l}%&7] <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unmute %{_b}% Error>&4&lWARNING<reset>" to loop-player
- send "&7(&8!&7) &7You have been muted for '&3%{_l}%&7'. You will stay muted for [%{_l}%&7]. Your mute was issued by &b%{_p}%&7. &7(&8!&7)" to arg-1
- set {muted.%arg-1's uuid%} to true
- set {lastban.%player's uuid%} to {_b}
- add arg-1 to {mutelist::*}
- set {%arg-1's uuid%.muted} to now
- set {%arg-1's uuid%.mutelength} to arg-3
- set {%arg-1's uuid%.mutereason} to arg-2
- set {%arg-1's uuid%.mutedby} to {_p}
- set {lastbanway.%player's uuid%} to "/unmute"
- on chat:
- if {muted.%player's uuid%} = true:
- cancel event
- send "&7(&8!&7) &7You are currently muted for &3%{%player's uuid%.mutereason}%&7. You will stay muted for [%{%player%.mutelength}%&7]. Your mute was issued by &b%{%player%.mutedby}%&7. &7(&8!&7)" to player
- command /unmute [<offlineplayer>] [<text>]:
- permission: mute.use
- permission message: &fUnknown command. Type /help for help
- trigger:
- if arg-1 is not set:
- send "&7&n/mute (player) [-s]"
- stop
- if arg-2 is not set:
- send "&7Specify a reason to unmute &b%arg-1%&7."
- stop
- set {_p} to player
- if player is not set:
- set {_p} to CONSOLE
- if {%arg-1's uuid%.muted} is not set:
- send "&7That player is not muted!"
- stop
- if {_r} contains "-s":
- replace all " -s" and "-s " with "" in {_r}
- set {_silent} to true
- if {_silent} is set:
- loop all players:
- if loop-player has permission "helper":
- send "&c&lVS &7| &7&o(SILENT) &b%{_p}% &7unmuted &b%arg-1% &7for '%arg-2%'" to loop-player
- send "&7(&8!&7) &7You have been unmuted for '&3%arg-2%&7'. You were unmuted by &b%{_p}%&7. &7(&8!&7)" to arg-1
- else:
- loop all players:
- if loop-player has permission "helper":
- send "&c&lVS &7| &b%{_p}% &7unmuted &b%arg-1% &7for '&3%arg-2%&7'" to loop-player
- send "&7(&8!&7) &7You have been unmuted for '&3%arg-2%&7'. You were unmuted by &b%{_p}%&7. &7(&8!&7)" to arg-1
- clear {muted.%arg-1's uuid%}
- remove arg-1 from {mutelist::*}
- clear {%arg-1's uuid%.muted}
- clear {%arg-1's uuid%.mutelength}
- command /warn [<offlineplayer>] [<string>]:
- permission: helper
- permission message: &fUnknown command. Type /help for help.
- trigger:
- set {_p} to player
- if player is not set:
- set {_p} to "CONSOLE"
- else if arg-1 is not set:
- send "&7Missing player."
- else if arg-1 has permission "helper":
- send "&b%arg-1% &7Cannot be warned."
- else if {Warns.%player's uuid%} is 3:
- send "&c&lVS &b%arg-1% &7Already has 3 warns!"
- else:
- set {_b} to arg-1
- add 1 to {Warns.%arg-1's uuid%}
- set {lastban.%player's uuid%} to {_b}
- set {lastbanway.%player's uuid%} to "/unwarn"
- send "&7(&8!&7) %{_p}% &7Has warned you for &3%arg-2% &7(&8!&7)" to arg-1
- loop all players:
- if loop-player has permission "helper":
- if {joined.%player's uuid%} is set:
- send "&c&lVS &7| &b%{_p}% &7Warned &c%{_b}% &7for '&3%arg-2%&7'" to loop-player
- else:
- send "&c&lVS &7| &b%{_p}% &7Warned &c%{_b}% &7for '&3%arg-2%&7' <tooltip:&b%arg-1%&7 Has not joined before!><suggest command:/unwarn %{_b}% Error>&4&lWARNING<reset>" to loop-player
- command /unwarn [<offlineplayer>] [<string>]:
- permission: helper
- permission message: &fUnknown command. Type /help for help.
- trigger:
- set {_p} to player
- if player is not set:
- set {_p} to "CONSOLE"
- if arg-1 is not set:
- send "&7Missing player."
- else:
- if arg-2 is not set:
- send "&7Missing reason."
- else:
- if {Warns.%arg-1's uuid%} = 0:
- send "&c&lVS &b%arg-1% &7Has no warns!"
- else:
- loop all players:
- if loop-player has permission "helper":
- send "&c&lVS &7| &b%{_p}% &7Deducted 1 warn from &c%arg-1% &7for '&3%arg-2%&7'" to loop-player
- remove 1 from {Warns.%arg-1's uuid%}
- send "&7(&8!&7) &b%{_p}% &7Has deducted 1 warn from you for '&3%arg-2%&7' &7(&8!&7)" to arg-1
- on chat:
- if player does not have permission "helper":
- if {%player's uuid%.muted} is not set:
- if {%player's uuid%.Chatcooldown} is set:
- cancel event
- send "&7(&8!&7) &7You must wait &c3&7 seconds between talking! &7(&8!&7)"
- else:
- set {%player's uuid%.Chatcooldown} to true
- wait 3 seconds
- clear {%player's uuid%.Chatcooldown}
- command /clearc:
- trigger:
- clear {%player's uuid%.Chatcooldown}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement