Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- if {tag1.%player%} is true:
- cancel event
- broadcast "&f[&4%{wlasciciel.gildi.musibyc.%player%}%&f] &7%name of player%: &f%message%"
- stop
- else:
- stop
- command /gildiespawn:
- permission: admin
- trigger:
- set {spawn} to location of player
- command /gildia [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&c/gildia cennik - &aitemki na gildie"
- send "&c/gildia stworz - &azakladasz gildie z claimem (100x100)"
- send "&c/gildia usun - &ausuwasz gildie"
- send "&c/gildia dom - &ateleport do domu"
- send "&c/gildia odejdz - &aodchodzisz z gildi"
- send "&c/gildia mod (nick) - &anadajesz graczu range (Moderator)"
- send "&c/gildia info - &awyswietlasz informacje o gildi"
- send "&c/gildia akceptuj - &aakceptujesz zapraszenie za 5 diamentow"
- send "&c/gildia party ..."
- send " &c zapros - &adodajesz gracza do gildi"
- send " &c wyrzuc - &adodajesz gracza do gildi"
- if arg 1 is "info":
- send "&a==========&cGILDIA&a=========="
- if arg 1 is "mod":
- if arg 2 is set:
- add arg 2 to {gildia.mody.%{nazwa.gildi.musibyc.%player%}%.modowie::*}
- else:
- send "&cPodaj nick gracza"
- if arg 1 is "odejdz":
- if {gildia.zalozyciel.%{wlasciciel.gildi.musibyc.%player%}%} is name of player:
- send "&cNie mozesz odejsc z wlasnej gildi ..."
- stop
- else:
- if {gildia.jestem.%player%} is true:
- remove 1 from {gildia.%{nazwa.gildi.musibyc.%{wlasciciel.gildi.musibyc.%{gildia.szef}%}%}%.liczbaczlonkow}
- remove arg 3 from {gildia.%{nazwa.gildi.musibyc.%{wlasciciel.gildi.musibyc.%{gildia.szef}%}%}%.wszyscy-czlonkowie::*}
- set {tag.%player%} to false
- set {tag1.%player%} to false
- make console execute command "rg removeowner -w %world of player% gildia-%{nazwa.gildi.musibyc.%{gildia.szef}%}%-%{wlasciciel.gildi.musibyc.%{gildia.szef}%}% %arg 3%"
- set {czlonek.gildi.%{wlasciciel.gildi.musibyc.%{gildia.szef}%}%.%player%} to false
- else:
- send "&cNie jestes w zadnej gildi"
- if arg 1 is "dom":
- if {gildia.jestem.%player%} is true:
- if {tag1.%player%} is true:
- if {tag.%player%} is set:
- teleport player to {dom.%{tag.%player%}%}
- if arg 1 is "akceptuj":
- if {dolaczenie.%player%} is 0:
- send "&cNie masz zadnego oczekujacego zaproszenia"
- stop
- else:
- if player have 5 diamond:
- add 1 to {gildia.%{nazwa.gildi.musibyc.%{gildia.szef}%}%.liczbaczlonkow}
- add player to {gildia.%{nazwa.gildi.musibyc.%{gildia.szef}%}%.wszyscy-czlonkowie::*}
- set {tag.%player%} to {wlasciciel.gildi.musibyc.%{gildia.szef}%}
- set {tag1.%player%} to true
- set {czlonek.gildi.%{gildia.szef}%.%player%} to true
- make console execute command "rg addowner -w %world of player% gildia-%{nazwa.gildi.musibyc.%player%}%-%{wlasciciel.gildi.musibyc.%player%}% %arg 3%"
- remove 5 diamond from player
- else:
- send "&cNie masz 5 diamentow"
- if arg 1 is "party":
- if arg 2 is "dodaj":
- if arg 3 is set:
- if player is {gildia.mody.%{nazwa.gildi.musibyc.%player%}%.modowie::*}:
- send "&aWyslano zaproszenie do gildi %{wlasciciel.gildi.musibyc.%player%}% do gracza %arg 3%"
- execute player command "msg %arg 3% &aDostales zaproszenie go gildi %{wlasciciel.gildi.musibyc.%player%}% napisz /gildia dolacz %{wlasciciel.gildi.musibyc.%player%}% aby dolaczyc"
- set {dolaczenie.%arg 3%} to {wlasciciel.gildi.musibyc.%{dolaczenie.%player%}%}
- set {gildia.szef} to name of player
- wait 60 second
- set {dolaczenie.%arg 3%} to 0
- execute player command "msg %arg 3% &aNiestety twoje zaproszenie sie przedawnilo..."
- else:
- send "&cNie jestes liderem/modem"
- else:
- send "&cPodaj nick gracza"
- if arg 2 is "wyrzuc":
- if arg 3 is set:
- if arg 3 is not {gildia.%{nazwa.gildi.musibyc.%arg 3%}%.wszyscy-czlonkowie::*}:
- if player is {gildia.mody.%{nazwa.gildi.musibyc.%player%}%.modowie::*}:
- remove 1 from {gildia.%{nazwa.gildi.musibyc.%arg 3%}%.liczbaczlonkow}
- remove arg 3 from {gildia.%{nazwa.gildi.musibyc.%arg 3%}%.wszyscy-czlonkowie::*}
- set {tag.%arg 3%} to false
- set {tag1.%arg 3%} to false
- make console execute command "rg removeowner -w %world of player% gildia-%arg 2%-%arg 3% %arg 3%"
- set {czlonek.gildi.%{wlasciciel.gildi.musibyc.%player%}%.%arg 3%} to false
- else:
- send "&cNie jestes liderem/modem"
- else:
- send "&cNie ma takiej osoby w gildi"
- else:
- send "&cPodaj nick gracza"
- if arg 1 is "usun":
- if {gildia.jestem.%player%} is true:
- if {gildia.zalozyciel.%{wlasciciel.gildi.musibyc.%player%}%} is name of player:
- execute player command "rg remove gildia-%{nazwa.gildi.musibyc.%player%}%-%{wlasciciel.gildi.musibyc.%player%}%"
- delete {gildia.%{wlasciciel.gildi.musibyc.%player%}%.wszyscy-czlonkowie::*}
- set {gildia.%{wlasciciel.gildi.musibyc.%player%}%.liczbaczlonkow} to 0
- remove {nazwa.gildi.musibyc.%player%} from {listagildi.gildie::*}
- remove {wlasciciel.gildi.musibyc.%player%} from {listatagowgildi.gildie::*}
- set {gildia.zalozyciel.%{wlasciciel.gildi.musibyc.%player%}%} to 0
- execute console command "pex user %player% remove wlasciciel.gildi"
- set {gildia.jestem.%player%} to false
- broadcast "&aGracz: &7%name of player% &ausunal gildie o nazwie: &7%{nazwa.gildi.musibyc.%player%}% &ai tagu: &7%{wlasciciel.gildi.musibyc.%player%}%"
- loop all players:
- if {czlonek.gildi.%{wlasciciel.gildi.musibyc.%player%}%.%loop-player%} is true:
- set {tag1.%loop-player%} to false
- set {tag.%loop-player%} to false
- set {czlonek.gildi.%{wlasciciel.gildi.musibyc.%player%}%.%loop-player%} to false
- else:
- send "&cNie jestes liderem"
- stop
- else:
- send "&cNie posiadasz gildi!"
- stop
- send "&aUsuwanie gildi w toku"
- if arg 1 is "cennik":
- send "&7Itemy na gildie to:"
- send "&6- 64 diamenty"
- send "&6- 64 sztabki zelaza"
- send "&6- 64 sztabki zlota"
- send "&6- 64 emeraldow"
- send "&6- 32 obsydiany"
- send "&6- 16 koxow"
- if arg 1 is "stworz":
- if arg 2 is not set:
- send "&c/gildia stworz (nazwa) (tag)"
- stop
- if arg 2 is {listagildi.gildie::*}:
- send "&cTaka gildia juz istnieje"
- stop
- if arg 3 is {listatagowgildi.gildie::*}:
- send "&cGildia o takim tagu juz istnieje"
- stop
- if {gildia.jestem.%player%} is true:
- send "&cMasz juz gildie!"
- stop
- if player cannot build at block under player:
- send "&cTeren pod toba jest zajety!"
- stop
- if player cannot build at block 50 meters northwest:
- send "&cTeren na polnocny-zachod stad jest juz zajety"
- stop
- if player cannot build at block 50 meters north:
- send "Teren na polnoc stad jest juz zajety"
- stop
- if player cannot build at block 50 meters northeast:
- send "Teren na polnocno-wschodni stad jest juz zajety"
- stop
- if player cannot build at block 50 meters west:
- send "Teren na zachod stad jest juz zajety"
- stop
- if player cannot build at block 50 meters east:
- send "Teren na wschod stad jest juz zajety"
- stop
- if player cannot build at block 50 meters southwest:
- send "Teren na poludniowy-zachod stad jest juz zajety"
- stop
- if player cannot build at block 50 meters southeast:
- send "Teren na poludniowy-wschod stad jest juz zajety"
- stop
- if distance between {spawn} and location of player is greater than 600:
- if arg 2 is set:
- if arg 3 is set:
- if player has 64 diamond:
- if player has 64 iron ingot:
- if player has 64 gold ingot:
- if player has 64 emerald:
- if player has 32 obsidian:
- if player has 16 enchanted golden apple:
- set {tag1.%player%} to true
- set {tag.%player%} to arg 3
- set {czlonek.gildi.%arg 3%.%player%} to true
- set {wlasciciel.gildi.musibyc.%player%} to argument 3
- set {nazwa.gildi.musibyc.%player%} to argument 2
- set {dom.%arg 3%} to location of player
- set {gildia.zalozyciel.%arg 3%} to name of player
- add player to {gildia.mody.%arg 2%.modowie::*}
- set {gildia.jestem.%player%} to true
- set block under player to bedrock
- remove 64 diamond from player
- remove 64 iron ingot from player
- remove 64 gold ingot from player
- remove 64 emerald from player
- remove 32 obsidian from player
- remove 16 enchanted golden apple from player
- make console execute command "pex user %name of player% add worldguard.*"
- make console execute command "pex user %name of player% add worldedit.*"
- wait 1 tick
- make player execute command "//pos1"
- make player execute command "//pos2"
- wait 1 tick
- make player execute command "//expand 50 n"
- make player execute command "//expand 50 s"
- make player execute command "//expand 50 w"
- make player execute command "//expand 50 e"
- make player execute command "//expand vert"
- wait 1 tick
- make player execute command "/rg define gildia-%arg 2%-%arg 3%"
- wait 1 tick
- make console execute command "pex user %name of player% remove worldguard.*"
- make console execute command "pex user %name of player% remove worldedit.*"
- make console execute command "rg addowner -w %world of player% gildia-%arg 2%-%arg 3% %name of player%"
- make console execute command "rg setpriority -w %world of player% gildia-%arg 2%-%arg 3% 1"
- make console execute command "rg flag -w %world of player% gildia-%arg 2%-%arg 3% greeting &7Wchodzisz na teren gildi: &f[&6%arg 2%&f]"
- make console execute command "rg flag -w %world of player% gildia-%arg 2%-%arg 3% farewell &7Wyszles poza teren gildii: &f[&6%arg 2%&f]"
- make console execute command "rg flag -w %world of player% gildia-%arg 2%-%arg 3% chest-access deny"
- set {gildia.%arg 2%.liczbaczlonkow} to 0
- add 1 to {gildia.%arg 2%.liczbaczlonkow}
- add player to {gildia.%arg 2%.wszyscy-czlonkowie::*}
- add arg 2 to {listagildi.gildie::*}
- add arg 3 to {listatagowgildi.gildie::*}
- execute console command "pex user %player% add wlasciciel.gildi"
- loop 100 times:
- send " "
- broadcast "&aGracz: &7%name of player% &astworzyl gildie o nazwie: &7%arg 2% &ai tagu: &7%arg 3%"
- send "&aTworzenie gildie zakonczylo sie poprawnie"
- else:
- send "&cBrak potrzebnych przedmiotow!"
- else:
- send "&cBrak potrzebncyh przedmiotow"
- else:
- send "&cBrak potrzebnych przedmiotow"
- else:
- send "&cBrak potrzebnych przedmiotow"
- else:
- send "&cBrak potrzebnych przedmiotow"
- else:
- send "&cBrak potrzebnych przedmiotow"
- else:
- send "&cUstaw tag gildi"
- else:
- send "&cUstaw nazwe gildi"
- else:
- send "&cJestes zbyt blisko spawnu"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement