mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-20 05:20:22 -07:00
blocked teleports still using runes while spam clicking
This commit is contained in:
parent
7f5201266f
commit
caa80d7748
1 changed files with 2 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ class ModernListeners : SpellListener("modern"){
|
|||
|
||||
private fun sendTeleport(player: Player, xp: Double, location: Location){
|
||||
if(player.locks.isTeleportLocked){
|
||||
player.removeAttribute("spell:runes")
|
||||
player.sendMessage("A magical force prevents you from teleporting.")
|
||||
return
|
||||
}
|
||||
|
|
@ -256,6 +257,7 @@ class ModernListeners : SpellListener("modern"){
|
|||
|
||||
private fun attemptHouseTeleport(player: Player){
|
||||
if(player.locks.isTeleportLocked){
|
||||
player.removeAttribute("spell:runes")
|
||||
player.sendMessage("A magical force prevents you from teleporting.")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue