Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ban <offlineplayer> <text>:
- permission: sk.ban
- trigger:
- ban arg 1 because of arg 2
- broadcast "%arg 1% &4wurde von %player% permanent gebannt! Grund: &e%arg 2%"
- log "%player% hat %arg 1% gebannt wegen %arg 2%." to "Ban.log"
- every minute:
- add 1 to {banntime}
- loop {tempbanned::*}:
- if {tempban.%loop-value%} is set:
- if {tempban.%loop-value%} is more than {banntime}-1:
- unban "%loop-value%"
- remove loop-value from {tempbanned::*}
- command /tempban <offlineplayer> <text> <number>:
- permission: sk.tempban
- trigger:
- broadcast "%arg 1% &4wurde von %player% für %arg 3% Stunde/n gebannt. Grund: &e%arg 2%"
- set {tempban.%arg-1%} to {banntime}+arg 3
- add arg 1 to {tempbanned::*}
- wait 1 tick
- ban arg 1 because of "%arg 2% &a(%arg 3% Stunde/n)&7"
- kick arg 1
- log "%player% hat %arg 1% für %arg 3% Stunde/n gebannt wegen %arg 2%" to "Ban.log"
- command /bancheck <offlineplayer>:
- permission: sk.ban
- trigger:
- if arg-1 is banned:
- send "%arg 1% ist für %{tempban.%arg-1%}-{banntime}% Stunde/n gebannt." to player
- else:
- send "Spieler ist nicht gebannt"
- command /unban <offlineplayer>:
- permission: sk.unban
- trigger:
- unban arg 1
- clear {tempban.%arg-1%}
- message "&7%arg 1% wurde entbannt!"
- log "%player% hat den Spieler %arg 1% entbannt" to "Unban.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement