variables: vanish.%player% = 0 vanish.budowanie.%player% = 1 vanish.atak.%player% = 1 vanish.redstone.%player% = 1 vanish.itemy.%player% = 1 vanish.god.%player% = 1 command /v []: permission: Asthon.Vanish permission message: "&c&lOj ty wiesz co..." aliases: sv, vanish trigger: if argument is "help": send "&7------------&6&lPiekny&e&lCraft&7------------------" send "&9Komendy:" send "&c/v &9- Przełącza status" send "&c/v info &9- Pokazuje status" send "&c/v budowanie &9- Blokuje/odblokowywuje budowanie na vanishu" send "&c/v god &9- Blokuje/odblokowywuje godmode na vanishu" send "&c/v redstone &9- Blokuje/odblokowywuje uzywanie redstone na vanishu" send "&c/v itemy &9- Blokuje/odblokowywuje podnoszenie/wyrzucanie itemow na vanishu" send "&c/v atak &9- Blokuje/odblokowywuje bicie innych na vanishu" send "&7------------&6&lPiekny&e&lCraft&7------------------" if argument is not set: if {vanish.%player%} is 1: set {vanish.%player%} to 0 strike lightning effect at player send action bar "&c&lWyłączyłeś vanisha" to player send "&c&lWyłączyłeś vanisha" reveal player from all players else: set {vanish.%player%} to 1 send action bar "&a&lWłączyłeś vanisha" to player send "&a&lWłączyłeś vanisha" strike lightning effect at player hide player from all players if argument is "info": send "&7------------&6&lPiekny&e&lCraft&7------------------" send "&eVanish - informacje" if {vanish.%player%} is 1: send "&cstatus: &awłączony" else: send "&cstatus: &cwyłączony" send "&9Blokady:" if {vanish.budowanie.%player%} is 1: send "&7Budowanie: &awłączona" else: send "&7Budowanie: &cwyłączona" if {vanish.atak.%player%} is 1: send "&7Atak: &awłączona" else: send "&7Atak: &cwyłączona" if {vanish.redstone.%player%} is 1: send "&7Redstone: &awłączona" else: send "&7Redstone: &cwyłączona" if {vanish.itemy.%player%} is 1: send "&7Itemy: &awłączona" else: send "&7Itemy: &cwyłączona" if {vanish.god.%player%} is 1: send "&7God: &awłączony" else: send "&7God: &cwyłączony" send "&7------------&6&lPiekny&e&lCraft&7------------------" if argument is "budowanie": if {vanish.budowanie.%player%} is 1: set {vanish.budowanie.%player%} to 0 send "&cBlokada budowania wyłączona" else: set {vanish.budowanie.%player%} to 1 send "&aBlokada budowania włączona" if argument is "atak": if {vanish.atak.%player%} is 1: set {vanish.atak.%player%} to 0 send "&cBlokada ataku wyłączona" else: set {vanish.atak.%player%} to 1 send "&aBlokada ataku włączona" if argument is "redstone": if {vanish.redstone.%player%} is 1: set {vanish.redstone.%player%} to 0 send "&cBlokada redstona wyłączona" else: set {vanish.redstone.%player%} to 1 send "&aBlokada redstona włączona" if argument is "itemy": if {vanish.itemy.%player%} is 1: set {vanish.itemy.%player%} to 0 send "&cBlokada itemów wyłączona" else: set {vanish.itemy.%player%} to 1 send "&aBlokada itemów włączona" if argument is "god": if {vanish.god.%player%} is 1: set {vanish.god.%player%} to 0 send "&cGod wyłączony" else: set {vanish.god.%player%} to 1 send "&aGod włączony" on join: if player has permission "Asthon.Vanish": set {vanish.%player%} to 0 wait 5 seconds send "&6&lPiekny&e&lCraft: &eVanish wyłączony" loop all players: if {vanish.%loop-player%} is 1: hide loop-player to player on place: if {vanish.%player%} is 1: if {vanish.budowanie.%player%} is 1: cancel event on break: if {vanish.%player%} is 1: if {vanish.budowanie.%player%} is 1: cancel event on damage: if {vanish.%attacker%} is 1: if {vanish.atak.%attacker%} is 1: cancel event if {vanish.%victim%} is 1: if {vanish.god.%victim%} is 1: cancel event on right click on button or lever: if {vanish.%player%} is 1: if {vanish.redstone.%player%} is 1: cancel event on drop: if {vanish.%player%} is 1: if {vanish.itemy.%player%} is 1: cancel event on pick up: if {vanish.%player%} is 1: if {vanish.itemy.%player%} is 1: cancel event