variables: {cub.set.%player%} = false {cub.%player%} = 0 options: tag: &l&3[&cCuboid&3] #Tag skryptu world: world #Na jakim swiecie mozna robic cuboidy. Jezeli ma byc to np nether, wpisz world_nether dzialka.size: 35 #Rozmiar dzialki, mozna zmienic spawn.distance: 10 #Od ilu kratek od spawnu mozna robic cuboidy, mozna zmienic command /cub [] []: aliases: cuboid trigger: if arg-1 isn't set: send "&c[&6***** &3[&cCuboid&3] &6*****&c]" send "&a/cub stworz &3- Tworzy cuboid" send "&a/cub info &3- Pokazuje informacje o cubie" send "&a/cub usun &3- Usuwa teren" send "&a/cub dodaj &3- dodaje gracza do cuba" send "&a/cub wyrzuc &3 usuwa gracza z cuba" send "&c[&6***** &3[&cCuboid&3] &6*****&c]" if arg-1 is "setspawn": if player has permissions "cuboid.admin" or "cuboid.*": if player's world is "{@world}": set {cuboid.spawn.%world%} to location of player send "{@tag} Ustawiono punkt spawnu!" stop else: send "{@tag} &3Nie masz pozwolenia do tej komendy!" stop if arg-1 is "stworz": if player's world isn't "{@world}": send "&aNie mozesz tego tu uzyc!" stop if {cuboid.%player%} is 1: send "{@tag}&3 Masz juz cuboid, kup vipa aby miec 2" stop if player has permission "vip": if {cuboid.%player%} is 1: send "{@tag} Masz juz 2 cuboidy, idz graj w niebieskiego wieloryba" stop if distance between {cuboid.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2: send "{@tag}&3 Jestes za blisko spawnu!" stop else: if player has permission "vip": if {cuboid.%player%} is 0: if {cuboid.spawn.%world%} is set: if distance between {cuboid.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2: player cannot build at block under player: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren pod Toba jest juz zajety" stop player cannot build at block {@dzialka.size} meters northwest: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren polnocny-zachod jest juz zajety" stop player cannot build at block {@dzialka.size} meters north: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na polnoc stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters northeast: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters west: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters east: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters southwest: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters south: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters southeast: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety" stop send "{@tag} &3Trwa zakladanie terenu !" execute player command "//pos1" execute player command "//pos2" execute player command "//expand {@dzialka.size} n" execute player command "//expand {@dzialka.size} s" execute player command "//expand {@dzialka.size} w" execute player command "//expand {@dzialka.size} e" execute player command "//expand vert" execute player command "rg define %name of player%" execute player command "rg flag %player% entry deny" execute player command "rg addowner %player% %player%" execute player command "rg flag %player% greeting &3Wchodzisz na teren gracza &a%player%" execute player command "rg flag %player% farewell &3Opuszczasz teren gracza &c%player%" execute player command "rg flag %player% other-explosion deny" execute player command "rg flag %player% creeper-explosion deny" execute player command "rg flag %player% tnt deny" execute player command "rg addmember %player% %player%" execute player command "//pos1" execute player command "//pos2" add 1 to {cuboid.%player%} loop 99 times: send "" wait 1 second send "{@tag} &cCuboid zostal pomyslnie zalozony!" send "{@tag} &3Pamietaj o zapisaniu &a/sethome &3!" execute player command "pex user %player% add wlasciciel.cuboid.*" stop else: if {cuboid.%player%} is 1: if player has permission "vip": if {cuboid.spawn.%world%} is set: if distance between {cuboid.spawn.%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2: player cannot build at block under player: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren pod Toba jest juz zajety" stop player cannot build at block {@dzialka.size} meters northwest: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren polnocny-zachod jest juz zajety" stop player cannot build at block {@dzialka.size} meters north: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na polnoc stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters northeast: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na polnocny-wschod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters west: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na zachod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters east: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na wschod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters southwest: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludniowy-zachod stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters south: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludnie stad jest juz zajety" stop player cannot build at block {@dzialka.size} meters southeast: send "{@tag} &3Nie mozesz tutaj stworzyc dzialki! Teren na poludniowy-wschod stad jest juz zajety" stop send "{@tag} &3Trwa zakladanie terenu !" execute player command "//pos1" execute player command "//pos2" execute player command "//expand {@dzialka.size} n" execute player command "//expand {@dzialka.size} s" execute player command "//expand {@dzialka.size} w" execute player command "//expand {@dzialka.size} e" execute player command "//expand vert" execute player command "rg define %uuid of player%" execute player command "rg flag %player% entry deny" execute player command "rg addowner %player% %player%" execute player command "rg flag %player% greeting &3Wchodzisz na teren gracza &a%player%" execute player command "rg flag %player% farewell &3Opuszczasz teren gracza &c%player%" execute player command "rg flag %player% other-explosion deny" execute player command "rg flag %player% creeper-explosion deny" execute player command "rg flag %player% tnt deny" execute player command "rg addmember %player% %uuid of player%" execute player command "//pos1" execute player command "//pos2" add 2 to {cuboid.%player%} loop 99 times: send "" wait 1 second send "{@tag} &cCuboid zostal pomyslnie zalozony!" send "{@tag} &3Pamietaj o zapisaniu &a/sethome &3!" execute player command "pex user %player% add wlasciciel.cuboid.*" stop if arg-1 is "usun": if arg-2 isn't set: send "/cuboid usun <1/2>" stop if player doesn't have permission "wlasciciel.cuboid.*": send "&cBrak cuboida" stop else: if arg-2 is "1": execute player command "rg remove -w %world of player% %player%" send "{@tag} &3Teren zostal usuniety" stop if arg-2 is "2": execute player command "rg remove -w %world of player% %uuid of player%" send "Usunieto drugi teren" stop if arg 1 is "dodaj": if player has permission "wlasciciel.cuboid.*": if arg 2 isn't empty: execute player command "rg addmember -w %world of player% %name of player% %arg 2%" wait 1 second send "{@tag} &3Gracz &a%arg 2% &3zostal dodany do twojego cuboidu!" stop else: send "&3Podaj nick &agracza &3ktorego chcesz dodac do cuboidu" stop if arg 1 is "wyrzuc": if player has permission "wlasciciel.cuboid.*": if arg 2 is not empty: execute player command "rg removemember %player% %arg 2%" wait 1 second send "{@tag} &3Gracz &a%arg 2% &3zostal usuniety z twojego cuboidu!" stop else: send "&3Gracz o takim &anicku &3nie jest dodany do twojego cuboidu" stop if arg 1 is "info": execute player command "rg info %player%" stop