mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-02-16 22:59:35 +01:00
Removed no longer needed check (related to previous commit)
This commit is contained in:
parent
09373c45f3
commit
76ff0374ce
@ -53,7 +53,6 @@ public class PlayerProfile {
|
|||||||
// Timestamps
|
// Timestamps
|
||||||
private long recentlyHurt;
|
private long recentlyHurt;
|
||||||
private int respawnATS;
|
private int respawnATS;
|
||||||
private long lastSave = 0L;
|
|
||||||
private long ptpTimeout;
|
private long ptpTimeout;
|
||||||
|
|
||||||
// mySQL STUFF
|
// mySQL STUFF
|
||||||
@ -309,10 +308,6 @@ public class PlayerProfile {
|
|||||||
public void save() {
|
public void save() {
|
||||||
Long timestamp = System.currentTimeMillis();
|
Long timestamp = System.currentTimeMillis();
|
||||||
|
|
||||||
if (timestamp < (lastSave + ((long) Config.getInstance().getSaveInterval() * 60000))) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we are using mysql save to database
|
// If we are using mysql save to database
|
||||||
if (Config.getInstance().getUseMySQL()) {
|
if (Config.getInstance().getUseMySQL()) {
|
||||||
String tablePrefix = Config.getInstance().getMySQLTablePrefix();
|
String tablePrefix = Config.getInstance().getMySQLTablePrefix();
|
||||||
@ -429,7 +424,6 @@ public class PlayerProfile {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lastSave = timestamp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addPlayer() {
|
public void addPlayer() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user