Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &6Dzialki by MrxJoint
- item: diamond
- nazwa.przedmiotu: &5Super diament który daje dzialke
- odleglosc.cuba: 250
- setblock.type: stone
- spawn.dystans: 250
- teren: 50
- wysokosc: 250
- item.zapros.1: 32 diamond
- item.zapros.2: none
- item.zapros.3: none
- #===================Wiadomosci===========================#
- jestes.zbyt.blisko.innego.cuba: &7Jestes zbyt blisko innej dzialki! Minimalna odleglosc to 200 kratek
- tworzenie.cubba: &6Tworzenie zabezpieczen...
- zbyt.blisko.spawnu: &7Jestes zbyt blisko spawnu!
- Limit.dzialek: &7Limit dzialek zostal osiagniety!
- zapraszenie.wylaczone: &7Nie posiadasz zadnego terenu aby muc zapraszac!
- nie.jestes.zalozycielem.zadnego.terenu: &7Nie jestes zalozycielem zadnego terenu!
- nie.posiadasz: &7Nie posiadasz: &a{@item.zapros.1} &7lub &a{@item.zapros.2} &7lub &a{@item.zapros.3}&7!
- zostales.zaproszony: &7Zostales zaproszony go dzialki!
- zeby.dolaczyc.wpisz: &7Aby dolaczyc wpisz &a/dolacz [nazwa dzialki] &7.
- gracz.zostal.zaproszony: &7Gracz &a%arg% &7zostal zaproszony do twojej dzialki!
- prawidlowe.uzycie: &7Prawidlowe uzycie to: &a/zapros [nick gracza] &7!
- podaj.nazwe.dzialki: &7Podaj nazwe dzialki, aby dolaczyc do niej!
- jestes.jzu.czlonkiem: &7Jestes juz czlonkiem innej dzialki!
- jestes.juz.zalozycielem: &7Jestes zaozycielem innej dzialki!
- dolaczyles.do: &7Dolaczyles do dzialkii: &a%{dzialka.tag.%player%}%&7.
- nie.dostlaes.zaproszenia: &7Nie dostales zaproszenia od tej dzialki!
- wyszedles.z.terenu: &6Wyszedles z terenu dzialki: &2[&6%{region.%player%.last}%&2]
- wszedles.na.teren: &6Wkroczyles na teren dzialki: &2[&6%{_dzialka}%&2]
- nie.mozesz.niszczyc: &cNie mozesz nic niszczyc na tym terenie!
- nie.mozesz.budowac: &cNie mozesz nic budowac na tym terenie!
- posiadasz.juz.dzialke: &7Posiadasz juz dzialke!
- posiadasz.juz.dzialke.2: &7Jestes zalozycielem innej dzialki nie mozesz miec 2!
- nie.jestes.zaozycielem: &7Nie jestes zalozycielem dzialki!
- podaj.nazwe.gracza: &7Podaj Nick gracza, ktorego chcesz wyrzucic!
- command /daj:
- trigger:
- give 1 diamond of Unbreaking 10 named "&5Super diament który daje dzialke" to player
- on rightclick with {@item}:
- {m.%player%} is set:
- send "{@tag} {@posiadasz.juz.dzialke}"
- stop
- {l.%player%} is set:
- send "{@tag} {@posiadasz.juz.dzialke.2}"
- stop
- player is holding diamond of Unbreaking 10 named "{@nazwa.przedmiotu}"
- if distance between {spawn} and location of player is greater than {@spawn.dystans}+{@teren}/2:
- if {dzialka.%player%.limit.claim} is false:
- loop {lista.cuboidow::*}:
- {srodek.cuboida.%loop-value%} and location of player is smaller than {@odleglosc.cuba}
- Send "{@jestes.zbyt.blisko.innego.cuba}"
- Stop
- set {dzialka.tag.%player%} to "%name of player%"
- set {_nick} to player
- send "{@tag} {@tworzenie.cubba}"
- wait 1 second
- loop 100 times:
- send " "
- stop
- new Region "%{dzialka.tag.%player%}%";
- set {_loc} to location of player
- "%{dzialka.tag.%player%}%".Region.selectLS{{_loc}, {@teren}};
- "%{dzialka.tag.%player%}%".Region.setHeight{{@wysokosc}};
- add {_nick} to {regiony.czlonkowie.%{dzialka.tag.%player%}%::*}
- set {region.szef.%{dzialka.tag.%player%}%} to {_nick}
- set block under the player to {@setblock.type}
- Set {srodek.cuboida.%{dzialka.tag.%player%}%} to location of player
- set {dzialka.%player%.zapraszanie} to true
- set {dzialka.%player%.limit.claim} to true
- set {l.%player%} to "%{dzialka.tag.%player%}%"
- add {dzialka.tag.%player%} to {lista.cuboidow::*}
- remove 1 Diamond of Unbreaking 10 named "{@nazwa.przedmiotu}" from player
- send "{@tag} &7Stworzyles terytorium!"
- stop
- else:
- send "{@tag} {@Limit.dzialek}"
- stop
- else:
- send "{@tag} {@zbyt.blisko.spawnu}"
- stop
- command /zapros [<player>]:
- trigger:
- arg 1 is set:
- {dzialka.%player%.zapraszanie} is false:
- send "{@tag} {@zapraszenie.wylaczone"
- stop
- {l.%player%} is not set:
- send "{@tag} {@nie.jestes.zalozycielem.zadnego.terenu}"
- stop
- if player doesn't have {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3}:
- send "{@tag} {@nie.posiadasz}"
- stop
- remove {@item.zapros.1} and {@item.zapros.2} and {@item.zapros.3} from player
- add "%arg%" to {dz-%{dzialka.tag.%player%}%.invites::*}
- send "{@tag} {@zostales.zaproszony}" to arg player
- send "{@tag} {@zeby.dolaczyc.wpisz}" to arg player
- send "{@tag} {@gracz.zostal.zaproszony}"
- stop
- else:
- send "{@tag} {@prawidlowe.uzycie}"
- stop
- command /dolacz [<text>]:
- trigger:
- arg 1 is not set:
- send "{@tag} {@podaj.nazwe.dzialki}"
- stop
- {m.%player%} is set:
- send "{@tag} {@jestes.jzu.czlonkiem}"
- {l.%player%} is set:
- send "{@tag} {@jestes.juz.zalozycielem}"
- loop {dz-%arg%.invites::*}:
- loop-value is "%player%":
- set {dzialka.tag.%player%} to arg
- set {_nick} to player
- add {_nick} to {regiony.czlonkowie.%arg 1%::*}
- remove "%player%" from {dz-%{dzialka.tag.%player%}%.invites::*}
- send "{@tag} {@dolaczyles.do}"
- stop
- send "{@tag} {@nie.dostlaes.zaproszenia}"
- stop
- on anymove:
- if {region.%player%.last} is not set:
- set {region.%player%.last} to "Brak"
- if Region.at{location of player} is not set:
- set {_dzialka} to "Brak"
- else:
- set {_dzialka} to Region.at{location of player}
- if {_dzialka} is not {region.%player%.last}:
- if {_dzialka} is "None" or "<none>" or "Brak":
- display "{@wyszedles.z.terenu}" on bossbar with 100 percent by 10 seconds for player
- else:
- display "{@wszedles.na.teren}" on bossbar with 100 percent by 10 seconds for player
- set {region.%player%.last} to {_dzialka}
- on break:
- player doesn't have permission "dzialka.niszczenie":
- location of event-block is in any region:
- set {_rg} to Region.at{location of event-block};
- if {regiony.czlonkowie.%{_rg}%::*} contains player:
- stop
- send "{@nie.mozesz.niszczyc}"
- cancel event
- stop
- on place:
- player doesn't have permission "dzialka.budowanie":
- location of event-block is in any region:
- set {_rg} to Region.at{location of event-block};
- if {regiony.czlonkowie.%{_rg}%::*} contains player:
- stop
- send "{@nie.mozesz.budowac}"
- cancel event
- stop
- command /wyrzuc [<player>]:
- trigger:
- arg 1 is not set:
- send "{@tag} {@podaj.nazwe.gracza}"
- stop
- {m.%player%} is set:
- send "{@tag} {@nie.jestes.zaozycielem}"
- {l.%player%} is set:
Advertisement
Add Comment
Please, Sign In to add comment