variables: {teren.%player%} = true options: teren: 15 on place: if block is a end portal frame named "&7Blok &6&lTerenu" with lore "&7Postaw aby zrobic &6Teren": send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &a&lTeren jest w trakcie tworzenia!" execute console command "pex user %player% add *" execute player command "//pos1" execute player command "//pos2" execute player command "//expand {@teren} n" execute player command "//expand {@teren} e" execute player command "//expand {@teren} s" execute player command "//expand {@teren} w" execute player command "//expand vert" execute player command "rg define teren-%player%" execute player command "rg addowner teren-%player% %player%" execute player command "rg flag teren-%player% greeting &cWchodzisz na teren gracza &e%player%" execute player command "rg flag teren-%player% farewell &aOpuszczasz teren gracza %player%" execute player command "rg flag teren-%player% pvp deny" execute player command "//pos1" execute player command "//pos2" execute console command "pex user %player% remove *" execute console command "pex user %player% add teren-%player%" loop 138 times: send "" to player wait 0.2 send " &a&lTeren zostal Zalozony!" send "&e(&3 - &e) &8&m &e (&3 - &e)" to player stop on leftclick: if player has permission "teren-%player%": if block is a end portal frame named "&7Blok &6&lTerenu" with lore "&7Postaw aby zrobic &6Teren": if tool is golden pickaxe named "&7Kilof &6&lTerenu": send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &a&lTeren jest w trakcie usuwania!" set block to air execute console command "pex user %player% add *" execute player command "rg remove teren-%player%" execute console command "pex user %player% remove *" execute console command "pex user %player% remove teren-%player%" give 1 end portal frame named "&7Blok &6&lTerenu" with lore "&7Postaw aby zrobic &6Teren" to player loop 138 times: send "" to player wait 0.2 send " &a&lTeren zostal Usuniety!" send "&e(&3 - &e) &8&m &e (&3 - &e)" to player command /teren [] []: trigger: if arg 1 is not set: send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &aAby dostac swoj teren wpisz: &3/teren daj" send " &aAby zalozyc swoj wlasny &3Teren" send " &apoloz na ziemi &7Blok &6&lTerenu." send " &aAby dodac kogos do swojego" send " &aterenu wpisz: &3/teren dodaj " send " &aAby usunac kogos z swojego" send " &aterenu wpisz: &3/teren usun " send "&e(&3 - &e) &8&m &e (&3 - &e)" to player if arg 1 is "daj": if {teren.%player%} is true: give 1 end portal frame named "&7Blok &6&lTerenu" with lore "&7Postaw aby zrobic &6Teren" to player give 1 golden pickaxe named "&7Kilof &6&lTerenu" to player send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &aDostales swoj &3Teren&a!" to player send " &aPamietaj ze &3/teren daj" to player send " &ajest jednorazowego uzytku!" to player send "&e(&3 - &e) &8&m &e (&3 - &e)" to player wait 1 second set {teren.%player%} to false else: send "&c&lBLAD&r &aJuz dostales swoj &3Teren&a!" to player if arg 1 is "dodaj": if arg 2 is not set: send "&c&lBLAD&r &aPodaj nick gracza" to player if arg 2 is set: if player has permission "teren-%player%": send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &aPoprawnie dodales &3%player-arg%" to player send " &aGracz &3%player% &adodal Cie do swojej dzialki!" to player-arg send "&e(&3 - &e) &8&m &e (&3 - &e)" to player execute console command "pex user %player% add *" execute player command "rg addowner teren-%player% %player-arg%" execute console command "pex user %player% remove *" else: send "&c&lBLAD&r &aNie posiadasz &3Terenu&a!" to player if arg 1 is "usun": if player has permission "teren-%player%": send "&c&lBLAD&r &aPodaj nick gracza" to player if arg 2 is set: send "&e(&3 - &e) &8&m &7&l << &3MEE.NOIP.ME &7&l>> &8&m &e (&3 - &e)" to player send " &aPoprawnie usunoles &e%player-arg%" to player send " &aGracz &3%player% &ausunol Cie z dzialki" to player-arg send "&e(&3 - &e) &8&m &e (&3 - &e)" to player execute console command "pex user %player% add *" execute player command "rg removeowner teren-%player% %player-arg%" execute console command "pex user %player% remove *"