Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #Od ktorego poziomu mozna uzywac zlotego miecza?
- Zloty: 5
- #Od ktorego poziomu mozna uzywac kamiennego miecza?
- Kamienny: 10
- #Od ktorego poziomu mozna uzywac zelaznego miecza?
- Zelazny: 20
- #Od ktorego poziomu mozna uzywac diamentowego miecza?
- Diamentowy: 30
- #Skroty do komendy /lvl np. /poziom lub /level
- Skroty: poziom, level
- #Uprawnienie do komendy /lvl
- Uprawnienie: lvl.pokaz
- variables:
- #Poziom startowy
- {lvl.%player%} = 0
- on damage:
- if attacker is holding gold sword:
- if {lvl.%attacker%} is greater than or equal to {@Zloty}:
- stop
- else:
- cancel event
- send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Zloty} poziom&c!" to attacker
- if attacker is holding stone sword:
- if {lvl.%attacker%} is greater than or equal to {@Kamienny}:
- stop
- else:
- cancel event
- send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Kamienny} poziom&c!" to attacker
- if attacker is holding iron sword:
- if {lvl.%attacker%} is greater than or equal to {@Zelazny}:
- stop
- else:
- cancel event
- send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Zelazny} poziom&c!" to attacker
- if attacker is holding diamond sword:
- if {lvl.%attacker%} is greater than or equal to {@Diamentowy}:
- stop
- else:
- cancel event
- send "&cNiestety nie mozesz uzywac tego przedmiotu. Musisz najpierw osiagnac &e{@Diamentowy} poziom&c!" to attacker
- on death of player:
- send "&aGratulacje, zabiles %victim% i zdobyles 1 poziom!" to attacker
- add 1 to {lvl.%attacker%}
- send "&aAktualny poziom: &6%{lvl.%attacker%}%" to attacker
- command /lvl:
- permission: {@Uprawnienie}
- permission message: &cNie masz uprawnien!
- aliases: {@Skroty}
- usage: &6/lvl
- description: Pokazuje Twoj poziom
- trigger:
- send "&aTwoj poziom: &6%{lvl.%player%}%"
- send "&aMozesz uzywac przedmiotow:"
- send "&6Drewniany Miecz"
- if {lvl.%player%} is greater than or equal to {@Zloty}:
- send "&6Zloty Miecz"
- if {lvl.%player%} is greater than or equal to {@Kamienny}:
- send "&6Kamienny Miecz"
- if {lvl.%player%} is greater than or equal to {@Zelazny}:
- send "&6Zelazny Miecz"
- if {lvl.%player%} is greater than or equal to {@Diamentowy}:
- send "&6Diamentowy Miecz"
Advertisement
Add Comment
Please, Sign In to add comment