mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
* Cleaned up Spell teleports
This commit is contained in:
committed by
Daniel Ginovker
parent
c27e629da2
commit
1b5f185944
@@ -693,6 +693,13 @@ public class PlayerAssistant {
|
||||
player.getPacketSender().sendMessage("You can't teleport from a Fight pits Game!");
|
||||
return;
|
||||
}
|
||||
if (player.inWild() && player.wildLevel > GameConstants.NO_TELEPORT_WILD_LEVEL) {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You can't teleport above level "
|
||||
+ GameConstants.NO_TELEPORT_WILD_LEVEL
|
||||
+ " in the wilderness.");
|
||||
return;
|
||||
}
|
||||
if (player.tutorialProgress < 36) {
|
||||
player.getPacketSender().sendMessage("You can't teleport from tutorial island!");
|
||||
return;
|
||||
@@ -719,14 +726,6 @@ public class PlayerAssistant {
|
||||
player.getPacketSender().sendMessage("This feature is curently disabled.");
|
||||
return;
|
||||
}
|
||||
if (player.inWild()
|
||||
&& player.wildLevel > GameConstants.NO_TELEPORT_WILD_LEVEL) {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You can't teleport above level "
|
||||
+ GameConstants.NO_TELEPORT_WILD_LEVEL
|
||||
+ " in the wilderness.");
|
||||
return;
|
||||
}
|
||||
if (System.currentTimeMillis() - player.teleBlockDelay < player.teleBlockLength) {
|
||||
player.getPacketSender().sendMessage(
|
||||
"You are teleblocked and can't teleport.");
|
||||
|
||||
Reference in New Issue
Block a user