mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 12:31:46 +00:00
Don't overwrite last location on logout
Logout position is saved as logoutlocation now in users yml
This commit is contained in:
parent
335d8b7f20
commit
5b975672e8
4 changed files with 20 additions and 4 deletions
|
@ -318,6 +318,17 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
config.setProperty("lastlocation", loc);
|
||||
config.save();
|
||||
}
|
||||
|
||||
public void setLogoutLocation(Location loc)
|
||||
{
|
||||
if (loc == null || loc.getWorld() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
config.setProperty("logoutlocation", loc);
|
||||
config.save();
|
||||
}
|
||||
|
||||
private long lastTeleportTimestamp;
|
||||
|
||||
private long _getLastTeleportTimestamp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue