on damage:
world is "{@thehubworld}":
damage cause is fall:
heal the victim by 10 hearts
cancel the event
on damage:
world is "{@thehubworld}":
damage cause is void:
heal the victim by 10 hearts
teleport victim to {thehubspawn}
on join:
wait 2 ticks
teleport player to {thehubspawn}
wait 1 tick
teleport player to {thehubspawn}
on damage of a player:
world is "{@thehubworld}":
damage cause is not void:
cancel the event
on break:
world is "{@thehubworld}":
if player has permission "admin.hub.yetkisi":
stop
else:
cancel the event
on place:
world is "{@thehubworld}":
if player has permission "admin.hub.yetkisi":
stop
else:
cancel the event
on explosion:
world is "{@thehubworld}":
cancel the event
on spawn:
world is "{@thehubworld}":
cancel the event
on inventory click:
world is "{@thehubworld}":
if player has permission "admin.hub.yetkisi":
stop
else:
cancel the event
on rightclick holding a firework rocket:
world is "{@thehubworld}":
player has permission "FreeHub.rocket":
cancel the event
if difference between {temporanei.rockclick.%player%} and now is less than 1 second:
stop
if difference between {temporanei.rock.%player%} and now is more than 7 seconds:
set {temporanei.rock.%player%} to now
set {temporanei.rockclick.%player%} to now
push the player up at speed 3.5
launch ball large firework colored grey and red at player with duration 1.0
wait 4 ticks
launch ball large firework colored green and purple at player with duration 0.1
wait 4 ticks
launch ball large firework colored yellow and purple at player with duration 0.1
wait 4 ticks
launch ball large firework colored yellow and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored red and light blue at player with duration 0.1
wait 4 ticks
launch ball large firework colored light blue and brown at player with duration 0.1
wait 4 ticks
launch ball large firework colored brown and grey at player with duration 0.1
wait 4 ticks
launch ball large firework colored orange and purple at player with duration 0.1
stop
if {temporanei.rock.%player%} is not set:
set {temporanei.rock.%player%} to now
set {temporanei.rockclick.%player%} to now
push the player up at speed 3.5
launch ball large firework colored grey and red at player with duration 1.0
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
wait 4 ticks
launch ball large firework colored grey and red at player with duration 0.1
set {temporanei.rock.%player%} to now
set {temporanei.rockclick.%player%} to now
stop
if difference between {temporanei.rock.%player%} and now is less than 7 seconds:
message "&4Wait.. &cthe rocket is charging..."
set {temporanei.rockclick.%player%} to now
stop
else:
message "&4I'm sorry but you don't have the permission! No rocket for you!"