Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on skript load:
- register new shaped recipe for clock of power 1 named "&c&lK-ROZDZKA" using air, block of emerald, air, air, block of emerald, air, air, stick, air
- variables:
- {tp.%player%} = false
- options:
- tag: &8[&2K-Rozdzka&8]
- on drop:
- if {tp.%player%} is true:
- cancel event
- send "&9Nie mozesz wyrzucac przedmiotow podczas teleportacji!"
- stop
- command /rozdzka [<TEXT>]:
- trigger:
- arg 1 is "help":
- send "&8################################################"
- send " &2&lK-ROZDZKA"
- send "&8################################################"
- send "&6Dostepne komendy:"
- send " &6/rozdzka help - &2Pokazuje informacje na temet skryptu"
- send " &6/rozdzka autor - &2Pokazuje autora skryptu"
- send " &6/rozdzka setspawn - &2Ustawia spawn"
- send " &6/rozdzka spawn - &2Teleportuje na spawn"
- send "&8################################################"
- arg 1 is "autor":
- send "&8################################################"
- send " &2&lK-ROZDZKA"
- send "&8################################################"
- send "&6Autorem skryptu jest:"
- send " &2KamilPocwiard"
- send " &21.0"
- send "&8################################################"
- arg 1 is "setspawn":
- if player has permission "krozdzka.setspawn":
- set {krozdzka} to location of player
- send "{@tag} &6Spawn zostal ustawiony!"
- stop
- else:
- send "&cNie masz pozwolenia do urzywanie tej komendy"
- arg 1 is "spawn":
- if player has permission "krozdzka.spawn":
- teleport player to {krozdzka}
- send "{@tag} &6Zostales przeteleportowany na spawn!"
- stop
- else:
- send "&cNie masz pozwolenia do urzywanie tej komendy"
- on right click:
- if player is holding clock:
- if name of the player's tool is "&c&lK-ROZDZKA":
- set {tp.%player%} to true
- remove clock of power 1 from player
- send "{@tag} &6Za 5 sekund zostaniesz przeteleportowany na spawn!"
- set {tp} to location of player
- wait 1 second
- if {tp} isn't location of player:
- send "{@tag} &6Teleportacja zostala przerwana!"
- set {tp.%player%} to false
- stop
- wait 1 second
- if {tp} isn't location of player:
- send "{@tag} &6Teleportacja zostala przerwana!"
- set {tp.%player%} to false
- stop
- wait 1 second
- if {tp} isn't location of player:
- send "{@tag} &6Teleportacja zostala przerwana!"
- set {tp.%player%} to false
- stop
- wait 1 second
- if {tp} isn't location of player:
- send "{@tag} &6Teleportacja zostala przerwana!"
- set {tp.%player%} to false
- stop
- wait 1 second
- if {tp} isn't location of player:
- send "{@tag} &6Teleportacja zostala przerwana!"
- set {tp.%player%} to false
- stop
- teleport player to {krozdzka}
- send "{@tag} &6Zostales przeteleportowany na spawn!"
- set {tp.%player%} to false
- stop
Advertisement
Add Comment
Please, Sign In to add comment