variables: {Dolacz.Castle} = 0 {Red.Castle} = 0 {Blue.Castle} = 0 {Poczekalnia.Castle} = 0 {castlenazwa.%player%} = 0 {red.max.join} = true {blue.max.join} = true command /castles [] [] []: trigger: arg 1 is "create": arg 2 is set: if {castle::arena::nazwa::%arg 2%} is set: send "&6Castle -> Arena o takiej nazwie juz istnieje!" stop else: add arg 2 to {castle::list::*} set {castle::arena::minimumplayers::%arg 2%} to 12 set {castle::arena::nazwa::%arg 2%} to true send "&6Castle -> Arena o nazwie %arg 2% zostala stworzona" set {castle::status::%arg 2%} to "niedostepna" arg 2 is not set: send "&6Castle -> Aby stworzyc arene musisz podac jej nazwe!" arg 1 is "delete": arg 2 is set: if {castle::arena::nazwa::%arg 2%} is set: remove arg 2 from {castle::list::*} delete {castle::status::%arg 2%} delete {castle::arena::nazwa::%arg 2%} loop {castle::arena::minimumplayers::%arg 2%} times: delete {castle::arena::spawn%loop-number%::%arg 2%} send "&6Castle -> Arena o nazwie %arg 2% zostala usnieta!" else: send "&6Castle -> Areny o takiej nazwie nie ma w bazie danych!" else: send "&6Castle -> Nie podales nazwy areny!" arg 1 is "lista": send "&6-<>-[Lista Aren]-<>-" send "&6%{castle::list::*}%" arg 1 is "join": arg 2 is set: if {castle::arena::nazwa::%arg 2%} is set: teleport player to {Poczekalnia.Castle} add 1 to {Castle::join} broadcast "&6Castle -> &3Gracz dolonczyl do areny &7(&e%{Castle::join}%&7/12)" if {Castle::join} is 12: clear {Castle::join} set {castle::arena::start} to true if {castle::arena::start::%arg 2%} is true: set {red::6} to true set {blue::6} to true if {red::6} is true: teleport player to {Red.Castle} execute server command "/CKIT RED %player%" if {blue::6} is true: teleport player to {Blue.Castle} execute server command "/CKIT RED %player%" else: send "&6Castle -> Areny o takiej nazwie nie ma w bazie danych!" else: send "&6Castle -> Nie podales Areny!" arg 1 is "gui": open chest with 1 rows named "&6Menu CastleMOD" to player wait 1 tick format slot 0 of player with 1 of 35:14 named "&cDruzyna RED" with lore "&cKliknij aby dolonczyc do druzyny Atakujacej!" to run "sudo %player% redjoin" format slot 1 of player with 1 of 35:11 named "&9Druzyna BLUE" with lore "&9Kliknij aby dolonczyc do druzyny Obroniajacej!" to run "sudo %player% bluejoin" arg 1 is "setspawn": arg 2 is set: arg 3 is "blue": if {castle::arena::nazwa::%arg 2%} is set: set {Red.Castle} to location of player send "&6Castle -> Ustawiles spawn blue dla areny %arg 3%" arg 3 is "red": if {castle::arena::nazwa::%arg 2%} is set: set {Red.Castle} to location of player send "&6Castle -> Ustawiles spawn red dla areny %arg 3%" else: send "&6Castle -> Takiej areny nie ma w bazie danych!" else: send "&6Castle -> Nie podales nazwy areny!" command /redjoin: trigger: set {red::6} to player add 1 to {red::join} send "&cDolonczyles do druzyny Atakujacej &7(&e%{join::red}%&7/6)" if {red::join} is 6: clear {red::join} set {red.max.join} to false wait 100 second set {red.max.join} to true command /bluejoin: trigger: set {blue::6} to player add 1 to {blue::join} send "&9Dolonczyles do druzyny Obraniajacej &7(&e%{join::blue}%&7/6)" if {blue::join} is 6: clear {blue::join} set {blue.max.join} to false wait 100 second set {blue.max.join} to true command /ckit [] []: trigger: arg 1 is "red": execute server command "give %arg 2% 310 1 protection:4" execute server command "give %arg 2% 311 1 protection:4" execute server command "give %arg 2% 312 1 protection:4" execute server command "give %arg 2% 313 1 protection:4" execute server command "give %arg 2% 322:1 2" execute server command "give %arg 2% 373:8265 1" execute server command "give %arg 2% 322 5" execute server command "give %arg 2% diamond_sword 1 sharpness:5 fireaspect:2" execute server command "give %arg 2% diamond_pickaxe 1 efficiency:5" execute server command "give %arg 2% bow 1 power:4 infinity:1 flame:1" execute server command "give %arg 2% arrow 1" execute server command "give %arg 2% tnt 32" execute server command "give %arg 2% cobblestone 64" arg 1 is "blue": execute server command "give %arg 2% 310 1 protection:4" execute server command "give %arg 2% 311 1 protection:4" execute server command "give %arg 2% 312 1 protection:4" execute server command "give %arg 2% 313 1 protection:4" execute server command "give %arg 2% 322:1 2" execute server command "give %arg 2% 373:8265 1" execute server command "give %arg 2% 322 5" execute server command "give %arg 2% diamond_sword 1 sharpness:5 fireaspect:2" execute server command "give %arg 2% diamond_pickaxe 1 efficiency:5" execute server command "give %arg 2% bow 1 power:4 infinity:1 flame:1" execute server command "give %arg 2% arrow 1" execute server command "give %arg 2% cobblestone 64" ==================== =Skrypt by janek909= =Version: BETA 0.1 = ====================