# Strefa konfiguracji variables: {cub.set.%player%} = false 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 # Strefa konfiguracji command /cub [] []: aliases: cuboid trigger: if arg 1 is not 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 is "{@world}": 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 !" set {cub.set.%player%} to true make console execute command "pex user %player% add worldguard.*" make console execute command "pex user %player% add worldedit.*" execute player command "//pos1" execute player command "//pos2" execute player command "//expand {@dzialka.size} n" execute player command "//expand {@dzialka.size} e" execute player command "//expand {@dzialka.size} s" execute player command "//expand {@dzialka.size} w" execute player command "//expand vert" execute player command "rg define %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% mob-damage deny" execute player command "rg flag %player% mob-spawning deny" execute player command "rg flag %player% pvp deny" execute player command "rg flag %player% tnt deny" execute player command "rg addmember %player% %player%" execute player command "//pos1" execute player command "//pos2" make console execute command "pex user %player% remove worldguard.*" make console execute command "pex user %player% remove worldedit.*" loop 99 times: send "" wait 1 second send "{@tag} &cCuboid zostal pomyslnie zalozony!" send "{@tag} &3Pamietaj o zapisaniu &a/sethome &3!" make console execute command "pex user %player% add wlasciciel.cuboid.*" stop else: send "{@tag} &eJestes blisko spawnu, nie mozesz zalozyc cuboida!" stop if arg 1 is "usun": if player has permission "wlasciciel.cuboid.*": make console execute command "rg remove -w %world of player% %player%" send "{@tag} &3Teren zostal usuniety" stop if arg 1 is "dodaj": if player has permission "wlasciciel.cuboid.*": if arg 2 is not empty: make console execute 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: make console execute 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": make console execute command "pex user %name of player% add worldguard.*" execute player command "rg info %player%" make console execute command "pex user %name of player% remove worldguard.*" stop on command "cuboid stworz" or "cub stworz": if {cub.set.%player%} is true: cancel event send "{@tag} &3Posiadasz juz swoj teren!"