mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 07:37:43 +00:00
Add a save()
function to player managers
This commit is contained in:
parent
abccec785b
commit
f22b92b08f
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user