Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ======================== #
- # Nazwa: PvPlevels
- # Autor: AramekPL | LVL na chacie by raxoooo
- # Wersja: 0.1
- # ======================== #
- # Część informacyjne.
- # Z nową wersją zostaną dodane:
- # - Wyświetlanie na chacie
- # - Wybieranie nagród
- # Część konfiguracyjna.
- options:
- # Opcja prefix jest wyświetlana wrzy pisaniu wiadomosci graczy.
- prefix: &4[&6PvPlevels&4]
- # Ile ma zabierać LVL'a za zginięcie.
- dlvl: 1
- # Ile ma dodawać dla zabójcy za zabicie?
- klvl: 1
- # Nagroda w postaci itemu:
- item: diamond
- iloscitemu: 1
- # Nagroda w postaci kasy:
- kasa: 20
- # Nagroda w postaci EXP:
- exp: 8
- # Nie tykać tego jak się nie znasz!
- on death:
- attacker is player
- add {@klvl} to {lvl.pvp.%attacker%}
- add 1 to {k.pvp.%attacker%}
- remove {@dlvl} {lvl.pvp.%victim%}
- add 1 to {d.pvp.%victim%}
- send "{@prefix} &bZabiłeś gracza %victim%!" to attacker
- send "{@prefix} &bW nagrode rowniez otrzymujesz {@iloscitemu} {@item}!" to attacker
- send "{@prefix} &bTwoje statystyki wzrosly!" to attacker
- send "{@prefix} &bTwoje statystyki obniżyły się!" to victim
- send "{@prefix} &bZabił ciebie gracz %attacker%" to victim
- add {@iloscitemu} {@item} to attacker
- execute console command "/eco give %attacker% {@kasa}"
- add {@exp} xp to the attacker
- command /pvp <text> [<text>] [<text>]:
- usage: &4/pvp [staty] [nick]
- trigger:
- if argument 1 is equal to "pomoc":
- send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
- send "&4◍&6/pvp staty &b= Sprawdza twoje statystyki."
- send "&4◍&6/pvp staty [NICK]&b = Sprawdza statystyki danego gracza."
- send "&4◍&6/pvp set [LVL]&b = Ustawia tobie dany LVL PvP."
- send "&4◍&6/pvp set [LVL] [NICK] &b= Ustawia denemu graczowi LVL PvP."
- send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- if argument 1 is equal to "staty":
- if argument 2 is set:
- send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
- send "&4◍ &bZabójstwa: &6%{k.pvp.%argument 2%}%"
- send "&4◍ &bZgony: &6 %{d.pvp.%argument 2%}%"
- send "&4◍ &bLvl: &6%{lvl.pvp.%argument 2%}%"
- send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- else:
- send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
- send "&4◍ &bZabójstwa: &6%{k.pvp.%player%}%"
- send "&4◍ &bZgony: &6 %{d.pvp.%player%}%"
- send "&4◍ &bLvl: &6%{lvl.pvp.%player%}%"
- send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
- if argument 1 is equal to "set":
- if player has permission "sc.pvp.set":
- if argument 3 is not set:
- send "&bUstawiłeś swój LVL PVP na %argument 2%"
- set {lvl.pvp.%player%} to argument 2
- else:
- send "&bUstawiles graczowi &c%argument 3% &blvl &c%argument 2%"
- set {lvl.pvp.%argument 3%} to argument 2
- else:
- send "&c[&4BLAD&c] &bNie masz uprawnien do tego!"
- on chat:
- set message to "&9[&cLvl:&6%{lvl.pvp.%player%}%&9] &f%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement