Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script options:
- $ init com.mysql.jdbc.Driver
- $ db url jdbc:mysql://localhost:3306/ehcsql
- $ db username root
- $ db password jnnbwaJP69$
- on load:
- if folder "plugins/ehcGuilds" doesn't exists:
- create folder "plugins/ehcGuilds"
- else:
- if file "plugins/ehcGuilds/config.yml" doesn't exists:
- create file "plugins/ehcGuilds/config.yml"
- wf "Ustawienia:" "plugins/ehcGuilds/config.yml"
- wf " Wymagane:" "plugins/ehcGuilds/config.yml"
- wf " Gracz:" "plugins/ehcGuilds/config.yml"
- wf " - 1 stone" "plugins/ehcGuilds/config.yml"
- wf " VIP:" "plugins/ehcGuilds/config.yml"
- wf " - 1 stone" "plugins/ehcGuilds/config.yml"
- else:
- loop {Gildie::regiony::lista::*}:
- set {_nazwa} to loop-value
- set {_loc.a} to {Gildie::region::%{_nazwa}%::locA}
- set {_loc.b} to {Gildie::region::%{_nazwa}%::locB}
- set {_loc} to {Gildie::region::%{_nazwa}%::locC}
- new Region {_nazwa};
- "%{_nazwa}%".Region.selectLL{{_loc.a}, {_loc.b}};
- "%{_nazwa}%".Region.setCenter{{_loc}};
- Options:
- logo: &8 >>
- brakPermissions: &7Nie masz do tego praw
- command /gildia:
- aliases: g
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.help" or "Gildie.*":
- send "&6============ Zarzadzanie ==========="
- send "&7/zaloz &6[TAG] [NAZWA] &7- Tworzy gildie"
- send "&7/usun &7- &7Usuwa gildie"
- send "&7/lider &6[NICK] &7- &7Oddaje lidera gildii"
- send "&7/awans &6[NICK] &7- &7Nadaje mistrza gildii"
- send "&7/degraduj &6[NICK] &7- &7Degraduje gracza"
- send "&7/zapros &6[NICK] &7- &7Zaprasza gracza do gildii"
- send "&7/wyrzuc &6[NICK] &7- &7Wyrzuca gracza z gildii"
- send "&7/sojusz &6[TAG] &7- &7Zawiera sojusz z gildia"
- send "&7/pvp &7- &7ON/OFF PvP"
- send "&6============== Gracz =============="
- send "&7/dolacz &6[TAG] &7- &7Dolacza do danej gildii"
- send "&7/opusc &7- &7Opuszcza gildie"
- send "&7/baza &7- &7Przenosi do gildii"
- send "&6============== Ogolne =============="
- send "&7/info &6[TAG] &7- &7Sprawdzasz informacje o gildii"
- send "&7/itemy &8- &7Pokazuje itemy potrzebne do stworzenia gildi"
- send "&6==================================="
- command /itemy:
- trigger:
- set {_nazwaEQ} to "&9---===&f[&4&lItemy na Gildie&f]&9===---"
- "%{_nazwaEQ}%".inventory.unregister{};
- new Inventory "%{_nazwaEQ}%"
- "%{_nazwaEQ}%".inventory.setRow{1};
- if player have permissions "gildia.VIP":
- set {_listaItemkow::*} to value list "Ustawienia.Wymagane.VIP" get of "plugins/ehcGuilds/config.yml"
- else:
- set {_listaItemkow::*} to value list "Ustawienia.Wymagane.Gracz" get of "plugins/ehcGuilds/config.yml"
- loop {_listaItemkow::*}:
- add loop-value to {_itemyLista}
- set {_itemyLista} to "%{_listaItemkow::1}%,%{_listaItemkow::2}%,%{_listaItemkow::3}%,%{_listaItemkow::4}%,%{_listaItemkow::5}%,%{_listaItemkow::6}%,%{_listaItemkow::7}%,%{_listaItemkow::8}%,%{_listaItemkow::9}%"
- # send "%{_itemyLista}%"
- set {_Itemy::*} to {_itemyLista} split at ","
- set {_ItemyIlosc::*} to {_itemyLista} split at " "
- send "%{_ItemyIlosc::0}% %{_ItemyIlosc::3}%"
- #set {_list::*} to {_fakeplugins} split at ","
- "%{_nazwaEQ}%".inventory.setItem{1, wood sword named "" with lore ""};
- "%{_nazwaEQ}%".inventory.setExecutor{1, "player"};
- "%{_nazwaEQ}%".inventory.display{player}
- command /zaloz [<text>] [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.create" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is not set:
- if arg 1 is set:
- if arg 2 is set:
- set {_nazwa} to arg 2
- if {Gildie::skrot::%arg 1%::stan} is set:
- send "{@logo} &7Skrot &6%arg 1% juz istnieje"
- stop
- set {_len} to length of arg 1
- if {_len} is greater than 4:
- send "{@logo} &7Masz za dlugi skrot - musi miec on 4 znaki"
- stop
- if {_len} is smaller than 4:
- send "{@logo} &7Masz za krotki skrot - musi miec on 4 znaki"
- stop
- set {_len} to length of arg 2
- if {_len} is greater than 22:
- send "{@logo} &7Masz za dluga nazwe - musi miec ona mniej niz 22 znakow"
- stop
- if {_len} is smaller than 5:
- send "{@logo} &7Masz za krotka nazwe - musi miec ona wiecej niz 5 znakow"
- stop
- set {_sk} to arg 1
- set {_nazwa.test} to {_nazwa}
- replace all "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "q" and "r" and "s" and "t" and "u" and "v" and "w" and "x" and "y" and "z" and "1" and "2" and "3" and "4" and "5" and "6" and "7" and "8" and "9" and "0" with "" in {_nazwa.test}
- replace all "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "q" and "r" and "s" and "t" and "u" and "v" and "w" and "x" and "y" and "z" and "1" and "2" and "3" and "4" and "5" and "6" and "7" and "8" and "9" and "0" with "" in {_sk}
- if length of {_sk} is greater than 1:
- send "{@logo} &7skrot zwiera nieprawidlowe znaki: %{_sk}%"
- stop
- if length of {_nazwa.test} is greater than 1:
- send "{@logo} &7Skrot zwiera nieprawidlowe znaki: %{_nazwa.test}%"
- stop
- if {Gildie::nazwa::%{_nazwa}%::istnienie} is not set:
- set {_loc.x} to x-location of block at location of player
- set {_loc.y} to y-location of block at location of player
- set {_loc.z} to z-location of block at location of player
- set {_world} to player's world
- add -41 to {_loc.x}
- add -40 to {_loc.z}
- set {_loc.y} to 1
- set {_loc.a} to location at {_loc.x}, {_loc.y}, {_loc.z} in {_world}
- add 81 to {_loc.x}
- add 81 to {_loc.z}
- set {_loc.y} to 256
- set {_loc.b} to location at {_loc.x}, {_loc.y}, {_loc.z} in {_world}
- set {_ile.x} to difference between x location of {_loc.a} and x location of {_loc.b}
- set {_ile.z} to difference between z location of {_loc.a} and z location of {_loc.b}
- set {_ile.y} to difference between y location of {_loc.a} and y location of {_loc.b}
- set {_loc.y} to 100
- set {_loc.loop} to location at {_loc.x}, {_loc.y}, {_loc.z} in {_world}
- set {_loc.loop.x} to {_loc.x}
- set {_loc.loop.z} to {_loc.z}
- set {_loc.loop.z.save} to {_loc.loop.z}
- set {_index} to 0
- loop {_ile.x} times:
- set {_loc.loop.x} to {_loc.loop.x}-1
- remove {_ile.z} from {_loc.loop.z}
- loop {_ile.z} times:
- set {_loc.loop.z} to {_loc.loop.z}+1
- set {_loc.loop} to location at {_loc.loop.x}, {_loc.y}, {_loc.loop.z} in {_world}
- add 1 to {_index}
- if {_loc.loop} is in any region:
- send "{@logo} &7Nie mozna utworzyc gildii, poniewaz teren na ktorym by powstala jest juz zajety"
- stop
- if player have permissions "gildia.VIP":
- set {_listaItemkow::*} to value list "Ustawienia.Wymagane.VIP" get of "plugins/ehcGuilds/config.yml"
- else:
- set {_listaItemkow::*} to value list "Ustawienia.Wymagane.Gracz" get of "plugins/ehcGuilds/config.yml"
- loop {_listaItemkow::*}:
- set {_item} to "%loop-value%" parsed as item type
- if player's inventory contains {_item}:
- set {_posiada} to true
- else:
- set {_posiada} to false
- send "%{gildie::tag::config}% &6Potrzebujesz &c20x&6: &bDiament, &aSzmaragd, &7Zelazo, &eZloto"
- stop
- if {_posiada} is true:
- loop {_listaItemkow::*}:
- set {_item} to "%loop-value%" parsed as item type
- remove {_item} from player's inventory
- new Region {_nazwa};
- "%{_nazwa}%".Region.selectLL{{_loc.a}, {_loc.b}};
- set {_loc} to location of block at location of player
- "%{_nazwa}%".Region.setCenter{{_loc}};
- set block at {_loc} to enderdragon egg
- set {Gildie::region::%{_nazwa}%::locA} to {_loc.a}
- set {Gildie::region::%{_nazwa}%::locB} to {_loc.b}
- set {Gildie::region::%{_nazwa}%::locC} to {_loc}
- add {_nazwa} to {Gildie::regiony::lista::*}
- set {Gildie::nazwa::%{_nazwa}%::istnienie} to true
- set {Gildie::nazwa::%{_nazwa}%::owner} to player
- add player to {Gildie::nazwa::%{_nazwa}%::members::list::*}
- set {Gildie::nazwa::%{_nazwa}%::HP} to 100
- set {Gildie::nazwa::%{_nazwa}%::DataZalozenia} to now
- set {Gildie::nazwa::%{_nazwa}%::MaxHP} to 100
- set {Gildie::nazwa::%{_nazwa}%::members::number} to 1
- set {Gildie::nazwa::%{_nazwa}%::skrot} to arg 1
- set {Gildie::tag::%arg 1%::skrot} to {_nazwa}
- set {Gildie::skrot::%{Gildie::nazwa::%{_nazwa}%::skrot}%::nazwaGildii} to {_nazwa}
- set {Gildie::nazwa::%{_nazwa}%::pvp} to false
- set {Gildie::nazwa::%{_nazwa}%::punkty} to 0
- add {_nazwa} to {Gildie::gildie::lista::*}
- set {Gildie::gracz::%player%::nazwaGildii} to {_nazwa}
- set {Gildie::gracz::%player%::stanowisko} to "Owner"
- broadcast "{@logo} &7Gracz &6%player% &7zalozyl gildie &6%{_nazwa}%"
- create hologram "&4 %{Gildie::nazwa::%{_nazwa}%::HP}% &6/&a %{Gildie::nazwa::%{_nazwa}%::MaxHP}%" at block above {_loc} for 1 seconds
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- set {_player} to loop-value
- set {_player} to {_player} parsed as player
- add {Gracz::%{_player}%::punkty} to {_points}
- add 1 to {_dziel}
- set {_p.g} to {_points}/{_dziel}
- set {_p.g} to {_p.g} parsed as number
- set {_p.g} to a round down {_p.g}
- update "INSERT INTO gildie (Nazwa, Tag, Lider, Czlonkowie, Punkty) VALUES ('%{_nazwa}%', '%arg 1%', '%player%','%player%', '%{_p.g}%');"
- update "UPDATE gracze SET pozycjaWGildi='%{Gildie::gracz::%player%::stanowisko}%' WHERE Nick='%player%';"
- else:
- send "{@logo} &7Gildia o nazwie &6%arg 2% juz istnieje"
- else:
- send "{@logo} &7Musisz podac nazwe swojej gidii"
- else:
- send "{@logo} &7Musisz podac skrot swojej gidii"
- else:
- send "{@logo} &7Masz juz gildie &6%{Gildie::gracz::%player%::nazwaGildii}%"
- else:
- send "{@brakPermissions}"
- command /usun:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Delete" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%player%::stanowisko} is "Owner":
- set {_loc} to {Gildie::region::%{_nazwa}%::locC}
- set block at {_loc} to air
- "%{_nazwa}%".Region.delete{};
- delete {Gildie::skrot::%{Gildie::nazwa::%{_nazwa}%::skrot}%::nazwaGildii}
- loop {Gildie::nazwa::%{_nazwa}%::sojusznicy::*}:
- set {_gildia} to loop-value
- remove {_nazwa} from {Gildie::nazwa::%{_gildia}%::sojusznicy::*}
- delete {Gildie::nazwa::%{_nazwa}%::stosunki::%{_gildia}%}
- delete {Gildie::nazwa::%{_gildia}%::stosunki::%{_nazwa}%}
- loop {Gildie::nazwa::%{_nazwa}%::prosbyOSojusz::*}:
- remove {_nazwa} from {Gildie::nazwa::%{_gildia}%::propozycjaSojuszuLista::*}
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- delete {Gildie::gracz::%loop-value%::nazwaGildii}
- delete {Gildie::gracz::%loop-value%::Stanowisko}
- delete {Gildie::gracz::%loop-value%::skrot}
- if "%loop-value%" is not "%player%":
- send "{@logo} Gracz %player% rozwiazal Twoja gildie" to "%loop-value%" parsed as player
- delete {Gildie::skrot::%{Gildie::nazwa::%{_nazwa}%::skrot}%::stan}
- delete {Gildie::skrot::%{Gildie::nazwa::%{_nazwa}%::skrot}%::nazwaGildii}
- delete {Gildie::nazwa::%{_nazwa}%}
- remove {_nazwa} from {Gildie::gildie::lista::*}
- remove {_nazwa} from {Gildie::regiony::lista::*}
- delete {Gildie::region::%{_nazwa}%}
- delete {Gildie::nazwa::%{_nazwa}%::*}
- delete {Gildie::nazwa::%{_nazwa}%::istnienie}
- delete {Gildie::nazwa::%{_nazwa}%::zaproszeni::list::*}
- delete {Gildie::gracz::%player%::skrot}
- update "DELETE FROM gildie WHERE Nazwa='%{_nazwa}%';"
- broadcast "{@logo} &7Gracz &6%player% &7rozwiazal gildie &6%{_nazwa}%"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii &6%{_nazwa}%"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /baza:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.home" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::region::%{_nazwa}%::locC} is set:
- set {_loc} to {Gildie::region::%{_nazwa}%::locC}
- set {_time} to 5
- set {_x.%player%} to x-location of player
- set {_z.%player%} to z-location of player
- set {_y.%player%} to y-location of player
- send "{@logo} &7Teleportacja nastapi za: &6%{_time}% sek&7. Nie mozesz sie ruszac."
- loop {_time} times:
- if difference between x-location of player and {_x.%player%} is bigger than 0.5:
- send "{@logo} &7Ruszyles sie, teleportacja zostala przerwana."
- stop
- if difference between z-location of player and {_z.%player%} is bigger than 0.5:
- send "{@logo} &7Ruszyles sie, teleportacja zostala przerwana."
- stop
- if difference between y-location of player and {_y.%player%} is bigger than 0.5:
- send "{@logo} &7Ruszyles sie, teleportacja zostala przerwana."
- stop
- remove 1 from {_time}
- if {_time} is 0:
- teleport player to {_loc}
- stop
- wait 1 second
- stop
- else:
- send "{@logo} &7Masz terenu gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /zapros [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- if {Gildie::gracz::%player%::Stanowisko} is "Owner" or "Moderator":
- if arg 1 is set:
- set {_nick} to arg 1
- set {_nick} to {_nick} parsed as player
- if "%{_nick}%" is "%player%":
- send "{@logo} &7Nie mozesz zaprosic samego siebie"
- stop
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%{_nick}%::nazwaGildii} is {_nazwa}:
- send "{@logo} &7Ten gracz jest juz w Twojej gildii"
- stop
- if {Gildie::gracz::%{_nick}%::zaproszenie::nazwa::%{_nazwa}%} is set:
- send "{@logo} &7Ten gracz juz zostal zaproszony"
- stop
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%player% &7zaprosil do Twojej gildii gracza &6%{_nick}%" to "%loop-value%" parsed as player
- add {_nick} to {Gildie::nazwa::%{_nazwa}%::zaproszeni::list::*}
- set {Gildie::gracz::%{_nick}%::zaproszenie::nazwa::%{_nazwa}%} to true
- send "{@logo} &7Zaprosiles gracza &6%{_nick}%"
- send "{@logo} &7Gracz &6%player% &7zaprosil Ciebie do gildii &6%{_nazwa}%" to "%{_nick}%" parsed as player
- else:
- send "{@logo} &7Musisz podac nick zapraszanego gracza"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /wyrzuc [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- if arg 1 is set:
- set {_nick} to arg 1
- set {_nick} to {_nick} parsed as player
- if "%{_nick}%" is "%player%":
- send "{@logo} &7Nie mozesz wyrzucic samego siebie"
- stop
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%{_nick}%::nazwaGildii} is {_nazwa}:
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%player% &7wyrzucil z Twojej gildii gracza &6%{_nick}%" to "%loop-value%" parsed as player
- delete {Gildie::gracz::%{_nick}%::nazwaGildii}
- delete {Gildie::gracz::%{_nick}%::Stanowisko}
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::members::list::*}
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::moderatorzy::*}
- send "{@logo} &7Wyrzuciles gracza &6%{_nick}%"
- send "{@logo} &7Gracz &6%player% &7wyrzucil Ciebie z gildii" to {_nick} parsed as player
- set {_Mistrzowie} to "%{Gildie::nazwa::%{_nazwa}%::moderatorzy::*}%"
- replace all " and " with ", " in {_Mistrzowie}
- replace all "<none>" with "" in {_Mistrzowie}
- set {_member} to "%{Gildie::nazwa::%{_nazwa}%::members::list::*}%"
- replace all " and " with ", " in {_member}
- replace all "<none>" with "" in {_member}
- update "UPDATE gildie SET Czlonkowie='%{_member}%', Mistrzowie='%{_Mistrzowie}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gracze SET pozycjaWGildi='BRAK' WHERE Nick='%{_nick}%';"
- else:
- send "{@logo} &7Gracz &6%{_nick}% nie jest w Twojej gildii"
- else:
- send "{@logo} &7Musisz podac nick wyrzucanego gracza"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /dolacz [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is not set:
- if arg 1 is set:
- set {_tag} to arg 1
- set {_nazwa} to {Gildie::tag::%{_tag}%::skrot}
- if {Gildie::nazwa::%{_nazwa}%::istnienie} is not set:
- send "{@logo} &7Gildia &6%{_nazwa}% &7nie istnieje"
- stop
- if {Gildie::nazwa::%{_nazwa}%::istnienie} is not true:
- send "{@logo} &7Gildia &6%{_nazwa}% &7nie istnieje"
- stop
- set {_nick} to player
- if {Gildie::gracz::%{_nick}%::zaproszenie::nazwa::%{_nazwa}%} is true:
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%{_nick}% &7dolaczyl do Twojej gildii" to "%loop-value%" parsed as player
- set {Gildie::gracz::%{_nick}%::nazwaGildii} to {_nazwa}
- add {_nick} to {Gildie::nazwa::%{_nazwa}%::members::list::*}
- send "{@logo} &7Dolaczyles do gildii &6%{_nazwa}%"
- add {Gildie::gracz::%player%::punkty} to {Gildie::gildie::lista::%{_nazwa}%}
- set {Gildie::gracz::%{_nick}%::nazwaGildii} to {_nazwa}
- set {Gildie::gracz::%{_nick}%::Stanowisko} to "Member"
- delete {Gildie::gracz::%{_nick}%::zaproszenie::nazwa::%{_nazwa}%}
- set {_member} to "%{Gildie::nazwa::%{_nazwa}%::members::list::*}%"
- replace all " and " with ", " in {_member}
- replace all "<none>" with "" in {_member}
- update "UPDATE gildie SET Czlonkowie='%{_member}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gracze SET pozycjaWGildi='%{Gildie::gracz::%player%::stanowisko}%' WHERE Nick='%player%';"
- else:
- send "{@logo} &7Nie masz zaproszenia do gildii &6%{_tag}%"
- else:
- send "{@logo} &7Musisz podac gildie do ktorej chcesz dolaczyc"
- else:
- send "{@logo} &7Jestes juz w gildii"
- else:
- send "{@brakPermissions}"
- command /opusc:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- set {_nick} to player
- set {_nick} to {_nick} parsed as player
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::moderatorzy::*}
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::members::list::*}
- if {Gildie::gracz::%{_nick}%::stanowisko} is "Moderator" or "Member":
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%{_nick}% &7odszedl z Twojej gildii" to "%loop-value%" parsed as player
- delete {Gildie::gracz::%{_nick}%::nazwaGildii}
- send "{@logo} &7Opusciles gildie &6%{_nazwa}%"
- delete {Gildie::gracz::%{_nick}%::Stanowisko}
- delete {Gildie::gracz::%{_nick}%::nazwaGildii}
- set {_Mistrzowie} to "%{Gildie::nazwa::%{_nazwa}%::moderatorzy::*}%"
- replace all " and " with ", " in {_Mistrzowie}
- replace all "<none>" with "" in {_Mistrzowie}
- set {_member} to "%{Gildie::nazwa::%{_nazwa}%::members::list::*}%"
- replace all " and " with ", " in {_member}
- replace all "<none>" with "" in {_member}
- update "UPDATE gildie SET Czlonkowie='%{_member}%', Mistrzowie='%{_Mistrzowie}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gracze SET pozycjaWGildi='BRAK' WHERE Nick='%{_nick}%';"
- else:
- send "{@logo} &7Nie mozesz opuscic gildi"
- else:
- send "{@logo} &7Nie posiadasz gildi"
- else:
- send "{@brakPermissions}"
- command /sojusz [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.sojusz" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- if arg 1 is set:
- set {_tag} to arg 1
- set {_gildia} to {Gildie::tag::%{_tag}%::skrot}
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- set {_tag1} to {Gildie::nazwa::%{_nazwa}%::skrot}
- if {_tag1} is not {_gildia}:
- if {Gildie::nazwa::%{_gildia}%::istnienie} is set:
- if {Gildie::nazwa::%{_nazwa}%::stosunki::%{_gildia}%} is not set:
- if {Gildie::nazwa::%{_gildia}%::propozycjaSojuszu::%{_nazwa}%} is not set:
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7zaproponowala sojusz z gildia &6%{_gildia}%" to "%loop-value%" parsed as player
- loop {Gildie::nazwa::%{_gildia}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7zaproponowala sojusz z twoja gildia. Wpisz &6/g sojusz %{_tag1}% &7aby zakceptowac" to "%loop-value%" parsed as player
- add {_nazwa} to {Gildie::nazwa::%{_gildia}%::propozycjaSojuszuLista::*}
- add {_gildia} to {Gildie::nazwa::%{_nazwa}%::prosbyOSojusz::*}
- set {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszu::%{_gildia}%} to true
- set {Gildie::nazwa::%{_gildia}%::propozycjaSojuszu::%{_nazwa}%} to true
- stop
- if {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszu::%{_gildia}%} is true:
- set {Gildie::nazwa::%{_nazwa}%::stosunki::%{_gildia}%} to "sojusz"
- set {Gildie::nazwa::%{_gildia}%::stosunki::%{_nazwa}%} to "sojusz"
- add {_gildia} to {Gildie::nazwa::%{_nazwa}%::sojusznicy::*}
- add {_nazwa} to {Gildie::nazwa::%{_gildia}%::sojusznicy::*}
- delete {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszu::%{_gildia}%}
- delete {Gildie::nazwa::%{_gildia}%::propozycjaSojuszu::%{_nazwa}%}
- remove {_nazwa} from {Gildie::nazwa::%{_gildia}%::propozycjaSojuszuLista::*}
- remove {_gildia} from {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszuLista::*}
- remove {_gildia} from {Gildie::nazwa::%{_nazwa}%::prosbyOSojusz::*}
- remove {_nazwa} from {Gildie::nazwa::%{_gildia}%::prosbyOSojusz::*}
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7zawarla sojusz z gildia &6%{_gildia}%" to "%loop-value%" parsed as player
- loop {Gildie::nazwa::%{_gildia}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7zawarla sojusz z twoja gildia" to "%loop-value%" parsed as player
- set {_ally1} to "%{Gildie::nazwa::%{_gildia}%::sojusznicy::*}%"
- replace all " and " with ", " in {_ally1}
- set {_ally} to "%{Gildie::nazwa::%{_nazwa}%::sojusznicy::*}%"
- replace all " and " with ", " in {_ally}
- update "UPDATE gildie SET Sojusze='%{_ally}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gildie SET Sojusze='%{_ally1}%' WHERE Nazwa='%{_gildia}%';"
- else:
- delete {Gildie::nazwa::%{_nazwa}%::stosunki::%{_gildia}%}
- delete {Gildie::nazwa::%{_gildia}%::stosunki::%{_nazwa}%}
- remove {_gildia} from {Gildie::nazwa::%{_nazwa}%::sojusznicy::*}
- remove {_nazwa} from {Gildie::nazwa::%{_gildia}%::sojusznicy::*}
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7rozwiazala sojusz z gildia &6%{_gildia}%" to "%loop-value%" parsed as player
- loop {Gildie::nazwa::%{_gildia}%::members::list::*}:
- send "{@logo} &7Gildia &6%{_nazwa}% &7rozwiazala sojusz z twoja gildia" to "%loop-value%" parsed as player
- set {_ally1} to "%{Gildie::nazwa::%{_gildia}%::sojusznicy::*}%"
- replace all " and " with ", " in {_ally1}
- replace all "<none>" with "" in {_ally}
- set {_ally} to "%{Gildie::nazwa::%{_nazwa}%::sojusznicy::*}%"
- replace all " and " with ", " in {_ally}
- replace all "<none>" with "" in {_ally}
- update "UPDATE gildie SET Sojusze='%{_ally}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gildie SET Sojusze='%{_ally1}%' WHERE Nazwa='%{_gildia}%';"
- else:
- send "{@logo} &7Taka gildia nie istnieje!"
- else:
- send "{@logo} &7Nie mozesz zaprosic do sojusza swoja gildie"
- else:
- send "{@logo} &7Musisz podac nazwe gildii"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /pvp:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::nazwa::%{_nazwa}%::pvp} is false:
- set {Gildie::nazwa::%{_nazwa}%::pvp} to true
- send "{@logo} &7Pomyslnie wlaczyles pvp miedzy czlonkami swojej gildii"
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%player% &7wlaczyl pvp miedzy czlonkami w Twojej gildii" to "%loop-value%" parsed as player
- else:
- set {Gildie::nazwa::%{_nazwa}%::pvp} to false
- send "{@logo} Pomyslnie wylaczyles pvp miedzy czlonkami swojej gildii"
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- send "{@logo} &7Gracz &6%player% &7wylaczyl pvp miedzy czlonkami w Twojej gildii" to "%loop-value%" parsed as player
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /degraduj [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- if arg 1 is set:
- set {_nick} to arg 1
- set {_nick} to {_nick} parsed as player
- if "%{_nick}%" is "%player%":
- send "{@logo} &7Nie mozesz awansowac samego siebie"
- stop
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%{_nick}%::nazwaGildii} is {_nazwa}:
- if {Gildie::gracz::%{_nick}%::Stanowisko} is "Moderator":
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- if "%loop-value%" is not "%{_nick}%":
- send "{@logo} &7Gracz &6%player% &7zdegradowal gracza &6%{_nick}% &7na stanowisko czlonka gildii" to "%loop-value%" parsed as player
- set {Gildie::gracz::%{_nick}%::Stanowisko} to "member"
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::moderatorzy::*}
- send "{@logo} &7Zdegradowales gracza &6%{_nick}% &7na stanowisko czlonka gildii"
- send "{@logo} &7Gracz &6%player% &7zdegradowal Ciebie na range czlonka gildii" to "%{_nick}%" parsed as player
- set {_Mistrzowie} to "%{Gildie::nazwa::%{_nazwa}%::moderatorzy::*}%"
- replace all " and " with ", " in {_Mistrzowie}
- replace all "<none>" with "" in {_Mistrzowie}
- update "UPDATE gildie SET Mistrzowie='%{_Mistrzowie}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gracze SET pozycjaWGildi='%{Gildie::gracz::%{_nick}%::Stanowisko}%' WHERE Nick='%{_nick}%';"
- stop
- else:
- send "{@logo} &7Gracz &6%{_nick}% &7nie jest w Twojej gildii"
- else:
- send "{@logo} &7Musisz podac nick wyrzucanego gracza"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii %{_nazwa}%"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /awans [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- if arg 1 is set:
- set {_nick} to arg 1
- set {_nick} to {_nick} parsed as player
- if "%{_nick}%" is "%player%":
- send "{@logo} &7Nie mozesz awansowac samego siebie"
- stop
- if {Gildie::gracz::%{_nick}%::nazwaGildii} is {_nazwa}:
- if {Gildie::gracz::%{_nick}%::Stanowisko} is "Member":
- execute player command "g Moderator %{_nick}%"
- stop
- if {Gildie::gracz::%{_nick}%::Stanowisko} is "Moderator":
- execute player command "g owner %{_nick}%"
- stop
- #send "{@logo} &7Pomyslnie awansowales gracza &6%{_nick}% &7na range &6%{Gildie::gracz::%{_nick}%::Stanowisko}%"
- else:
- send "{@logo} &7Gracz &6%{_nick}% &7nie jest w Twojej gildii"
- else:
- send "{@logo} &7Musisz podac nick gracza"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /lider [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if {Gildie::gracz::%player%::nazwaGildii} is set:
- if {Gildie::gracz::%player%::Stanowisko} is "Owner":
- if arg 1 is set:
- set {_player} to player
- set {_nick} to arg 1
- set {_nick} to {_nick} parsed as player
- if "%{_nick}%" is "%player%":
- send "{@logo} &7Nie mozesz awansowac samego siebie"
- stop
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::gracz::%{_nick}%::nazwaGildii} is {_nazwa}:
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- if "%loop-value%" is not "%player%":
- if "%loop-value%" is not "%{_nick}%":
- send "{@logo} &7Gracz &6%player% &7awansowal gracza &6%{_nick}% &7na stanowisko wlasciciela gildii" to "%loop-value%" parsed as player
- set {Gildie::gracz::%{_nick}%::Stanowisko} to "Owner"
- set {Gildie::gracz::%player%::Stanowisko} to "Moderator"
- set {Gildie::nazwa::%{_nazwa}%::Owner} to {_nick}
- add {_player} to {Gildie::nazwa::%{_nazwa}%::moderatorzy::*}
- remove {_nick} from {Gildie::nazwa::%{_nazwa}%::moderatorzy::*}
- send "{@logo} &7Awansowales gracza &6%{_nick}% &7na stanowisko wlasciciela gildii"
- send "{@logo} &7Gracz &6%player% &7awansowal Ciebie na range wlasciciela gildii" to "%{_nick}%" parsed as player
- set {_Mistrzowie} to "%{Gildie::nazwa::%{_nazwa}%::moderatorzy::*}%"
- replace all " and " with ", " in {_Mistrzowie}
- replace all "<none>" with "" in {_Mistrzowie}
- update "UPDATE gildie SET Lider='%{_nick}%', Mistrzowie='%{_Mistrzowie}%' WHERE Nazwa='%{_nazwa}%';"
- update "UPDATE gracze SET pozycjaWGildi='%{Gildie::gracz::%{_nick}%::Stanowisko}%' WHERE Nick='%{_nick}%';"
- update "UPDATE gracze SET pozycjaWGildi='%{Gildie::gracz::%player%::Stanowisko}%' WHERE Nick='%player%';"
- else:
- send "{@logo} &7Gracz &6%{_nick}% &7nie jest w Twojej gildii"
- else:
- send "{@logo} &7Musisz podac nick gracza"
- else:
- send "{@logo} &7Nie jestes wlascicielem gildii"
- else:
- send "{@logo} &7Nie jestes w zadnej gildii"
- else:
- send "{@brakPermissions}"
- command /info [<text>]:
- trigger:
- if player have permissions "Gildie.Gracz" or "Gildie.Inv" or "Gildie.*":
- if arg 1 is set:
- set {_nazwa} to {Gildie::tag::%arg 1%::skrot}
- if arg 1 is not set:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- if {Gildie::nazwa::%{_nazwa}%::istnienie} is true:
- send "&6======================"
- send "&2Tag: &6%{Gildie::nazwa::%{_nazwa}%::skrot}%"
- send "&2Nazwa: &6%{_nazwa}%"
- send "&2Lider:&6 %{Gildie::nazwa::%{_nazwa}%::owner}%"
- set {_points} to 0
- set {_dziel} to 0
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- set {_player} to loop-value
- set {_player} to {_player} parsed as player
- add {Gracz::%{_player}%::punkty} to {_points}
- add 1 to {_dziel}
- set {_p.g} to {_points}/{_dziel}
- set {_p.g} to {_p.g} parsed as number
- set {_p.g} to a round down {_p.g}
- send "&2Punkty: &7%{_p.g}%"
- set {_mody} to "%{Gildie::nazwa::%{_nazwa}%::moderatorzy::*}%"
- replace all " and " with ", " in {_mody}
- if {Gildie::nazwa::%{_nazwa}%::moderatorzy::*} is not set:
- set {_mody} to "Brak"
- if {Gildie::nazwa::%{_nazwa}%::moderatorzy::*} is empty:
- set {_mody} to "Brak"
- if {_mody} is not set:
- set {_mody} to "Brak"
- send "&2Zastepcy&8: &7%{_mody}%"
- set {_member} to "%{Gildie::nazwa::%{_nazwa}%::members::list::*}%"
- replace all " and " with ", " in {_member}
- if {Gildie::nazwa::%{_nazwa}%::members::list::*} is not set:
- set {_member} to "Brak"
- if {Gildie::nazwa::%{_nazwa}%::members::list::*} is empty:
- set {_member} to "Brak"
- if {_member} is not set:
- set {_member} to "Brak"
- send "&2Czlonkowie&7: %{_member}%"
- set {_ally} to "%{Gildie::nazwa::%{_nazwa}%::sojusznicy::*}%"
- replace all " and " with ", " in {_ally}
- if {Gildie::nazwa::%{_nazwa}%::sojusznicy::*} is not set:
- set {_ally} to "Brak"
- if {Gildie::nazwa::%{_nazwa}%::sojusznicy::*} is empty:
- set {_ally} to "Brak"
- send "&2Sojusznicy&7: %{_ally}%"
- set {_soj} to "%{Gildie::nazwa::%{_nazwa}%::propozycjaSojuszuLista::*}%"
- replace all " and " with ", " in {_soj}
- if {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszuLista::*} is not set:
- set {_soj} to "Brak"
- if {Gildie::nazwa::%{_nazwa}%::propozycjaSojuszuLista::*} is empty:
- set {_soj} to "Brak"
- send "&2Prosby o sojusz&7: %{_soj}%"
- send "&6======================"
- else:
- send "{@logo} &7Gildia &6%{_nazwa}% nie istnieje"
- else:
- send "{@brakPermissions}"
- on damage:
- if victim is player:
- if attacker is player:
- if {Gildie::gracz::%victim%::nazwaGildii} is {Gildie::gracz::%attacker%::nazwaGildii}:
- set {_nazwa} to {Gildie::gracz::%attacker%::nazwaGildii}
- if {Gildie::nazwa::%{_nazwa}%::pvp} is false:
- cancel event
- else:
- if location of block at location of victim is in any region:
- set {_loc} to location of block at location of victim
- set {_ID} to Region.getAt{{_loc}};
- if {Gildie::gracz::%victim%::nazwaGildii} is set:
- if {Gildie::gracz::%victim%::nazwaGildii} is {_ID}:
- if {Gildie::gracz::%attacker%::nazwaGildii} is set:
- if {Gildie::nazwa::%{Gildie::gracz::%attacker%::nazwaGildii}%::stosunki::%{Gildie::gracz::%victim%::nazwaGildii}%} is not "wojna":
- cancel event
- send "{@logo} Gracz %attacker% chcial Ciebie zaatakowac, jednak nie moze tego zrobic, poniewaz jestes na terutorium swojej gildii i nie macie miedzy soba wojny" to victim
- send "{@logo} Nie mozesz zaatakowac gracza %victim% bedac z nim w stanie wojny" to attacker
- #
- on break:
- set {_loc} to location of event-block
- set {_ID} to Region.getAt{{_loc}};
- if {_ID} is set:
- if event-block is enderdragon egg:
- set {_loc} to location of event-block
- set {_ID} to Region.getAt{{_loc}};
- if {_ID} is set:
- set {_center} to "%{_ID}%".Region.getCenter{};
- if {_center} is location of event-block:
- cancel event
- if "%{Gildie::gracz::%player%::nazwaGildii}%" is not "%{_ID}%":
- cancel event
- send "{@logo} &7To teren gildii &6%{_ID}% &7nie mozesz wiec tutaj niczego stawiac"
- on quit:
- if {arena::gracz::%player%::czyGra} is true:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- remove 1 from {Gildie::nazwa::%{_nazwa}%::arena::IloscGraczy}
- on kick:
- if {arena::gracz::%player%::czyGra} is true:
- set {_nazwa} to {Gildie::gracz::%player%::nazwaGildii}
- remove 1 from {Gildie::nazwa::%{_nazwa}%::arena::IloscGraczy}
- On Piston Extend:
- set {_loc} to location of event-block
- set {_ID} to Region.getAt{{_loc}};
- if {_ID} is set:
- loop all blocks around event-location in radius 13:
- if loop-block is enderdragon egg:
- set {_center} to "%{_ID}%".Region.getCenter{};
- if {_center} is location of loop-block:
- cancel event
- stop
- #
- On block physics:
- if event-block is enderdragon egg:
- set {_loc} to location of event-block
- set {_ID} to Region.getAt{{_loc}};
- if {_ID} is set:
- set {_center} to "%{_ID}%".Region.getCenter{};
- if {_center} is location of event-block:
- cancel event
- #
- on right click:
- if event-block is enderdragon egg:
- set {_loc} to location of event-block
- set {_ID} to Region.getAt{{_loc}};
- if {_ID} is set:
- set {_center} to "%{_ID}%".Region.getCenter{};
- if {_center} is location of event-block:
- set {_tag} to {Gildie::nazwa::%{_ID}%::skrot}
- cancel event
- execute player command "info %{_tag}%"
- on any move:
- set {_player} to player
- if {Gildie::gracz::%{_player}%::ostatniaLokalizacja} is not location of block at location of player:
- if "%{Gildie::gracz::%{_player}%::clHome}%" is "true":
- delete {Gildie::gracz::%{_player}%::clHome}
- set {Gildie::gracz::%{_player}%::ostatniaLokalizacja} to location of block at location of player
- if {Gildie::gracz::%{_player}%::ostatniRegion} is not set:
- set {Gildie::gracz::%{_player}%::ostatniRegion} to "0"
- set {_loc} to location of player
- set {_nazwa} to Region.getAt{{_loc}};
- if {_nazwa} is set:
- set {_nazwa2} to {Gildie::gracz::%{_player}%::nazwaGildii}
- set {Gildie::gracz::%player%::regionAktualny} to {Gildie::nazwa::%{_nazwa}%::skrot}
- if "1" is not "%{_nazwa}%":
- if "%{Gildie::gracz::%{_player}%::ostatniRegion}%" is not "%{_nazwa}%":
- if "%{Gildie::gracz::%{_player}%::nazwaGildii}%" is not "%{_nazwa}%":
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- set {_ploop} to loop-value
- set {_ploop} to {_ploop} parsed as player
- set {_tag} to {Gildie::nazwa::%{_nazwa2}%::skrot}
- if {_tag} is set:
- set action bar of {_ploop} to "Gracz [%{_Tag}%] %player% Wszedl Na Teren Twojej gildii"
- else:
- set action bar of {_ploop} to "Gracz %player% Wszedl Na Teren Twojej gildii"
- set {_locP} to location of player
- set {_aaa} to {Gildie::region::%{_nazwa}%::locA}
- set {_locA} to location of block at {_aaa}
- set {_abc} to {Gildie::region::%{_nazwa}%::locC}
- set {_y} to y-coordinate of {_abc}
- set y-coordinate of {_locA} to {_y}
- set {_Dc} to distance between {_locA} and {_abc}
- set {_Dp} to distance between {_locP} and {_abc}
- set {_W} to {_Dp}/{_Dc}*100
- set {_procent} to rounded {_W}
- set {_procent} to rounded 100-{_procent}
- if {_procent} is between 0 and 10:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■&7&l■■■■■■■■■"
- if {_procent} is between 10 and 20:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■&7&l■■■■■■■■"
- if {_procent} is between 20 and 30:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&7&l■■■■■■■"
- if {_procent} is between 30 and 40:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■&7&l■■■■■■"
- if {_procent} is between 40 and 50:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■■&7&l■■■■■"
- if {_procent} is between 50 and 60:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■■■&7&l■■■■"
- if {_procent} is between 60 and 70:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■■■■&7&l■■■"
- if {_procent} is between 70 and 80:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■■■■&a&l■&7&l■■"
- if {_procent} is between 80 and 90:
- set {Gildie::gracz::%player%::procentIkona} to "&c&l■■■&6&l■■■■&a&l■■&7&l■"
- if {_procent} is between 90 and 100:
- set {Gildie::gracz::%player%::procentIkona} to "&a&l■■■■■■■■■■"
- if "%{Gildie::gracz::%{_player}%::nazwaGildii}%" is not "%{_nazwa}%":
- set {_nazwa1} to {_nazwa}
- set {_nazwa2} to {Gildie::gracz::%{_player}%::nazwaGildii}
- if {_nazwa1} is set:
- set {_tag} to "[%{Gildie::gildia::%{_nazwa1}%::skrot}%]"
- if {_nazwa2} is not set:
- set {Gildie::gracz::%player%::SidebarColdown} to true
- else:
- if "%{_nazwa1}%" is "%{_nazwa2}%":
- set {Gildie::gracz::%player%::SidebarColdown} to true
- else:
- if {Gildie::nazwa::%{_nazwa1}%::stosunki::%{_nazwa2}%} is not set:
- set {Gildie::gracz::%player%::SidebarColdown} to true
- else:
- if {Gildie::nazwa::%{_nazwa1}%::stosunki::%{_nazwa2}%} is "Sojusz":
- set {Gildie::gracz::%player%::SidebarColdown} to true
- else:
- set {Gildie::gracz::%player%::SidebarColdown} to true
- else:
- set {Gildie::gracz::%player%::SidebarColdown} to true
- set {Gildie::gracz::%{_player}%::ostatniRegion} to "%{_nazwa}%"
- else:
- set {_nazwa} to "%{Gildie::gracz::%{_player}%::ostatniRegion}%"
- set {Gildie::gracz::%{_player}%::ostatniRegion} to "0"
- if "%{_nazwa}%" is not "0":
- if "%{Gildie::gracz::%{_player}%::nazwaGildii}%" is not "%{_nazwa}%":
- loop {Gildie::nazwa::%{_nazwa}%::members::list::*}:
- set {_ploop} to loop-value
- set {_ploop} to {_ploop} parsed as player
- set {_tag} to {Gildie::nazwa::%{_nazwa2}%::skrot}
- if {_tag} is set:
- set action bar of {_ploop} to "Gracz [%{_Tag}%] %player% wyszedl z terenu Twojej gildii"
- else:
- set action bar of {_ploop} to "Gracz %player% wyszedl z terenu Twojej gildii"
- if "%{Gildie::gracz::%{_player}%::nazwaGildii}%" is not "%{_nazwa}%":
- set action bar of player to "&fWyszedles z terenu gildii %{_nazwa}%"
- delete {Gildie::gracz::%player%::SidebarColdown}
- else:
- set action bar of player to "&aWyszedles z terenu swojej gildii"
- delete {Gildie::gracz::%player%::SidebarColdown}
- every 1 seconds:
- loop all players:
- if {Gildie::gracz::%loop-player%::SidebarColdown} is set:
- invoke "Gildie" from loop-player
- else:
- wipe loop-player's sidebar
- every 1 seconds:
- loop {Gildie::regiony::lista::*}:
- set {_nazwa} to loop-value
- set {_loc} to {Gildie::region::%{_nazwa}%::locC}
- if {_loc} is set:
- create hologram "&4%{Gildie::nazwa::%{_nazwa}%::HP}%&6/&a%{Gildie::nazwa::%{_nazwa}%::MaxHP}%" at block above {_loc} for 1 seconds
- wait 1 seconds
- loop all players:
- set {_otagowany} to "%loop-player%" parsed as player
- loop all players:
- add 1 to {_cl}
- if {_cl} is greater than or equal to 1000:
- wait 0.1 second
- set {_cl} to 0
- set {_player} to "%loop-player-2%" parsed as player
- set {_nazwa} to {Gildie::gracz::%{_otagowany}%::nazwaGildii}
- set {_nazwa1} to {Gildie::gracz::%{_player}%::nazwaGildii}
- if {Gildie::gracz::%{_otagowany}%::nazwaGildii} is set:
- set {_tag} to "[%{Gildie::nazwa::%{_nazwa}%::skrot}%]"
- if {Gildie::gracz::%{_player}%::nazwaGildii} is not set:
- make {_player} see {_otagowany}'s prefix as "&c%{_tag}% "
- else:
- if {_nazwa} is not {_nazwa1}:
- if {Gildie::nazwa::%{_nazwa}%::stosunki::%{_nazwa1}%} is not set:
- make {_player} see {_otagowany}'s prefix as "&c%{_tag}% "
- else:
- if {Gildie::nazwa::%{_nazwa}%::stosunki::%{_nazwa1}%} is "Sojusz":
- make {_player} see {_otagowany}'s prefix as "&6%{_tag}% "
- else:
- make {_player} see {_otagowany}'s prefix as "&d%{_tag}% "
- else:
- make {_player} see {_otagowany}'s prefix as "&a%{_tag}% "
- else:
- if {_nazwa} is not set:
- make {_player} see {_otagowany}'s prefix as "&f"
- else:
- make {_player} see {_otagowany}'s prefix as "&f"
- On explosion prime:
- set {_loc} to location of event-location
- set {_nazwa} to Region.getAt{{_loc}};
- if {_nazwa} is set:
- if difference between {Gildie::nazwa::%{_nazwa}%::DataZalozenia} and now is smaller than 1 day:
- cancel event
- if event-entity is a tnt:
- set {_czas} to difference between {Gildie::nazwa::%{_nazwa}%::DataZalozenia} and now
- set {_czas} to difference between {_czas} and 1 day
- set {_czas} to "%{_czas}%"
- replace all "seconds" with "sekund" in {_czas}
- replace all "second" with "sekunda" in {_czas}
- replace all "minutes" with "minut" in {_czas}
- replace all "minute" with "minuta" in {_czas}
- replace all "hours" with "godzin" in {_czas}
- replace all "hour" with "godzina" in {_czas}
- replace all "days" with "dni" in {_czas}
- replace all "day" with "dzien" in {_czas}
- replace all "months" with "miesiecy" in {_czas}
- replace all "month" with "miesiac" in {_czas}
- replace all "and" with "i" in {_czas}
- loop all players in radius 10 around event-entity:
- send "%{gildie::tag::config}% &7Tnt nie wybuchlo poniewaz gildia jest jeszcze pod okresem ochronnym przez &6%{_czas}%" to loop-player
- if event-entity is a creeper:
- set {_loc} to location of event-entity
- delete event-entity
- create a safe explosion of force 3 at {_loc}
- else:
- send "5" to all players
- set {Gildie::nazwa::%{_nazwa}%::blokadaBudowyTNT} to now
- wait 60 seconds
- delete {Gildie::nazwa::%{_nazwa}%::blokadaBudowyTNT}
- on place:
- set {_loc} to location of event-location
- set {_nazwa} to Region.getAt{{_loc}};
- if {_nazwa} is set:
- if event-block is enderdragon egg:
- set {_center} to "%{_ID}%".Region.getCenter{};
- if {_center} is location of event-block:
- cancel event
- set {_player} to player
- if "%{Gildie::gracz::%player%::bypass}%" is not "true":
- if "%{Gildie::gracz::%{_player}%::nazwaGildii}%" is not "%{_nazwa}%":
- if event-block is not tnt:
- cancel event
- send "%{gildie::tag::config}% &7To nie Twoj teren, wiec nie mozesz tutaj nic stawiac za wyjatkiem bloku TNT"
- stop
- if {Gildie::nazwa::%{_nazwa}%::blokadaBudowyTNT} is set:
- cancel event
- set {_czas} to difference between {Gildie::nazwa::%{_nazwa}%::blokadaBudowyTNT} and now
- set {_czas} to difference between {_czas} and 1 minute
- set {_czas} to "%{_czas}%"
- replace all "seconds" with "sekund" in {_czas}
- replace all "second" with "sekunda" in {_czas}
- replace all "minutes" with "minut" in {_czas}
- replace all "minute" with "minuta" in {_czas}
- replace all "hours" with "godzin" in {_czas}
- replace all "hour" with "godzina" in {_czas}
- replace all "days" with "dni" in {_czas}
- replace all "day" with "dzien" in {_czas}
- replace all "months" with "miesiecy" in {_czas}
- replace all "month" with "miesiac" in {_czas}
- replace all "and" with "i" in {_czas}
- send "%{gildie::tag::config}% Po wybuchu TNT gracze w gildii nie moga budwac przez %{_czas}%"
- stop
- sub "Gildie":
- wipe parameter 1's sidebar
- set name of sidebar of parameter 1 to " &9&lElderHC.pl "
- set score "" in sidebar of parameter 1 to 4
- set score "&f&l%{Gildie::gracz::%parameter 1%::regionAktualny}%" in sidebar of parameter 1 to 3
- set score " " in sidebar of parameter 1 to 2
- set score "%{Gildie::gracz::%parameter 1%::procentIkona}%" in sidebar of parameter 1 to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement