options: tag: &1&l[&6Teren&1&l] teren: 30 # Wielkosc terenu w tym przypadku to bedzie 30x30 command /teren [] []: trigger: if arg 1 is not set: send "&a======== &7[&6Teren&7] &a=======" send "&e/teren info &6Pokazuje informacje o twoim terenie" send "&e/teren stworz &6Zakladasz teren" send "&e/teren usun &6Usuwasz teren" send "&e/teren dodaj &6Dodaje gracza do terenu" send "&e/teren wyrzuc &6Wyrzuca gracza z terenu" send "&e/teren flagi &6Lista dostepnych flag" send "&a======== &7[&6Teren&7] &a=======" stop if arg 1 is "stworz": send "{@tag} &3Trwa zakladanie terenu !" 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 {@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 %player%" execute player command "rg flag %player% greeting &cWchodzisz na teren gracza %player%" execute player command "rg flag %player% farewell &aOpuszczasz teren gracza %player%" 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 addowner %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.*" send "{@tag} &3Teren zostal zalozony !" make console execute command "pex user %player% add teren.lider" stop if arg 1 is "usun": if player has permission "teren.lider": 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 permissions "teren.lider": if arg 2 is not empty: make console execute command "rg addmember -w %world of player% %name of player% %arg 2%" wait 1 tick send "{@tag} &3Gracz &c%arg 2% &3zostal dodany do twojego terenu !" stop if arg 1 is "wyrzuc": if player has permissions "teren.lider": if arg 2 is not empty: make console execute command "rg removemember -w %player% %name of player% %arg 2%" wait 1 tick send "{@tag} &3Gracz &c%arg 2% &3zostal wyrzucony z twojego terenu !" stop if arg 1 is "info": if player has permission "teren.gracz": make console execute command "pex user %player% add worldguard.*" execute player command "/rg info %player%" make console execute command "pex user %player% remove worldguard.*" stop if arg 1 is "flagi": send "&e/teren spawnmob &cwlacz&e/&cwylacz &7- &6Spawnowanie potworow" send "&e/teren damagemob &cwlacz&e/&cwylacz &7- &6Obrazenia od potworow" send "&e/teren pvp &cwlacz&e/&cwylacz &7- &6PVP na twoim terenie" send "&e/teren tnt &cwlacz&e/&cwylacz &7- &6Szkody przez TNT" send "&e/teren skrzynie &cwlacz&e/&cwylacz &7- &6Otwieranie skrzynek przez innych graczy" send "&e/teren ogien &cwlacz&e/&cwylacz &7- &6Podpalanie na twoim terenie" send "&e/teren lava &cwlacz&e/&cwylacz &7- &6Obrazenia po wpadnieciu do lavy" stop if arg 1 is "spawnmob": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% mob-spawning allow" send "{@tag} &3Spawnowanie mobow zostalo wlaczone !" stop if arg 1 is "spawnmob": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% mob-spawning deny" send "{@tag} &3Spawnowanie mobow zostalo wylaczone !" stop if arg 1 is "damagemob": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% mob-damage allow" send "{@tag} &3Spawnowanie mobow zostalo wlaczone !" stop if arg 1 is "damagemob": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% mob-damage deny" send "{@tag} &3Spawnowanie mobow zostalo wylaczone !" stop if arg 1 is "pvp": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% pvp allow" send "{@tag} &3PVP na twoim terenie zostalo wlaczone !" stop if arg 1 is "pvp": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% pvp deny" send "{@tag} &3PVP na twoim terenie zostalo wylaczone !" stop if arg 1 is "tnt": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% other-explosion allow" send "{@tag} &3Szkody poprzez TNT zostaly wlaczone !" stop if arg 1 is "tnt": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% other-explosion deny" send "{@tag} &3Szkody poprzez TNT zostaly wylaczone !" stop if arg 1 is "skrzynie": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% chest-access allow" send "{@tag} &3Dostep do skrzynek dla innych graczy zostal wlaczone !" stop if arg 1 is "skrzynie": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% chest-access deny" send "{@tag} &3Dostep do skrzynek dla innych graczy zostal wylaczone !" stop if arg 1 is "ogien": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% lighter allow" send "{@tag} &3Podpalanie na twoim terenie zostalo wlaczone !" stop if arg 1 is "ogien": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% lighter deny" send "{@tag} &3Podpalanie na twoim terenie zostalo wylaczone !" stop if arg 1 is "lava": if player has permission "teren.lider": if arg 2 is "wlacz": make console execute command "rg flag -w %world of player% %player% lava-fire allow" send "{@tag} &3Obrazenia po wpadnieciu do lavy zostaly wlaczone !" stop if arg 1 is "lava": if player has permission "teren.lider": if arg 2 is "wylacz": make console execute command "rg flag -w %world of player% %player% lava-fire deny" send "{@tag} &3Obrazenia po wpadnieciu do lavy zostaly wylaczone !" stop