forked from 2009Scape/Server
Fixed ring of the star sprite bypassing some teleport restrictions
This commit is contained in:
parent
5e6f750cee
commit
7320bcfd0b
1 changed files with 5 additions and 0 deletions
|
|
@ -78,6 +78,11 @@ class ShootingStarPlugin : LoginListener, InteractionListener, TickListener, Com
|
|||
else -> {_ -> true}
|
||||
}
|
||||
|
||||
if(!condition.invoke(player)){
|
||||
sendDialogue(player, "Magical forces prevent your teleportation.")
|
||||
return@on true
|
||||
}
|
||||
|
||||
val shouldWarn = when(star.location){
|
||||
"North Edgeville mining site",
|
||||
"Southern wilderness mine",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue