Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script load:
- register new shaped recipe for blaze rod of thorns 10 named "&6&lMagiczny Kij" using air, air, gold block, air, ender pearl, air, stick, air, air
- on rightclick with a blaze rod of thorns 10:
- if {spawn} isn't set:
- send "&cWykryto blad w pluginie (nie ustawiono spawnu)!" to player
- send "&cZglos to administratorowi!" to player
- stop
- set {_pos} to block above player
- send "&8&l[&6&lPS&8&l] &aZostaniesz przeteleportowany za 7 sekund! Nie ruszaj sie!"
- loop 28 times:
- wait 5 ticks
- set {_pos2} to block above player
- if {_pos2} isn't {_pos}:
- send "&4Ruszyles sie! Teleportacja przerwana!" to player
- stop
- if player isn't holding a blaze rod of thorns 10:
- send "&4Musisz miec rozdzke w rece!" to player
- stop
- teleport player to {spawn}
- send "&8&l[&6&lPS&8&l] &aZostales przeteleportowany!" to player
- remove blaze rod of thorns 10 from the player's inventory
- stop
- command /protections-setspawn:
- trigger:
- if player has permission "protections.setspawn":
- set {spawn} to location of player
- send "&8&l[&6&lPS&8&l] &bPomyslnie ustawiono spawn!" to player
Advertisement
Add Comment
Please, Sign In to add comment