Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Author: Nawo
- # contact: [email protected]
- # Presentation: xxx
- # Launge: Polish
- options:
- prefix: &8[&6Castle&8]
- czas odliczania: 15
- coins: 50
- vip coins: 100
- variables:
- {castle::gracz::kill::%player%} = 0
- {castle::gracz::death::%player%} = 0
- {castle::gracz::win::%player%} = 0
- {castle::gracz::pkt::%player%} = 0
- {castle::gracz::%player%::dolacz} = false
- {castle::gracz::buy1::%player%} = 0
- {castle::gracz::buy2::%player%} = 0
- {castle::gracz::buy3::%player%} = 0
- {castle::gracz::buy4::%player%} = 0
- {castle::gracz::buy5::%player%} = 0
- {castle::gracz::buy6::%player%} = 0
- {castle::gracz::buy7::%player%} = 0
- {castle::gracz::buy8::%player%} = 0
- {castle::gracz::buy9::%player%} = 0
- command /castle [<text="info">] [<text>] [<text=integer>]:
- trigger:
- if arg 1 is "info":
- send "&8>======{@prefix}&8======"
- send " "
- send "&8> &6/castle join &8- &7Dolacza do rozgrywki."
- send "&8> &6/castle leave &8- &7opuszcza rozgrywke."
- send "&8> &6/castle list &8- &7lista aren."
- send "&8> &6/castle top &8- &7Najlepsi gracze."
- send "&8> &6/castle stats &8- &7Statystyki gracza."
- send "&8> &6/castle gui &8- &7Otwiera menu."
- send "&8> &6/castle buy &8- &7Kupuje przedmioty."
- send "&8> &6/castle changeteam &8- &7Zmienia team."
- send "&8> &6/castle start &8- &7Glosuje na start gry."
- if player has permission "castle.*":
- send " "
- send "&8> &6/castle create &8- &7Tworzy nowa arene."
- send "&8> &6/castle remove &8- &7Usuwa arene."
- send "&8> &6/castle setspawn &8- &7Ustawia spawny dla graczy."
- send "&8> &6/castle debug &8- &7Restartuje arene."
- send "&8> &6/castle reload &8- &7Przeladowuje skrypt."
- send "&8> &6/castle active &8- &7Aktywuje arene."
- send "&8> &6/castle deactive &8- &7Dezaktywuje arene."
- send "&8> &6/castle setplayers &8- &7Ustawia liczbe graczy na arenie."
- send "&8> &6/castle seteq &8- &7Ustawia domyslny inwentarz."
- send "&8> &6/castle seteqvip &8- &7Ustawia vip inwentarz."
- send "&8> &6/castle setpkt &8- &7Ustawia punkty graczy."
- send " "
- send "&8>======{@prefix}&8======"
- if arg 1 is "setpkt":
- if player has permission "castle.*":
- if arg 2 is set:
- if arg 2 is "add" or "remove" or "set":
- if arg 3 is set:
- set {_player} to arg 3 parsed as player
- else:
- set {_player} to player
- if arg-integer is set:
- if arg 2 is "add":
- add arg-integer to {castle::gracz::pkt::%{_player}%}
- send "{@prefix} &7Dodales &6%arg-integer% punktow &7dla gracza &6%{_player}%&7."
- if arg 2 is "remove":
- remove arg-integer from {castle::gracz::pkt::%{_player}%}
- send "{@prefix} &7Zabrales &6%arg-integer% punktow &7dla gracza &6%{_player}%&7."
- if arg 2 is "set":
- set {castle::gracz::pkt::%{_player}%} to arg-integer
- send "{@prefix} &7Ustawiles &6%arg-integer% punktow &7dla gracza &6%{_player}%&7."
- else:
- send "{@prefix} &7Uzycie: &6/castle setpkt &7<&6ADD&8/&6REMOVE&8/&6SET&7> <&6GRACZ&7> <&6LICZBA&7>"
- else:
- send "{@prefix} &7Uzycie: &6/castle setpkt &7<&6ADD&8/&6REMOVE&8/&6SET&7> <&6GRACZ&7> <&6LICZBA&7>"
- else:
- send "{@prefix} &7Uzycie: &6/castle setpkt &7<&6ADD&8/&6REMOVE&8/&6SET&7> <&6GRACZ&7> <&6LICZBA&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "buy":
- if arg 2 is "1":
- if {castle::gracz::pkt::%player%}+1 > 1000:
- if {castle::buy::1::%player%} < 1:
- add 1 to {castle::buy::1::%player%}
- remove 1000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6diamond helmet &7za &61000 &7punktow."
- add diamond helmet of protection 4 and unbreaking 3 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "2":
- if {castle::gracz::pkt::%player%}+1 > 1000:
- if {castle::buy::2::%player%} < 1:
- add 1 to {castle::buy::2::%player%}
- remove 1000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6diamond chestplate &7za &61000 &7punktow."
- add diamond chestplate of protection 4 and unbreaking 3 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "3":
- if {castle::gracz::pkt::%player%}+1 > 1000:
- if {castle::buy::3::%player%} < 1:
- add 1 to {castle::buy::3::%player%}
- remove 1000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6diamond leggings &7za &61000 &7punktow."
- add diamond leggings of protection 4 and unbreaking 3 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "4":
- if {castle::gracz::pkt::%player%}+1 > 1000:
- if {castle::buy::4::%player%} < 1:
- add 1 to {castle::buy::4::%player%}
- remove 1000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6diamond boots &7za &61000 &7punktow."
- add diamond boots of protection 4 and unbreaking 3 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "5":
- if {castle::gracz::pkt::%player%}+1 > 10000:
- if {castle::buy::5::%player%} < 5:
- add 1 to {castle::buy::5::%player%}
- remove 10000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6koxa &7za &610000 &7punktow."
- add enchanted golden apple to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko &65 &7razy!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "6":
- if {castle::gracz::pkt::%player%}+1 > 5000:
- if {castle::buy::6::%player%} < 10:
- add 1 to {castle::buy::6::%player%}
- remove 5000 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6refila &7za &65000 &7punktow."
- add golden apple to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko &610 &7razy!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "7":
- if {castle::gracz::pkt::%player%}+1 > 2500:
- if {castle::buy::7::%player%} < 1:
- add 1 to {castle::buy::7::%player%}
- remove 2500 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6perle &7za &62500 &7punktow."
- add ender pearl to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "8":
- if {castle::gracz::pkt::%player%}+1 > 7500:
- if {castle::buy::8::%player%} < 1:
- add 1 to {castle::buy::8::%player%}
- remove 7500 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6miecz knockback 2 &7za &67500 &7punktow."
- add diamond sword of knockback 2 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 2 is "9":
- if {castle::gracz::pkt::%player%}+1 > 7500:
- if {castle::buy::9::%player%} < 1:
- add 1 to {castle::buy::9::%player%}
- remove 7500 from {castle::gracz::pkt::%player%}
- send "{@prefix} &7Kupiles &6luk punch 2 &7za &67500 &7punktow."
- add bow of punch 2 to {castle::player::%player%::inventory::*}
- else:
- send "{@prefix} &7Ten przedmiot mozna kupic tylko raz!"
- else:
- send "{@prefix} &7Nie masz wystarczajaco punktow!"
- if arg 1 is "gui":
- if {castle::gracz::%player%::dolacz} is true:
- open chest with 1 rows named "&6sklep" to player
- wait 1 tick
- format slot 0 of player with 1 of diamond helmet of protection 4 and unbreaking 3 with lore "&7Cena: &61000 ||&7kupiono: &6%{castle::buy::1::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 1"]
- format slot 1 of player with 1 of diamond chestplate of protection 4 and unbreaking 3 with lore "&7Cena: &61000 ||&7kupiono: &6%{castle::buy::2::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 2"]
- format slot 2 of player with 1 of diamond leggings of protection 4 and unbreaking 3 with lore "&7Cena: &61000 ||&7kupiono: &6%{castle::buy::3::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 3"]
- format slot 3 of player with 1 of diamond boots of protection 4 and unbreaking 3 with lore "&7Cena: &61000 ||&7kupiono: &6%{castle::buy::4::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 4"]
- format slot 4 of player with 1 of enchanted golden apple with lore "&7Cena: &610000 ||&7kupiono: &6%{castle::buy::5::%player%}%&8/&65 &7razy" to run [execute player command "/castle buy 5"]
- format slot 5 of player with 1 of golden apple with lore "&7Cena: &65000 ||&7kupiono: &6%{castle::buy::6::%player%}%&8/&610 &7razy" to run [execute player command "/castle buy 6"]
- format slot 6 of player with 1 of ender pearl with lore "&7Cena: &62500 ||&7kupiono: &6%{castle::buy::7::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 7"]
- format slot 7 of player with 1 of diamond sword of knockback 2 with lore "&7Cena: &67500 ||&7kupiono: &6%{castle::buy::8::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 8"]
- format slot 8 of player with 1 of bow of punch 2 with lore "&7Cena: &67500 ||&7kupiono: &6%{castle::buy::9::%player%}%&8/&61 &7razy" to run [execute player command "/castle buy 9"]
- else:
- send "{@prefix} &7Nie jestes na arenie."
- if arg 1 is "start":
- if {castle::gracz::%player%::dolacz} is true:
- if {castle::status::%{castle::gracz::%player%::arena}%} is not "w trakcie" or "odliczanie":
- if {castle::gracz::%player%::invite} is false:
- set {castle::gracz::%player%::invite} to true
- add 1 to {castle::invite::%{castle::gracz::%player%::arena}%}
- set {_num} to rounded up ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} / 2)
- send "{@prefix} &7Zaglosowales na start gry. &8[&e%{castle::invite::%{castle::gracz::%player%::arena}%}%&8/&6%{_num}%&8]"
- if {castle::invite::%{castle::gracz::%player%::arena}%} = {_num}:
- set {castle::status::%{castle::gracz::%player%::arena}%} to "odliczanie"
- loop {@czas odliczania} times:
- if (size of {castle::gracze::%{castle::gracz::%player%::arena}%::*}) = {castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%}:
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- play raw sound "note.pling" at loo-value with pitch 1 volume 5
- set {_x} to level of loop-value - 1
- set level of loop-value to {_x}
- wait 1 second
- else:
- exit loop
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- send "{@prefix} &cOdliczanie przerwane." to loop-value
- set level of loop-value to 0
- set {castle::status::%{castle::gracz::%player%::arena}%} to "oczekuje"
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- set {castle::gracz::%loop-value%::invite} to false
- add loop-value to {_y::*)
- play raw sound "note.pling" at loop-value-1 with pitch 2 volume 5
- send "{@prefix} &7Gra wystartowala!" to loop-value
- clear loop-value's inventory
- if player has permission "castle.vip":
- loop {castle::eqvip::*}:
- add loop-value-2 to loop-value-1's inventory
- else:
- loop {castle::eq::*}:
- add loop-value-2 to loop-value-1's inventory
- loop {castle::player::%loop-value-1%::inventory::*}:
- add loop-value-2 to loop-value-1's inventory
- set level of loop-value to 0
- set {_num} to rounded up ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} / 2)
- loop {_num} times:
- set {_x%loop-number%} to random element out of {_y::*)
- loop {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is not {_x%loop-number%}:
- add {_x%loop-number%} to {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}
- remove {_x%loop-index} from {_y::*)
- loop ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} - {_num}) times:
- set {_x%loop-number%} to random element out of {_y::*)
- loop {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is not {_x%loop-number%}:
- add {_x%loop-number%} to {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}
- remove {_x%loop-index} from {_y::*)
- teleport {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*} to {castle::arena::spawnRED::%{castle::gracz::%player%::arena}%}
- teleport {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*} to {castle::arena::spawnBLUE::%{castle::gracz::%player%::arena}%}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "w trakcie"
- loop {castle::gracz::%player%::inventory::*}:
- add loop-value to player's inventory
- else:
- send "{@prefix} &7Juz zaglosowales! &8[&e%{castle::invite::%{castle::gracz::%player%::arena}%}%&8/&6%{_num}%&8]"
- else:
- send "{@prefix} &7Gra jest w trakcie!"
- else:
- send "&8> &7Nie jestes na zadnej arenie."
- if arg 1 is "changeteam':
- if {castle::gracz::%player%::dolacz} is true:
- if arg 2 is "BLUE" or "RED":
- if arg 1 is "RED":
- set {_num} to rounded up ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} / 2)
- if (size of {castle::arena::teamRED::%{castle::gracz::%player%::arena}%}) < {_num}:
- remove player from {castle::arena::teamRED::%{castle::gracz::%player%::arena}%}
- remove player from {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%}
- add player to {castle::arena::teamRED::%{castle::gracz::%player%::arena}%}
- send "{@prefix} &7Zostales dodany do &cRED"
- else:
- send "{@prefix} &7Ta druzyna jest pelna!"
- if arg 1 is "BLUE":
- set {_num} to rounded up ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} / 2)
- if (size of {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%}) < {_num}:
- remove player from {castle::arena::teamRED::%{castle::gracz::%player%::arena}%}
- remove player from {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%}
- add player to {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%}
- send "{@prefix} &7Zostales dodany do &9BLUE"
- else:
- send "{@prefix} &7Ta druzyna jest pelna!"
- else:
- send "{@prefix} &7Uzycie: &6/castle changeteam &7<&6BLUE&8/&6RED&7>"
- else:
- send "&8> &7Nie jestes na zadnej arenie."
- if arg 1 is "seteq":
- if player has permission "castle.*":
- open chest with 3 rows named "&6Edytujesz zawartosc eq" to player
- wait 1 tick
- set {_slot} to 0
- loop {castle::eq::*}:
- set slot {_slot} of current inventory of player to loop-value-1
- add 1 to {_slot}
- set {castle::player::%player%::openedit} to "standard"
- send "{@prefix} &7Edytujesz zawartosc eq."
- while inventory name of player is "&6Edytujesz zawartosc eq":
- set {castle::player::%player%::openedit} to "standard"
- wait 5 tick
- stop
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "seteqvip":
- if player has permission "castle.*":
- open chest with 3 rows named "&6Edytujesz zawartosc eq vip" to player
- wait 1 tick
- set {_slot} to 0
- loop {castle::eqvip::*}:
- set slot {_slot} of current inventory of player to loop-value-1
- add 1 to {_slot}
- set {castle::player::%player%::openedit} to "vip"
- send "{@prefix} &7Edytujesz zawartosc eq."
- while inventory name of player is "&6Edytujesz zawartosc eq vip":
- set {castle::player::%player%::openedit} to "vip"
- wait 5 tick
- stop
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "deective":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- set {castle::status::%arg 2%} to "niedostepna"
- send "{@prefix} &7Dezaktywowano arene o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle deactive &7<&6ID&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "active":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- if {castle::arena::spawnLOBBY::%arg 2%} is set:
- if {castle::arena::spawnBLUE::%arg 2%} is set:
- if {castle::arena::spawnRED::%arg 2%} is set:
- set {castle::status::%arg 2%} to "oczekuje"
- send "{@prefix} &7Aktywowano arene o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Ustaw RED spawn areny, &6/castle setspawn RED &7<&6ID&7>"
- else:
- send "{@prefix} &7Ustaw BLUE spawn areny, &6/castle setspawn BLUE &7<&6ID&7>"
- else:
- send "{@prefix} &7Ustaw LOBBY areny, &6/castle setspawn LOBBY &7<&6ID&7>"
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle active &7<&6ID&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "setplayers":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- if arg 3 is set:
- set {castle::arena::minimumplayers::%arg 2%} to arg 3 parsed as integer
- send "{@prefix} &7Ustawiono &6%arg 3% &7graczy dla areny o o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Uzycie: &6/castle setplayers &7<&6ID&7> <&6liczba&7>"
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle setplayers &7<&6ID&7> <&6liczba&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "create":
- if player has permission "castle.*":
- add 1 to {castle::list::*}
- set {castle::arena::minimumplayers::%arg 2%} to 16
- set {_x} to size of {castle::list::*}
- set {castle::arena::id::%{_x}%} to true
- send "{@prefix} &7Utworzono arene o ID &6%size of {castle::list::*}%&7."
- set {castle::status::%{_x}%} to "niedostepna"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "remove":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- remove 1 from {castle::list::*}
- delete {castle::status::%arg 2%}
- delete {castle::arena::id::%arg 2%}
- delete {castle::arena::spawnLOBBY::%arg 2%}
- delete {castle::arena::spawnBLUE::%arg 2%}
- delete {castle::arena::spawnRED::%arg 2%}
- delete {castle::arena::minimumplayers::%arg 2%}
- send "{@prefix} &7Usunieto arene o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle remove &7<&6ID&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "list":
- send "{@prefix} &7Dostepne areny:"
- send " "
- if (size of {castle::list::*}) > 0:
- loop (size of {castle::list::*}) times:
- if {castle::status::%loop-number%} is "w trakcie":
- send "&8> &7ID &6%loop-number% &cW trakcie.."
- if {castle::status::%loop-number%} is "oczekuje":
- send "&8> &7ID &6%loop-number% &aOczekuje!"
- if {castle::status::%loop-number%} is "niedostepna":
- send "&8> &7ID &6%loop-number% &6Niedostepna."
- else:
- send "&8> &cBrak."
- if arg 1 is "top":
- if arg 2 is set:
- if arg 2 is "kill" or "death" or "win" or "pkt":
- send "&8>====={@prefix}&8====="
- send "&8> "
- send "&8> &7Top &6%arg 2%"
- set {_num} to size of {castle::gracz::%arg 2%::*}
- loop {_num} times:
- loop {castle::gracz::%arg 2%::*}:
- if {_v.%loop-number%} is not set:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- if loop-value is greater than {_v.%loop-number%}:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- remove {_v.%loop-number%} from {castle::gracz::%arg 2%::*}
- loop {_num} times:
- if loop-number is less than or equal to 5:
- send "&8> %loop-number%. &7%{_n.%loop-number%}% &8- &6%{_v.%loop-number%}%"
- set {castle::gracz::%arg 2%::%{_n.%loop-number%}%} to {_v.%loop-number%}
- else:
- send "{@prefix} &7Uzycie:"
- send "&8> &6/castle top kill"
- send "&8> &6/castle top death"
- send "&8> &6/castle top win"
- send "&8> &6/castle top pkt"
- else:
- send "{@prefix} &7Uzycie:"
- send "&8> &6/castle top kill"
- send "&8> &6/castle top death"
- send "&8> &6/castle top win"
- send "&8> &6/castle top pkt"
- if arg 1 is "stats":
- send "&8>====={@prefix}&8====="
- send " &6Twoje statystyki:"
- send "&8> &eZabojstwa&8: &c%{castle::gracz::kill::%player%}%"
- send "&8> &eSmierci&8: &c%{castle::gracz::death::%player%}%"
- send "&8> &eWygrane&8: &c%{castle::gracz::win::%player%}%"
- send "&8> &ePunkty&8: &c%{castle::gracz::pkt::%player%}%"
- send "&8>====={@prefix}&8====="
- if arg 1 is "setspawn":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- if arg 3 is set:
- if arg 3 is "BLUE" or "RED" or "LOBBY":
- set {castle::arena::spawn%arg 3%::%arg 2%} to location of player
- send "{@prefix} &7Ustawiono &6%arg 3% &7spawn dla areny o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Uzycie: &6/castle setspawn &7<&6ID&7> <&6BLUE&8/&6RED&8/&6LOBBY&7>"
- else:
- send "{@prefix} &7Uzycie: &6/castle setspawn &7<&6ID&7> <&6BLUE&8/&6RED&8/&6LOBBY&7>"
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle setspawn &7<&6ID&7> <&6BLUE&8/&6RED&8/&6LOBBY&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "debug":
- if player has permission "castle.*":
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- clear {castle::gracze::%arg 2%::*}
- loop all players:
- if {castle::gracz::%loop-player%::arena} is arg 2:
- execute loop-player command "/castle leave"
- send "{@prefix} &7Arena zostala zrestartowana." to loop-player
- set {castle::status::%arg 2%} to "oczekuje"
- send "{@prefix} &7Zrestartowano arene o ID &6%arg 2%&7."
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle debug &7<&6ID&7>"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "reload":
- if player has permission "castle.*":
- loop {castle::list::*} times:
- clear {castle::gracze::%loop-number%::*}
- loop all players:
- if {castle::gracz::%loop-player%::arena} is loop-number:
- execute loop-player command "/castle leave"
- send "{@prefix} &7Arena zostala zrestartowana." to loop-player
- set {castle::status::%loop-number%} to "oczekuje"
- execute player command "sk reload %script%"
- else:
- send "&cNie posiadasz uprawnien!"
- if arg 1 is "join":
- if {castle::gracz::%player%::dolacz} is false:
- if arg 2 is set:
- if {castle::arena::id::%arg 2%} is set:
- if {castle::status::%arg 2%} is "oczekuje":
- if (size of {castle::gracz::%arg 2%::*}) < {castle::arena::minimumplayers::%arg 2%}+1:
- set {castle::gracz::%player%::eq} to serialized inventory of player
- clear player's inventory
- set slot 0 of player to diamond named "&6Sklep"
- set slot 0 of player to blue wool named "&6Dolacz do &9BLUE"
- set slot 0 of player to red wool named "&6Dolacz do &cRED"
- set slot 8 of player to bone named "&6Wyjdz"
- teleport player to {castle::arena::spawnLOBBY::%arg 2%}
- set {castle::gracz::%player%::arena} to arg 2
- set {castle::gracz::%player%::dolacz} to true
- add player to {castle::gracze::%{castle::gracz::%player%::arena}%::*}
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- set level of loop-value to {@czas odliczania}+1
- send "{@prefix} &7Gracz &6%player% &7dolaczyl do gry. &8[&e%size of {castle::gracze::%{castle::gracz::%player%::arena}%::*}%&8/&6%{castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%}%&8]" to loop-value
- if (size of {castle::gracze::%{castle::gracz::%player%::arena}%::*}) = {castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%}:
- set {castle::status::%{castle::gracz::%player%::arena}%} to "odliczanie"
- loop {@czas odliczania} times:
- if (size of {castle::gracze::%{castle::gracz::%player%::arena}%::*}) = {castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%}:
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- play raw sound "note.pling" at loo-value with pitch 1 volume 5
- set {_x} to level of loop-value - 1
- set level of loop-value to {_x}
- wait 1 second
- else:
- exit loop
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- send "{@prefix} &cOdliczanie przerwane." to loop-value
- set level of loop-value to 0
- set {castle::status::%{castle::gracz::%player%::arena}%} to "oczekuje"
- if (size of {castle::gracze::%{castle::gracz::%player%::arena}%::*}) = {castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%}:
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- set {castle::gracz::%loop-value%::invite} to false
- add loop-value to {_y::*)
- play raw sound "note.pling" at loop-value-1 with pitch 2 volume 5
- send "{@prefix} &7Gra wystartowala!" to loop-value
- clear loop-value's inventory
- if player has permission "castle.vip":
- loop {castle::eqvip::*}:
- add loop-value-2 to loop-value-1's inventory
- else:
- loop {castle::eq::*}:
- add loop-value-2 to loop-value-1's inventory
- loop {castle::player::%loop-value-1%::inventory::*}:
- add loop-value-2 to loop-value-1's inventory
- set level of loop-value to 0
- set {_num} to rounded up ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} / 2)
- loop {_num} times:
- set {_x%loop-number%} to random element out of {_y::*)
- loop {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is not {_x%loop-number%}:
- add {_x%loop-number%} to {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}
- remove {_x%loop-index} from {_y::*)
- loop ({castle::arena::minimumplayers::%{castle::gracz::%player%::arena}%} - {_num}) times:
- set {_x%loop-number%} to random element out of {_y::*)
- loop {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is not {_x%loop-number%}:
- add {_x%loop-number%} to {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}
- remove {_x%loop-index} from {_y::*)
- teleport {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*} to {castle::arena::spawnRED::%{castle::gracz::%player%::arena}%}
- teleport {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*} to {castle::arena::spawnBLUE::%{castle::gracz::%player%::arena}%}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "w trakcie"
- stop
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7jest pelna."
- else if {castle::status::%arg 2%} is "w trakcie":
- send "{@prefix} &7Arena o ID &6%arg 2% &7jest w trakcie grania."
- else if {castle::status::%arg 2%} is "niedostepna":
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie jest dostepna."
- else:
- send "{@prefix} &7Arena o ID &6%arg 2% &7nie istnieje."
- else:
- send "{@prefix} &7Uzycie: &6/castle join &7<&6ID&7>"
- else:
- send "{@prefix} &7Jestes juz na arenie."
- if arg 1 is "leave":
- if {castle::gracz::%player%::dolacz} is true:
- clear player's inventory
- restore inventory of player from {castle::gracz::%player%::eq}
- set {castle::gracz::%player%::dolacz} to false
- teleport player to {spawn}
- set level of player to 0
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- send "{@prefix} &7Gracz &6%player% &7opuscil gre. &8[&e%size of {castle::gracze::%{castle::gracze::%player%::arena}%::*}%&8/&6%{castle::arena::minimumplayers::%arg 2%}%&8]" to loop-value
- loop {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is victim:
- remove victim from {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is victim:
- remove victim from {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}
- if {castle::status::%arg 2%} is "w trakcie":
- if (size of {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}) = 0:
- loop {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}:
- clear loop-value's inventory
- restore inventory of loop-value from {castle::gracz::%victim%::eq}
- add 1 to {castle::gracz::win::%loop-value%}
- launch flickering trailing ball firework colored green at loop-value timed 1
- set level of loop-value to 0
- set {castle::gracz::%loop-value%::dolacz} to false
- clear {castle::gracz::%loop-value%::arena}
- if loop-value has permission "castle.vip":
- add {@vip coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&6100 pkt&8]" to loop-value
- else:
- add {@coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&650 pkt&8]" to loop-value
- wait 5 seconds
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- teleport loop-value to {spawn}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "niedostepna"
- clear {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}
- clear {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}
- clear {castle::gracze::%{castle::gracz::%loop-value%::arena}%::*}
- loop {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}:
- set block at loop-value to {castle::rebuild::type::%{castle::gracz::%player%::arena}%::%loop-index%}
- wait 2 tick
- delete {castle::rebuild::type::%{castle::gracz::%player%::arena}%::*}
- delete {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "oczekuje"
- if (size of {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}) = 0:
- loop {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}:
- clear loop-value's inventory
- restore inventory of loop-value from {castle::gracz::%victim%::eq}
- add 1 to {castle::gracz::win::%loop-value%}
- launch flickering trailing ball firework colored green at loop-value timed 1
- set level of loop-value to 0
- set {castle::gracz::%loop-value%::dolacz} to false
- clear {castle::gracz::%loop-value%::arena}
- if loop-value has permission "castle.vip":
- add {@vip coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&6100 pkt&8]" to loop-value
- else:
- add {@coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&650 pkt&8]" to loop-value
- wait 5 seconds
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- teleport loop-value to {spawn}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "niedostepna"
- clear {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}
- clear {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}
- clear {castle::gracze::%{castle::gracz::%loop-value%::arena}%::*}
- loop {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}:
- set block at loop-value to {castle::rebuild::type::%{castle::gracz::%player%::arena}%::%loop-index%}
- wait 2 tick
- delete {castle::rebuild::type::%{castle::gracz::%player%::arena}%::*}
- delete {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}
- set {castle::status::%{castle::gracz::%player%::arena}%} to "oczekuje"
- else:
- send "&8> &7Nie jestes na zadnej arenie."
- on damage of player:
- if attacker is a player:
- if {castle::gracz::%attacker%::dolacz} is true:
- if {castle::gracz::%victim%::dolacz} is true:
- loop {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is attacker:
- loop {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value-2 is victim:
- cancel event
- stop
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is attacker:
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value-2 is victim:
- cancel event
- stop
- on death of player:
- if {castle::gracz::%victim%::dolacz} is true:
- teleport victim to {spawn}
- restore inventory of victim from {castle::gracz::%victim%::eq}
- set {castle::gracz::%victim%::dolacz} to false
- set level of victim to 0
- add 1 to {castle::gracz::death::%victim%}
- if attacker is a player:
- if {castle::gracz::%attacker%::dolacz} is true:
- add 1 to {castle::gracz::kill::%attacker%}
- loop {castle::gracze::%{castle::gracz::%victim%::arena}%::*}:
- send "{@prefix} &7Gracz &6%victim% &7zostal zabity przez &6%attacker%&7! &8[&e%size of {castle::gracze::%{castle::gracze::%victim%::arena}%::*}%&8/&6%{castle::arena::minimumplayers::%arg 2%}%&8]" to loop-value
- loop {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is victim:
- remove victim from {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- if loop-value is victim:
- remove victim from {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}
- if (size of {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}) = 0:
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- clear loop-value's inventory
- restore inventory of loop-value from {castle::gracz::%victim%::eq}
- add 1 to {castle::gracz::win::%loop-value%}
- launch flickering trailing ball firework colored green at loop-value timed 1
- set level of loop-value to 0
- set {castle::gracz::%loop-value%::dolacz} to false
- clear {castle::gracz::%loop-value%::arena}
- if loop-value has permission "castle.vip":
- add {@vip coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&6100 pkt&8]" to loop-value
- else:
- add {@coins}{@vip coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&650 pkt&8]" to loop-value
- wait 5 seconds
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- teleport loop-value to {spawn}
- set {castle::status::%{castle::gracz::%victim%::arena}%} to "niedostepna"
- clear {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}
- clear {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}
- clear {castle::gracze::%{castle::gracz::%loop-value%::arena}%::*}
- loop {castle::rebuild::location::%{castle::gracz::%victim%::arena}%::*}:
- set block at loop-value to {castle::rebuild::type::%{castle::gracz::%victim%::arena}%::%loop-index%}
- wait 2 tick
- delete {castle::rebuild::type::%{castle::gracz::%victim%::arena}%::*}
- delete {castle::rebuild::location::%{castle::gracz::%victim%::arena}%::*}
- set {castle::status::%{castle::gracz::%victim%::arena}%} to "oczekuje"
- if (size of {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}) = 0:
- loop {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}:
- clear loop-value's inventory
- restore inventory of loop-value from {castle::gracz::%victim%::eq}
- add 1 to {castle::gracz::win::%loop-value%}
- launch flickering trailing ball firework colored green at loop-value timed 1
- set level of loop-value to 0
- set {castle::gracz::%loop-value%::dolacz} to false
- clear {castle::gracz::%loop-value%::arena}
- if loop-value has permission "castle.vip":
- add {@vip coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&6100 pkt&8]" to loop-value
- else:
- add {@coins} to {castle::gracz::pkt::%loop-value%}
- send "{@prefix} &7Twoja druzyna wygrala! &8[&7+&650 pkt&8]" to loop-value
- wait 5 seconds
- loop {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}:
- teleport loop-value to {spawn}
- set {castle::status::%{castle::gracz::%victim%::arena}%} to "niedostepna"
- clear {castle::arena::teamRED::%{castle::gracz::%victim%::arena}%::*}
- clear {castle::arena::teamBLUE::%{castle::gracz::%victim%::arena}%::*}
- clear {castle::gracze::%{castle::gracz::%loop-value%::arena}%::*}
- loop {castle::rebuild::location::%{castle::gracz::%victim%::arena}%::*}:
- set block at loop-value to {castle::rebuild::type::%{castle::gracz::%victim%::arena}%::%loop-index%}
- wait 2 tick
- delete {castle::rebuild::type::%{castle::gracz::%victim%::arena}%::*}
- delete {castle::rebuild::location::%{castle::gracz::%victim%::arena}%::*}
- set {castle::status::%{castle::gracz::%victim%::arena}%} to "oczekuje"
- every 1 seconds:
- loop all players:
- loop all blocks in radius 10 of loop-player:
- if loop-block is sign:
- if line 1 of loop-block is "{@prefix}":
- if line 2 of loop-block is set:
- if {castle::arena::id::%uncolored line 2 of loop-block%} is set:
- if {castle::status::%uncolored line 2 of loop-block%} is "oczekuje":
- set line 3 of loop-block to "&aOczekuje"
- set line 4 of loop-block to "&8[&e%size of {castle::gracze::%uncolored line 2 of loop-block%::*}%&8/&6%{castle::arena::minimumplayers::%uncolored line 2 of loop-block%}%&8]"
- else if {castle::status::%uncolored line 2 of loop-block%} is "w trakcie":
- set line 3 of loop-block to "&cW trakcie"
- set line 4 of loop-block to "&8[&e%size of {castle::gracze::%uncolored line 2 of loop-block%::*}%&8/&6%{castle::arena::minimumplayers::%uncolored line 2 of loop-block%}%&8]"
- else if {castle::status::%uncolored line 2 of loop-block%} is "odliczanie":
- set line 3 of loop-block to "&eOdliczanie"
- set line 4 of loop-block to "&8[&e%size of {castle::gracze::%uncolored line 2 of loop-block%::*}%&8/&6%{castle::arena::minimumplayers::%uncolored line 2 of loop-block%}%&8]"
- else if {castle::status::%uncolored line 2 of loop-block%} is "niedostepna":
- set line 3 of loop-block to "&6Niedostepna"
- set line 4 of loop-block to " "
- on inventory close:
- if {castle::player::%player%::openedit} is "standard":
- clear {castle::eq::*}
- loop 27 times:
- if slot "%loop-number - 1%" parsed as an integer of current inventory of player is not air:
- set {_item} to slot loop-number - 1 of current inventory of player
- add {_item} to {castle::eq::*}
- clear {castle::player::%player%::openedit}
- send "{@prefix} &7Zapisano."
- else if {castle::player::%player%::openedit} is "vip":
- clear {castle::eqvip::*}
- loop 27 times:
- if slot "%loop-number - 1%" parsed as an integer of current inventory of player is not air:
- set {_item} to slot loop-number - 1 of current inventory of player
- add {_item} to {castle::eqvip::*}
- clear {castle::player::%player%::openedit}
- send "{@prefix} &7Zapisano."
- on quit:
- if {castle::gracz::%player%::dolacz} is true:
- execute player command "castle leave"
- on sign change:
- if line 1 is "castle":
- set line 1 to "{@prefix}"
- if line 2 is set:
- if {castle::arena::id::%line 2%} is set:
- set line 2 to "&l%line 2%"
- else:
- set line 2 to "&c<none>"
- on rightclick:
- if event-block is sign:
- if line 1 of clicked block is "{@prefix}":
- if line 2 of clicked block is set:
- if {castle::arena::id::%uncolored line 2 of clicked block%} is set:
- execute player command "/castle join %uncolored line 2 of clicked block%"
- if player's tool is diamond:
- if name of player's tool is "&6Sklep":
- execute player command "castle gui"
- if player's tool is bone:
- if name of player's tool is "&6Wyjdz":
- execute player command "castle leave"
- if player's tool is red wool:
- if name of player's tool is "&6Dolacz do &cRED":
- execute player command "castle changeteam RED"
- if player's tool is blue wool:
- if name of player's tool is "&6Dolacz do &9BLUE":
- execute player command "castle changeteam BLUE"
- on chat:
- if {castle::gracz::%player%::dolacz} is true:
- cancel event
- if {castle::status::%{castle::gracz::%player%::arena}%} is "oczekuje":
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- send "%colored displayname of player%&8: &7%colored message%" to loop-value
- if {castle::status::%{castle::gracz::%player%::arena}%} is "w trakcie":
- set {_} to first 1 characters of message
- if {_} is "!":
- loop {castle::gracze::%{castle::gracz::%player%::arena}%::*}:
- send "%colored displayname of player%&8: &e%colored message%" to loop-value
- else:
- loop {castle::arena::teamRED::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is player:
- send "%colored displayname of player%&8: &a%colored message%" to loop-value
- stop
- loop {castle::arena::teamBLUE::%{castle::gracz::%player%::arena}%::*}:
- if loop-value is player:
- send "%colored displayname of player%&8: &a%colored message%" to loop-value
- stop
- on explode:
- wait 1 tick
- loop exploded blocks:
- add location of loop-block to {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}
- add air to {castle::rebuild::type::%{castle::gracz::%player%::arena}%::*}
- on place:
- if {castle::gracz::%player%::dolacz} is true:
- if {castle::status::%{castle::gracz::%player%::arena}%} is "w trakcie":
- if region at player is not "castle.%{castle::gracz::%player%::arena}%":
- loop {castle::%{castle::gracz::%player%::arena}%::rebuild::location}:
- if loop-value is not location of event-block:
- add location of loop-block to {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}
- add air to {castle::rebuild::type::%{castle::gracz::%player%::arena}%::*}
- stop
- else:
- if event-block is tnt:
- if {castle::arena::wait::%{castle::gracz::%player%::arena}%} > 0:
- send "{@prefix} &cTNT bedzie mozna stawiac za %{castle::arena::wait::%{castle::gracz::%player%::arena}%}%"
- else if {castle::arena::wait::%{castle::gracz::%player%::arena}%} = 0:
- set {castle::arena::wait::%{castle::gracz::%player%::arena}%} to 120
- on break:
- if {castle::gracz::%player%::dolacz} is true:
- if {castle::status::%{castle::gracz::%player%::arena}%} is "w trakcie":
- if region at player is not "castle.%{castle::gracz::%player%::arena}%":
- add location of loop-block to {castle::rebuild::location::%{castle::gracz::%player%::arena}%::*}
- add air to {castle::rebuild::type::%{castle::gracz::%player%::arena}%::*}
- on command "/setspawn":
- set {spawn} to location of player
Advertisement
Add Comment
Please, Sign In to add comment