on rightclick on sign: if line 1 of clicked block is "s": if line 2 of clicked block is "ss": if line 3 of clicked block is "sss": if line 4 of clicked block is "ssss": open chest with 1 row named "&9[Przystanek]" to player wait 1 tick set player's current inventory's slot 4 to bed named "&8» &2&lHOTEL" with lore "||&8» &7Kliknij, aby przejsc do||&8» &2&lHOTELU||&8» &7Oplata to: &2&l3$||&8» &7Twoj stan konta to: &2&l%player's balance%||" on inventory click: if inventory name of current inventory of player is "&9[Przystanek]": if clicked slot is 4: cancel event close player's inventory set {_balance} to player's balance set {_balance} to {_balance} parsed as number if {_balance} is smaller than 3: send "&8» &cNie wystarczy Ci pieniedzy." to player send "&8» &cTwoj stan konta to: 3$/%{_balance}%." to player stop remove 3 from player's balance send "&8» &aPoprawnie zakupiles przejazd do:" to player send "&8» &2&lHOTELI" to player send "&8» &aZ Twojego konta zostalo pobrane &2&l3$" to player apply blindness 3 to the player for 5 second apply nausea 3 to the player for 5 second send "&8» &aTrwa teleportacja - prosze sie nie ruszac!" to player set {_loc} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_loc}: wait 1 second teleport player to {przyjazd::hotel} send "&8» &aPrzejazd sie udal - aktualnie znajdujesz sie w: &2&lHOTELACH" to player stop send "&8» &cPoruszyles sie - przejazd anulowana!" to player add 3 to player's balance remove blindness from player remove nausea from player stop command /ustaw-hotel []: permission: default.op trigger: set {przyjazd::hotel} to location of player send "&8» &aLokacja do przyjazdu do &2&lHOTELU &azostala pomyslnie ustawiona!" stop