mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 02:15:11 -06:00
concatenated the string
This commit is contained in:
parent
a47f77edf7
commit
48405c616a
1 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import content.global.skill.construction.HouseZone;
|
|||
import core.ServerConstants;
|
||||
import core.api.ContentAPIKt;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.world.map.Location;
|
||||
import core.tools.Log;
|
||||
import core.tools.SystemLogger;
|
||||
import core.game.world.GameWorld;
|
||||
|
|
@ -86,8 +87,9 @@ public final class ActivityManager {
|
|||
public static void ActivityRecover(Player player) {
|
||||
String activityName = player.getAttribute("lastActivity", null);
|
||||
if (activityName == null) {
|
||||
if (player.getLocation().getY() < 2000) { //credits to PlayerName
|
||||
sendMessage(player, "You were stuck inside an instance, which should never happen. Please file a bug report, and include the following information: $loc. To prevent your client from crashing, you have been teleported back home. We apologise for the inconvenience.");
|
||||
int yLoc = player.getLocation().getY();
|
||||
if (yLoc < 2000) { //credits to PlayerName
|
||||
sendMessage(player, "You were stuck inside an instance, which should never happen. Please file a bug report, and include the following information: "+yLoc +". To prevent your client from crashing, you have been teleported back home. We apologise for the inconvenience.");
|
||||
player.setLocation(ServerConstants.HOME_LOCATION);
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue