command /sethome []: aliases: ustawdom trigger: if {home.%player%} is not set: set {home.%player%} to location of player send "&8» &7Twoj dom zostal &6ustawiony! &8(&f%location of player%" else: send "&c&lBlad! &7Juz masz dom, usun i sprobuj ponownie!" command /home []: aliases: dom trigger: if {home.%player%} is set: if player don't have permission "yolodavcio.home": apply nausea 2 to player for 5.5 seconds apply slowness 2 to player for 5.5 seconds set {_locHome} to "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" send "&8» &aTeleportacja, nie ruszaj sie! &8(&75s&8)" if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" isn't {_locHomeHome}: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" isn't {_locHome}: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" isn't {_locHome}: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop wait 1 second send "&8» &aTeleportacja, nie ruszaj sie! &8(&73s&8)" if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" isn't {_locHome}: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" isn't {_locHome}: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop wait 1 second if "%x-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" is {_locHome}: teleport player to {home.%player%} send "&8&l» &7Przeteleportowano na home &8(&f%location of player%&8)" send player title "&2&lTWOJ&7&lSERWER&8&l.PL" with subtitle "&7Teleportowanie..." else: send "&c&lBlad! &7Teleportacja przerwana!" remove nausea from player remove slowness from player stop else: apply nausea 2 to player for 1.5 seconds apply slowness 2 to player for 1.5 seconds teleport player to {home.%player%} send "&8&l» &7Przeteleportowano na home &8(&f%location of player%&8)" send player title "&2&lTWOJ&7&lSERWER&8&l.PL" with subtitle "&7Teleportowanie..." else: send "&c&LBlad! &7Nie posiadasz ustawionego domu!" command /delhome []: trigger: if {home.%player%} is set: delete {home.%player%} send "&8» &7Twoj dom zostal &6usuniety!" else: send "&c&lBlad! &7Nie posiadasz ustawionego domu!"