command /cuboid : trigger: if arg 1 is "stworz": give 1 sponge to player on place sponge: execute console command "pex user %name of player% add worldedit.*" execute console command "pex user %name of player% add worldguard.*" execute player command "//pos1" execute player command "//pos2" execute player command "//expand 5 n" execute player command "//expand 5 s" execute player command "//expand 5 w" execute player command "//expand 5 e" execute player command "//expand vert" execute player command "rg define %name of player% %name of player%" execute player command "rg addowner %name of player% %name of player%" execute player command "rg flag %name of player% chest-access deny" execute player command "rg flag %name of player% tnt deny" execute console command "pex user %name of player% remove worldedit.*" execute console command "pex user %name of player% remove worldguard.*" loop 99 times: send "" wait 1 second send "&7Claim Wyspy Ustawiony o Rozmiarach 30x30" to player stop if arg 1 is "dodaj": if arg 2 is set: execute console command "pex user %name of player% add worldguard.*" execute player command "rg addmember %name of player% %arg 2%" execute console command "pex user %name of player% remove worldguard.*" send "&7Dodales gracza &3%arg 2% &7do Wyspy!" else: send "&7Nie podales nicku!" stop if arg 1 is "wyrzuc": if arg 2 is set: execute console command "pex user %name of player% add worldguard.*" execute player command "rg removemember %name of player% %arg 2%" execute player command "pex user %name of player% remove worldguard.*" send "&7Usunales gracza &3%arg 2% &7z Wyspy!" else: send "&7nie podales nicku!" stop on mine sponge: cancel event