variables: {dzialka.%player%} = false command /d [] []: trigger: if argument 1 is not set: send "&7/////&6&nDzialki&7\\\\\" send "&7- &6/d zaloz &7= &6Tworzy dzialke" send "&7- &6/d usun &7= &6Usuwa dzialke" send "&7- &6/d dodaj &7= &6Dodaje czlonka dzialki" send "&7- &6/d wyrzuc &7= &6Wyrzuca czlonka dzialki" send "&7- &6/d tp &7= &6Teleportuje do dzialki" send "&6&lRozmiar dzialki wynosi 30 na 30 kratek." send "&7/////&6&nDzialki&7\\\\\" if argument 1 is "zaloz": if {dzialka.%player%} is false: send "&aTworzenie dzialki..." wait 1 second execute console command "pex user %player% add worldedit.*" execute player command "//pos1" execute player command "//pos2" execute player command "//expand 30 n" execute player command "//expand 30 e" execute player command "//expand 30 s" execute player command "//expand 30 w" execute player command "//expand vert" execute console command "pex user %player% remove worldedit.*" wait 1 tick execute console command "pex user %player% add worldguard.*" execute player command "/rg define dzialka%player%" execute player command "/rg flag dzialka%player% creeper-explosion deny" execute player command "/rg flag dzialka%player% build deny" execute console command "rg addowner dzialka%player% %player%" execute player command "/rg flag dzialka%player% greeting &6&lDzialka &6&n%player%" execute console command "pex user %player% remove worldguard.*" execute console command "rg addowner dzialka%player% %player%" wait 1 tick execute console command "rg addowner dzialka%player% %player%" set {dzialka.miejsce.%player%} to location of player set {dzialka.%player%} to true wait 1 tick loop 120 times: send "" wait 1 tick send "&aStworzyles dzialke!" else: send "&cMasz juz dzialke! Wpisz /d tp aby na nią przejść!" if argument 1 is "tp": if {dzialka.%player%} is true: send "&aZostaniesz przeteleportowany na dzialke za 5s!" wait 4 seconds teleport player to {dzialka.miejsce.%player%} else: send "&cZaloz dzialke zeby sie przeteleportowac!" if argument 1 is "usun": if {dzialka.%player%} is true: send "&cUsuwanie dzialki..." execute console command "rg remove dzialka%player% -w world" set {dzialka.%player%} to false send "&cPomyslnie usunieto dzialke!" else: send "&cMusisz miec dzialke aby ja usunac!" if argument 1 is "dodaj": if {dzialka.%player%} is true: if argument 2 is set: execute console command "rg addmember dzialka%player% %arg 2% -w world" send "&aPomyslnie dodano czlonka dzialki!" if argument 2 is not set: send "&cPodaj nick gracza!" else: send "&cNie masz dzialki aby dodac czlonka!" if argument 1 is "wyrzuc": if {dzialka.%player%} is true: if argument 2 is set: execute console command "rg removemember dzialka%player% %arg 2% -w world" send "&aPomyslnie wyrzucono czlonka gildii!" if argument 2 is not set: send "&cPodaj nazwe gracza!" else: send "&cNie masz dzialki aby wyrzucic gracza!"