Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=================# mkWarn #=================#
- # - Wersja: 1.1
- # - Wymagane pluginy: Skript
- # - Autor: GoodGameBro
- #============================================#
- options:
- #Prefix przy wiadomosciach.
- tag: &8[&c&lmkWarn&8]
- #Po ilu warnach ma banować gracza. (domyślnie 8)
- maxwarn: 8
- #Powód bana po osiągnięciu limitu.
- powod: &cZostales zbanowany poniewaz osiagnoles limit warnow!
- variables:
- {warn.%player%} = 0
- command /warn [<player>] [<text>]:
- permission: mkWarn.*
- permission message: &cNie masz uprawnien do tej komendy!
- aliases: upomnienie
- trigger:
- if argument 1 is not set:
- send "&7*{@tag}&7* &cPoprawne uzycie to /warn <nick> <powod>!"
- if argument 1 is set:
- if argument 2 is not set:
- send "&7*{@tag}&7* &cPodaj powod warna!"
- if argument 1 is set:
- if argument 2 is set:
- broadcast "&7*{@tag}&7* &c%player% &7nadal warna graczowi &c%arg 1% &7za (%arg 2%)"
- add 1 to {warn.%arg 1%}
- command /clearwarn [<player>]:
- permission: mkWarn.*
- permission message: &cNie masz uprawnien do tej komendy!
- aliases: cwarn
- trigger:
- if argument 1 is not set:
- send "&7*{@tag}&7* &cPoprawne uzycie - /clearwarn <nick>"
- else:
- set {warn.%arg 1%} to 0
- send "&7*{@tag}&7* &cWyczysciles warny graczowi %arg 1%!"
- command /zglos [<text>] [<text>]:
- permission: mkWarn.gracz
- trigger:
- if arg 1 is not set:
- send "&7*{@tag}&7* &cWpisz /zglos <nick> <powod>!"
- if arg 1 is set:
- if arg 2 is not set:
- send "&7*{@tag}&7* &cPodaj powod!"
- else:
- if arg 2 is set:
- log "Gracz %player% slozyl skarge na %arg 1% Powod: %arg 2%" to "Skargi"
- send "&7*{@tag}&7* &cZglosiles gracza o nicku %arg 1%!"
- command /informacje [<player>]:
- trigger:
- if player has permission "mkWarn.*":
- if argument 1 is not set:
- send "&7*{@tag}&7* &cPoprawne uzycie - /informacje <nick>"
- else:
- send "&c&l Statystyki %arg 1%"
- send "&e IP - &7%ip of argument 1%"
- send "&e Warny - &7%{warn.%name of arg 1%}%"
- else:
- send "&4Nie masz uprawnien do tego"
- every 10 ticks:
- loop all players:
- if {warn.%loop-player%} is larger than {@maxwarn}:
- log "%loop-player% | Warny: %{warn.%loop-player%}%" to "warny"
- execute console command "/ban %loop-player% {@powod}"
- set {warn.%loop-player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment