Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # Wiadomosc jak nie ma sie uprawnien
- msg.noperm: &cBrak Uprawnien
- # Czas po jakim mozesz sie lognac
- czas: 5 seconds
- # Czas bana
- czas.bana: 1
- # Maksymalna liczba relogow. Po 3 relogach dostaje sie bana
- liczba.relogow: 3
- # tag Przy wiadomosciach
- tag: &1[&biPVPControl&1]&f
- # Aliasy do komendy
- aliases: cb, ipc, ip, ic, pc, icontrol, pcontrol, pvpc
- command /combatlog [<text>] [<text>] [<text>]:
- aliases: {@aliases}
- trigger:
- if arg 1 is not set:
- send "{@tag} &1Uzyj: &b/combatlog &f<reload/relogi/usun> "
- stop
- if arg 1 is "reload" or "r":
- if player doesn't have permission "combatlog.reload":
- send "{@msg.noperm}"
- stop
- execute player command "sk reload %script%"
- send "{@tag} &cPrzeladowano"
- if arg 1 is "usun":
- if player doesn't have permission "combatlog.usun":
- send "{@msg.noperm}"
- stop
- if arg 2 is not set:
- send "{@tag} &fPodaj nick"
- stop
- if arg 3 parsed as number is not set:
- send "{@tag} &fPodaj liczbe"
- stop
- remove arg 3 from {liczba.relog::%arg 2%}
- send "{@tag} Usunieto punkty"
- if arg 1 is "relogi":
- send "{@tag} Liczba relogow"
- send "&b----==== &f[&6%{liczba.relog::%name of player%}%&f] &b====----"
- on damage:
- victim is a player
- attacker is a player
- set {combatlog.%victim%} to now
- add {@czas} to {combatlog.%victim%}
- execute command "/playsound random.anvil_land %attacker%"
- set {combatlog.%attacker%} to now
- add {@czas} to {combatlog.%attacker%}
- execute command "/playsound random.anvil_land %attacker%"
- if {wyslane.%victim%} is false:
- execute console command "/fly %victim% off"
- send "{@tag} Jestes w walce &b%attacker%&f. Nie wylogowywuj sie" to victim
- play 100 of effect "fireworksSpark" with data 1 at victim
- play 100 of effect "witchMagic" with data 1 at victim
- play 250 of effect "flame" with data 1 at victim
- remove Invisibility from the victim
- set {wyslane.%victim%} to true
- if {wyslane.%attacker%} is false:
- execute console command "/fly %attacker% off"
- send "{@tag} Jestes w walce &b%victim%&f. Nie wylogowywuj sie" to attacker
- play 100 of effect "fireworksSpark" with data 1 at attacker
- play 100 of effect "witchMagic" with data 1 at attacker
- play 250 of effect "flame" with data 1 at attacker
- remove Invisibility from the attacker
- set {wyslane.%attacker%} to true
- on quit:
- if {combatlog.%name of player%} is set:
- kill the player
- add 1 to {liczba.relog::%name of player%}
- broadcast "{@tag} &b%player% &fwylogowal sie podczas walki"
- every 1 seconds:
- loop all players:
- if {combatlog.%loop-player%} is set:
- if {combatlog.%loop-player%} is smaller than now:
- delete {combatlog.%loop-player%}
- send "{@tag} Mozesz sie wylogowac" to loop-player
- set {wyslane.%loop-player%} to false
- play 500 of effect "reddust" with data 1 at loop-player
- execute command "/playsound mob.irongolem.death %loop-player%"
- if {liczba.relog::%loop-player%} is 2:
- broadcast "{@tag} &b%loop-player% &fwylogowal sie podczas walki"
- ban loop-player
- set {liczba.relog::%loop-player%} to 0
- on command:
- if {combatlog.%name of player%} is set:
- cancel event
- send "{@tag} Nie mozesz uzywac komend podczas walki!"
Advertisement
Add Comment
Please, Sign In to add comment