Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on disconnect:
- set {lastloc.%player%} to location of player
- on join:
- wait 5 seconds
- teleport player to {lastloc.%player%}
- variables:
- {teleport.gildia.%player%} = false
- on script load:
- register new shaped recipe for stick named "&a&lTeleport na spawn" using none, gold block, none, none, gold block, none, none, gold block, none
- register new shaped recipe for blaze rod named "&a&lTeleport do gildi" using none, emerald block, none, none, emerald block, none, none, emerald block, none
- on rightclick using stick:
- if name of player's tool is "&a&lTeleport na spawn":
- set {_loc.%player%} to location of player
- send "&aTeleportacja na spawn nastapi za: 5 sekund.Nie ruszaj sie!"
- wait 1 second
- set {_loc1.%player%} to location of player
- if {_loc.%player%} is {_loc1.%player%}:
- if player has stick named "&a&lTeleport na spawn":
- set {_loc2.%player%} to location of player
- send "&aTeleportacja na spawn nastapi za: 4 sekundy."
- wait 1 second
- if {_loc2.%player%} is {_loc.%player%}:
- if player has stick named "&a&lTeleport na spawn":
- set {_loc3.%player%} to location of player
- send "&aTeleportacja na spawn nastapi za: 3 sekundy."
- wait 1 second
- if {_loc.%player%} is {_loc3.%player%}:
- if player has stick named "&a&lTeleport na spawn":
- set {_loc4.%player%} to location of player
- send "&aTeleportacja na spawn nastapi za: 2 sekundy."
- wait 1 second
- if {_loc4.%player%} is {_loc.%player%}:
- if player has stick named "&a&lTeleport na spawn":
- set {_loc5.%player%} to location of player
- send "&aTeleportacja na spawn nastapi za: 1 sekunde."
- wait 1 second
- if {_loc5.%player%} is {_loc.%player%}:
- if player has stick named "&a&lTeleport na spawn":
- send "&aTeleportuje na spawn..."
- teleport player to spawn
- remove stick named "&a&lTeleport na spawn" from player
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- on rightclick using blaze rod:
- if name of player's tool is "&a&lTeleport do gildi":
- set {_loc.%player%} to location of player
- send "&aTeleportacja do gildi nastapi za: 5 sekund.Nie ruszaj sie!"
- wait 1 second
- set {_loc1.%player%} to location of player
- if {_loc.%player%} is {_loc1.%player%}:
- if player has blaze rod named "&a&lTeleport do gildi":
- set {_loc2.%player%} to location of player
- send "&aTeleportacja do gildi nastapi za: 4 sekundy."
- wait 1 second
- if {_loc2.%player%} is {_loc.%player%}:
- if player has blaze rod named "&a&lTeleport do gildi":
- set {_loc3.%player%} to location of player
- send "&aTeleportacja do gildi nastapi za: 3 sekundy."
- wait 1 second
- if {_loc.%player%} is {_loc3.%player%}:
- if player has blaze rod named "&a&lTeleport do gildi":
- set {_loc4.%player%} to location of player
- send "&aTeleportacja do gildi nastapi za: 2 sekundy."
- wait 1 second
- if {_loc4.%player%} is {_loc.%player%}:
- if player has blaze rod named "&a&lTeleport do gildi":
- set {_loc5.%player%} to location of player
- send "&aTeleportacja do gildi nastapi za: 1 sekunde."
- wait 1 second
- if {_loc5.%player%} is {_loc.%player%}:
- if player has blaze rod named "&a&lTeleport do gildi":
- send "&aTeleportuje do gildi..."
- set {teleport.gildia.%player%} to true
- execute player command "/g dom"
- set {teleport.gildia.%player%} to false
- remove blaze rod named "&a&lTeleport do gildi" from player
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- else:
- send "&cWyrzuciles przedmiot teleportujacy!"
- else:
- send "&cRuszyles sie! Teleportacja anulowana!"
- on command "/g dom":
- if player doesn't have permission "teleport.gildia":
- if {teleport.gildia.%player%} is false:
- cancel event
- send "&3Aby tepnac sie na g dom uzyj rozgi.Crafting rozgi &c/rozga"
- on command "/spawn":
- if player doesn't have permission "teleport.spawn":
- cancel event
- send "&3Koordynaty spawnu to x&c0 &3z&c0 &3Na spawn mozesz tp sie rozga. Crafting rozgi &c/rozga"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement