variables: {vanish.status::%player%} = false {vanish.options.damage::%player%} = false {vanish.options.build::%player%} = false {vanish.options.items::%player%} = false {vanish.options.chest::%player%} = false {vanish.options.thor::%player%} = false command /v []: permission: vanish.toggle permission message: &8» &cBrak dostępu &7(vanish.toggle) trigger: if arg-1 is not set: if {vanish.status::%player%} is false: loop all players: if loop-players doesn't have permission "vanish.toggle": hide player from loop-players set {vanish.status::%player%} to true send "&8» &aStajesz się niewidzialny!" if {vanish.options.thor::%player%} is true: strike lightning effect at player loop all players: if loop-player have permission "vanish.toggle": add {_players::*} to loop-player remove player from {_players::*} send "&8» &a%player% staje się niewidzialny" to {_players::*} stop if {vanish.status::%player%} is true: reveal player to all players set {vanish.status::%player%} to false send "&8» &aStajesz się widzialny!" if {vanish.options.thor::%player%} is true: strike lightning effect at player loop all players: if loop-player have permission "vanish.toggle": add {_players::*} to loop-player remove player from {_players::*} send "&8» &a%player% staje się widzialny" to {_players::*} stop else: if player have permission "vanish.toogle.other": if arg-1 is online: if {vanish.status::%arg-1%} is false: set {vanish.status::%arg-1%} to true loop all players: if loop-players doesn't have permission "vanish.toggle": hide arg-1 from loop-players send "&8» &aStajesz się niewidzialny!" to arg-1 if {vanish.options.thor::%arg-1%} is true: strike lightning effect at arg-1 loop all players: if loop-player have permission "vanish.toggle": add {_players::*} to loop-player remove arg-1 from {_players::*} send "&8» &a%arg-1% staje się niewidzialny" to {_players::*} stop if {vanish.status::%arg-1%} is true: set {vanish.status::%arg-1%} to false reveal arg-1 to all players send "&8» &aStajesz się widzialny!" to arg-1 if {vanish.options.thor::%arg-1%} is true: strike lightning effect at arg-1 loop all players: if loop-player have permission "vanish.toggle": add {_players::*} to loop-player remove arg-1 from {_players::*} send "&8» &a%arg-1% staje się widzialny" to {_players::*} stop else: send "&8» &cPodany gracz jest offline" stop else: send "&8» &cBrak dostępu &7(vanish.toggle.other)" stop command /vo []: permission: vanish.toggle permission message: &8» &cBrak dostępu &7(vanish.toggle) trigger: open chest with 1 rows named "&8» &aUstawienia vanisha" to player wait 1 ticks if {vanish.options.damage::%player%} is true: set slot 0 of player's current inventory to green wool named "&8» &aObrażenia" with lore "&8» &7Status&8: &aWłączone||&8||&8» &7Gdy ta opcja jest wyłączona||&8» &7nie możesz bić innych graczy" if {vanish.options.damage::%player%} is false: set slot 0 of player's current inventory to red wool named "&8» &aObrażenia" with lore "&8» &7Status&8: &cWyłączone||&8||&8» &7Gdy ta opcja jest włączona||&8» &7możesz bić innych graczy" if {vanish.options.build::%player%} is true: set slot 1 of player's current inventory to green wool named "&8» &aBudowanie" with lore "&8» &7Status&8: &aWłączone||&8||&8» &7Gdy ta opcja jest wyłączona||&8» &7nie możesz niszczyć i budować" if {vanish.options.build::%player%} is false: set slot 1 of player's current inventory to red wool named "&8» &aBudowanie" with lore "&8» &7Status&8: &cWyłączone||&8||&8» &7Gdy ta opcja jest włączona||&8» &7możesz niszczyć i budować" if {vanish.options.items::%player%} is true: set slot 2 of player's current inventory to green wool named "&8» &aInterakcja z itemami" with lore "&8» &7Status&8: &aWłączone||&8||&8» &7Gdy ta opcja jest wyłączona||&8» &7nie możesz wyrzucać, ani podnosić itemów" if {vanish.options.items::%player%} is false: set slot 2 of player's current inventory to red wool named "&8» &aInterakcja z itemami" with lore "&8» &7Status&8: &cWyłączone||&8||&8» &7Gdy ta opcja jest włączona||&8» &7możesz wyrzucać i podnosić itemy" if {vanish.options.chest::%player%} is true: set slot 3 of player's current inventory to green wool named "&8» &aOtwieranie skrzynek" with lore "&8» &7Status&8: &aWłączone||&8||&8» &7Gdy ta opcja jest wyłączona||&8» &7nie możesz otwierać skrzynek" if {vanish.options.chest::%player%} is false: set slot 3 of player's current inventory to red wool named "&8» &aOtwieranie skrzynek" with lore "&8» &7Status&8: &cWyłączone||&8||&8» &7Gdy ta opcja jest włączona||&8» &7możesz otwierać skrzynek" if {vanish.options.thor::%player%} is true: set slot 8 of player's current inventory to paper named "&8» &aPioruny" with lore "&8» &7Status&8: &aWłączone" if {vanish.options.thor::%player%} is false: set slot 8 of player's current inventory to paper named "&8» &aPioruny" with lore "&8» &7Status&8: &cWyłączone" on inventory click: inventory name of current inventory of player is "&8» &aUstawienia vanisha": cancel event if clicked slot is 0: if {vanish.options.damage::%player%} is true: set {vanish.options.damage::%player%} to false close the player's inventory send player title "" with subtitle "&8» &cWyłączyłeś możliwość bicia innych graczy" stop if {vanish.options.damage::%player%} is false: set {vanish.options.damage::%player%} to true close the player's inventory send player title "" with subtitle "&8» &aWłączyłeś możliwość bicia innych graczy" stop if clicked slot is 1: if {vanish.options.build::%player%} is true: set {vanish.options.build::%player%} to false close the player's inventory send player title "" with subtitle "&8» &cWyłączyłeś możliwość budowania" stop if {vanish.options.build::%player%} is false: set {vanish.options.build::%player%} to true close the player's inventory send player title "" with subtitle "&8» &aWłączyłeś możliwość budowania" stop if clicked slot is 2: if {vanish.options.items::%player%} is true: set {vanish.options.items::%player%} to false close the player's inventory send player title "" with subtitle "&8» &cWyłączyłeś możliwość interakcji z itemami" stop if {vanish.options.items::%player%} is false: set {vanish.options.items::%player%} to true close the player's inventory send player title "" with subtitle "&8» &aWłączyłeś możliwość interakcji z itemami" stop if clicked slot is 3: if {vanish.options.chest::%player%} is true: set {vanish.options.chest::%player%} to false close the player's inventory send player title "" with subtitle "&8» &cWyłączyłeś możliwość otwierania skrzynek" stop if {vanish.options.chest::%player%} is false: set {vanish.options.chest::%player%} to true close the player's inventory send player title "" with subtitle "&8» &aWłączyłeś możliwość otwierania skrzynek" stop if clicked slot is 8: if {vanish.options.thor::%player%} is true: set {vanish.options.thor::%player%} to false close the player's inventory send player title "" with subtitle "&8» &cWyłączyłeś pioruny" stop if {vanish.options.thor::%player%} is false: set {vanish.options.thor::%player%} to true close the player's inventory send player title "" with subtitle "&8» &aWłączyłeś pioruny" stop on damage: if attacker is player: if victim is player: if {vanish.status::%attacker%} is true: if {vanish.options.damage::%attacker%} is false: cancel event on break: if {vanish.status::%player%} is true: if {vanish.options.build::%player%} is false: cancel event on place: if {vanish.status::%player%} is true: if {vanish.options.build::%player%} is false: cancel event on drop: if {vanish.status::%player%} is true: if {vanish.options.items::%player%} is false: cancel event on pickup: if {vanish.status::%player%} is true: if {vanish.options.items::%player%} is false: cancel event on right click on chest or ender chest or trapped chest: if {vanish.status::%player%} is true: if {vanish.options.chest::%player%} is false: cancel event