mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +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
|
||||
private long recentlyHurt;
|
||||
private int respawnATS;
|
||||
private long lastSave = 0L;
|
||||
private long ptpTimeout;
|
||||
|
||||
// mySQL STUFF
|
||||
@ -309,10 +308,6 @@ public class PlayerProfile {
|
||||
public void save() {
|
||||
Long timestamp = System.currentTimeMillis();
|
||||
|
||||
if (timestamp < (lastSave + ((long) Config.getInstance().getSaveInterval() * 60000))) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we are using mysql save to database
|
||||
if (Config.getInstance().getUseMySQL()) {
|
||||
String tablePrefix = Config.getInstance().getMySQLTablePrefix();
|
||||
@ -429,7 +424,6 @@ public class PlayerProfile {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
lastSave = timestamp;
|
||||
}
|
||||
|
||||
public void addPlayer() {
|
||||
|
Loading…
Reference in New Issue
Block a user