Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {warn.%player%} = 0
- options:
- permission: &4Nie masz uprawnien by uzywac tej komendy!
- tag: &8[&cWarn&8]
- maxwarn: 20
- tempban: 30
- command /warn [<text>] [<player>] [<integer>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "{@tag} &7Warny: &c%{warn.%player%}%" to player
- if player has permission "warn.admin":
- if arg 1 is "list":
- if arg 2 is set:
- send "{@tag} &c%arg 2% &7ma: &c%{warn.%arg 2%}% &7warnow" to player
- else:
- send "{@tag} &7Podaj nick"
- stop
- if arg 1 is "add":
- if arg 2 is set:
- if arg 3 is set:
- add arg 3 to {warn.%arg 2%}
- broadcast "{@tag} &c%player% &7dal &c%arg 2% &c%arg 3% &7punktow ostrzezenia."
- log "%player% dal %arg 2% %arg 3% punktow ostrzezenia." to "warny.dane"
- else:
- send "{@tag} &7Podaj ilosc"
- stop
- else:
- send "{@tag} &7Podaj nick gracza"
- stop
- if arg 1 is "del":
- if arg 2 is set:
- if arg 3 is set:
- remove arg 3 from {warns.%arg 2%}
- send "{@tag} &7Odjeles &c%arg 3% &7punkt/ty/ow."
- else:
- send "{@tag} &7Podaj ilosc"
- stop
- else:
- send "{@tag} &7Podaj nick gracza"
- stop
- if arg 1 is "reset":
- if arg 2 is not set:
- set {warn.%player%} to 0
- send "{@tag} &7Zresetowales punkty" to player
- if arg 2 is set:
- set {warn.%arg 2%} to 0
- send "{@tag} &7Zresetowales &7punkty graczu &c%arg 2%" to player
- else:
- send "{@tag} &7Podaj nick gracza"
- stop
- if arg 1 is "help":
- send "&7----------------- {@tag} &7-----------------------"
- send "&c/warn &f- &7Pokazuje ilosc warnow"
- send "&c/warn list &f- &7Pokazuje ilosc warnow danego gracza"
- send "&c/warn del <ilosc> &f- &7usuwa warny"
- send "&c/warn reset <nick> &f- &7resetuje warny"
- send "&c/warn add <nick> <ilosc> &f- &7Daje punkty"
- send "&c/warn chat add <wulgaryzm> &f- &7Daje wulgaryzm"
- send "&c/warn chat list &f- &7Lista wulgaryzmow"
- send "&c/warn chat delete <wulgaryzm> &f- &7Usuwa wulgaryzm"
- send "&7----------------- {@tag} &7-----------------------"
- stop
- command /warn-chat [<text>] [<text>]:
- trigger:
- if arg 1 is "list":
- send "{@tag} &7Lista swow cenzurowanych na serwerze:"
- send "&a%{zablokowaneslowa::*}%"
- stop
- if arg 1 is "add":
- if arg 2 is set:
- add arg 2 to {zablokowaneslowa::*}
- send "{@tag} &7Dodano &f(%arg 2%&f)&7 do listy wylgaryzmow"
- stop
- else:
- send "{@tag} Podaj wulgaryzm"
- stop
- if arg 1 is "delete":
- if arg 2 is set:
- remove arg 2 from {zablokowaneslowa::*}
- send "{@tag} &7Usunieto &f(%arg 2%&f)&7 do listy wylgaryzmow"
- stop
- else:
- send "{@tag} Podaj wulgaryzm"
- stop
- else:
- send "&cUzyj: &7/warn chat &7<&cadd&7/&clist&7/&cdelete&7>"
- stop
- on chat:
- loop {zablokowaneslowa::*}:
- if message contains "%loop-value%":
- add 1 to {warn.%player%}
- cancel event
- send "{@tag} &4Na serwerze nie mozna przeklinac. Dostajesz 1 warna"
- stop
- on kick:
- add 1 to {warn.%player%}
- every 1 ticks:
- loop all players:
- if {warn.%loop-player%} is larger than {@maxwarn}:
- log "%loop-player% | Warny: %{warn.%loop-player%}%" to "warny"
- broadcast "&c%loop-player% &7Zebral {@maxwarn} warnow. Dostal bana na {@tempban} dni"
- execute console command "/tempban %loop-player% {@tempban}d"
- set {warn.%loop-player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment