Add a save() function to player managers

This commit is contained in:
Melledy 2022-07-20 02:01:56 -07:00
parent abccec785b
commit f22b92b08f
2 changed files with 7 additions and 4 deletions

View File

@ -66,10 +66,6 @@ public class MapMarksManager extends BasePlayerManager {
}
}
private void save() {
player.save();
}
private void teleport(Player player, MapMark mapMark) {
float y;
try {

View File

@ -12,4 +12,11 @@ public abstract class BasePlayerManager {
public Player getPlayer() {
return this.player;
}
/**
* Saves the player to the database
*/
public void save() {
getPlayer().save();
}
}