Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sethome [<text>]:
- trigger:
- if {home.%player%} is not set:
- if argument 1 is not set:
- if player has permission "dom.ustaw.1":
- if {home.%player%} is not set:
- set {home.%player%} to location of player
- send "&aUstawiono pierwszy dom"
- else:
- send "&4Blad: &cNie masz dostepu do ustawienia domu" to player
- else:
- if player has permission "dom.ustaw.kilka":
- send "&4Blad: &cMasz juz ustawiony dom! Zeby ustawic kolejny wpisz /sethome <nazwadomu>" to player
- else:
- send "&4Blad: &cMozesz ustawic tylko jeden dom!" to player
- if argument 1 is set:
- if player has permission "dom.ustaw.kilka":
- if {home.%player%} is set:
- set {home.%player%.%arg-1%} to location of the player
- send "&aUstawiono dom %arg-1%" to player
- else:
- send "&4Blad: &cZeby moc ustawic kolejny dom musisz miec ustawiony pierwszy" to player
- else:
- send "&4Blad &cNie masz dostepu do ustawienia kilku domow" to player
- command /home [<text>]:
- trigger:
- if argument 1 is not set:
- if {home.%player%} is set:
- if player has permission "dom.tpbc":
- send "&7Teleportacja..." to player
- teleport player to {home.%player%}
- else:
- if player has permission "dom.tp":
- send "&7Teleportacja nastapi sa &c3 sekundy. &7Prosze sie nie ruszac." to player
- set {pos.%player%} to location of player
- wait 3 seconds
- if {pos.%player%} is location of player:
- teleport player to {home.%player%}
- delete {pos.%player%}
- else:
- send "&7Teleportacja anulowana" to player
- delete {pos.%player%}
- else:
- send "&4Blad: &cNie masz ustawionego domu! Ustaw dom komenda /sethome" to player
- if argument 1 is set:
- if {home.%player%.%arg-1%} is set:
- if player has permission "dom.tpbc":
- send "&7Teleportacja..." to player
- teleport player to {home.%player%.%arg-1%}
- else:
- if player has permission "dom.tp":
- send "&7Teleportacja nastapi sa &c3 sekundy. &7Prosze sie nie ruszac." to player
- set {pos.%player%} to location of player
- wait 3 seconds
- if {pos.%player%} is location of player:
- teleport player to {home.%player%}
- delete {pos.%player%}
- else:
- send "&7Teleportacja anulowana" to player
- delete {pos.%player%}
- else:
- send "&4Blad: &cNie masz ustawionego takiego domu!" to player
Advertisement
Add Comment
Please, Sign In to add comment