mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 16:49:04 +00:00
Fixed stuck command and added home teleport command (#647)
With my custom print stream PR, this will also automatically log the player stuck command usage to a log file.
This commit is contained in:
@@ -75,6 +75,7 @@ import org.apollo.util.security.IsaacRandom;
|
||||
public abstract class Player {
|
||||
|
||||
public byte buffer[] = null;
|
||||
private long lastHomeTeleport = 0;
|
||||
public String lastConnectedFrom;
|
||||
public int xpRate = 1;
|
||||
public String discordCode;
|
||||
@@ -167,6 +168,14 @@ public abstract class Player {
|
||||
public int getXPRate() { return xpRate; }
|
||||
|
||||
public void setXPRate(int xpRate) { this.xpRate = xpRate; }
|
||||
|
||||
public long getLastHomeTeleport() {
|
||||
return lastHomeTeleport;
|
||||
}
|
||||
|
||||
public void setLastHomeTeleport(long lastHomeTeleport) {
|
||||
this.lastHomeTeleport = lastHomeTeleport;
|
||||
}
|
||||
|
||||
public String getDiscordCode() { return discordCode; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user