Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /warn [<offline player>] [<text>]:
- usage: /warn <player> [reason]
- permission: ssb.warn
- trigger:
- if arg-1 is not set:
- send "&7&l» &r&6Type /warn <player> [reason]"
- stop
- add 1 to {warns::%arg-1%}
- send "" to all players
- if arg-2 is set:
- send "&3&lSERVER &r&8» &b%arg-1% &7was &b&lWARNED &r&7by &b%player% &7for &b%arg-2% &7[WARN ##%{warns::%arg-1%}%]" to all players
- else:
- send "&3&lSERVER &r&8» &b%arg-1% &7was &b&lWARNED &r&7by &b%player% &7[WARN ##%{warns::%arg-1%}%]" to all players
- send "" to all players
- if {warns::%arg-1%} is equal to 3:
- execute console command "mute %arg-1% 1h"
- send "" to all players
- send "&3&lSERVER &r&8» &b%arg-1% &7was &b&lMUTED &7for &bhaving 3 warns &7[1 HOUR]" to all players
- send "" to all players
- command /warnset [<text>] [<integer>]:
- usage: /warnset <player> <warns>
- permission: ssb.warnset
- trigger:
- if arg-1 is not set:
- send "&7&l» &r&6Type /warnset <player> <warns>"
- stop
- if arg-2 is not set:
- send "&7&l» &r&6Type /warnset <player> <warns>"
- stop
- set {_player} to arg-1 parsed as a offline player
- if {_player} is not set:
- if arg-1 is not "*":
- send "&7&l» &r&6Could not find the specified player."
- stop
- else:
- set {_player} to "*"
- set {warns::%{_player}%} to arg-2
- if {_player} is "*":
- send "&7&l» &r&6You set everyone's warn count to &b%arg-2%&6."
- send "&7&l» &r&6Your warn count has been set to &b%arg-2%&6." to all players
- else:
- send "&7&l» &r&6You set &b%{_player}%&6's warn count to &b%arg-2%&6."
- send "&7&l» &r&6Your warn count has been set to &b%arg-2%&6." to {_player}
- command /warnget [<text>]:
- usage: /warnget <player>
- permission: ssb.warnget
- trigger:
- set {_player} to arg-1 parsed as a offline player
- if {_player} is not set:
- send "&7&l» &r&6Type /warnget <player>"
- stop
- if {warns::%arg-1%} is not set:
- send "&7&l» &r&6This player could not be found or doesn't have any warns."
- else:
- send "&7&l» &r&b%arg-1% &6has %{warns::%arg-1%}% warns."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement