mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Always give a message when things go unexpectedly wrong.
This commit is contained in:
parent
48405c616a
commit
d7796c230d
1 changed files with 4 additions and 1 deletions
|
|
@ -110,13 +110,16 @@ public final class ActivityManager {
|
|||
}
|
||||
plugin.recover(player);
|
||||
} else {
|
||||
sendMessage(player, "You were safely removed from an invalid location.");
|
||||
sendMessage(player, "Activity: NULL, please report this!");
|
||||
player.setLocation(ServerConstants.HOME_LOCATION);
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
sendMessage(player, "You were safely removed from an invalid location.");
|
||||
sendMessage(player, "Activity: THROWABLE, please report this!");
|
||||
player.setLocation(ServerConstants.HOME_LOCATION);
|
||||
}
|
||||
|
||||
player.removeAttribute("lastActivity");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue