Commit f22b92b0 authored by Melledy's avatar Melledy
Browse files

Add a `save()` function to player managers

parent abccec78
......@@ -66,10 +66,6 @@ public class MapMarksManager extends BasePlayerManager {
}
}
private void save() {
player.save();
}
private void teleport(Player player, MapMark mapMark) {
float y;
try {
......
......@@ -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();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment