Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /banlist:
- trigger:
- if player does not have permission "ban.use":
- send "&cYou are not permitted to run this command!"
- stop
- if "%{banlist::*}%" is "<none>":
- send "&7No players are banned!"
- stop
- send "&9Current players banned:&7 %{banlist::*}%"
- every 1 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}
- command /unban [<offlineplayer>] [<text>]:
- 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 "&c/unban (player) [-s]"
- stop
- if player is not set:
- set {_p} to "CONSOLE"
- else:
- set {_p} to player
- if arg-1 is not banned:
- send "&cThat 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 "ban.use":
- send "&7&o(SILENT) &3%{_p}% &7unbanned &3%arg-1%" to loop-player
- else:
- broadcast "&3%{_p}% &7unbanned &3%arg-1%"
- unban arg-1
- remove arg-1 from {banlist::*}
- command /tempban [<offlineplayer>] [<text>] [<timespan>]:
- trigger:
- if player does not have permission "tempban.use":
- send "&cYou are not permitted to run this command!"
- stop
- if arg-2 is not set:
- send "&c/tempban (player) [reason] [-s] (time)"
- stop
- if arg-1 has permission "tempban.use":
- send "&cThat player cannot be banned!"
- stop
- if player is not set:
- set {_p} to "CONSOLE"
- else:
- set {_p} to player
- if arg-1 is banned:
- send "&cThat player is already banned!"
- stop
- if arg-2 is not set:
- set {_r} to "N/A"
- else:
- set {_r} to arg-2
- 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 "tempban.use":
- send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
- else:
- broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]"
- ban arg-1 due to {_r}
- if arg-1 is online:
- kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}% &f &f &f &f &9Length: &7%arg-3%"
- add arg-1 to {banlist::*}
- set {%arg-1%.banned} to now
- set {%arg-1%.length} to arg-3
- command /ban [<offlineplayer>] [<text>]:
- trigger:
- if player does not have permission "ban.use":
- send "&cYou are not permitted to run this command!"
- stop
- if arg-1 is not set:
- send "&c/ban (player) [reason] [-s]"
- stop
- if arg-1 has permission "ban.use":
- send "&cThat player cannot be banned!"
- stop
- if player is not set:
- set {_p} to "CONSOLE"
- else:
- set {_p} to player
- if arg-1 is banned:
- send "&cThat player is already banned!"
- stop
- if arg-2 is not set:
- set {_r} to "N/A"
- else:
- set {_r} to arg-2
- 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 "ban.use":
- send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]" to loop-player
- else:
- broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]"
- ban arg-1 due to {_r}
- if arg-1 is online:
- kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}%"
- add arg-1 to {banlist::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement