mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Only consume daily Ring of the Star Sprite teleport if the teleport succeeds
This commit is contained in:
parent
d58d4857b0
commit
c9e3ad4335
1 changed files with 3 additions and 2 deletions
|
|
@ -132,8 +132,9 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
||||||
}
|
}
|
||||||
|
|
||||||
fun teleport(player: Player, star: ShootingStar){
|
fun teleport(player: Player, star: ShootingStar){
|
||||||
teleport(player, star.crash_locations[star.location]!!.transform(0, -1, 0), TeleportManager.TeleportType.MINIGAME)
|
if (teleport(player, star.crash_locations[star.location]!!.transform(0, -1, 0), TeleportManager.TeleportType.MINIGAME)) {
|
||||||
getRingStoreFile()[player.username.toLowerCase()] = true
|
getRingStoreFile()[player.username.toLowerCase()] = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue