mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-04-01 17:26:25 +02:00

Folia Support --------- Co-authored-by: Rockyers <ethan@yocom.org> Co-authored-by: TechnicallyCoded <technicallycoded@gmail.com> Co-authored-by: HSGamer <huynhqtienvtag@gmail.com>
20 lines
544 B
Java
20 lines
544 B
Java
package com.gmail.nossr50.runnables.player;
|
|
|
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
|
import com.gmail.nossr50.util.CancellableRunnable;
|
|
|
|
public class PlayerProfileSaveTask extends CancellableRunnable {
|
|
private final PlayerProfile playerProfile;
|
|
private final boolean isSync;
|
|
|
|
public PlayerProfileSaveTask(PlayerProfile playerProfile, boolean isSync) {
|
|
this.playerProfile = playerProfile;
|
|
this.isSync = isSync;
|
|
}
|
|
|
|
@Override
|
|
public void run() {
|
|
playerProfile.save(isSync);
|
|
}
|
|
}
|