mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Use profile instead of mcMMOPlayer
This commit is contained in:
parent
6fe1c85592
commit
621969459a
@ -15,7 +15,7 @@ public class SaveTimerTask extends BukkitRunnable {
|
||||
int count = 1;
|
||||
|
||||
for (McMMOPlayer mcMMOPlayer : UserManager.getPlayers().values()) {
|
||||
new PlayerProfileSaveTask(mcMMOPlayer).runTaskLater(mcMMO.p, count);
|
||||
new PlayerProfileSaveTask(mcMMOPlayer.getProfile()).runTaskLater(mcMMO.p, count);
|
||||
count++;
|
||||
}
|
||||
|
||||
|
@ -2,14 +2,13 @@ package com.gmail.nossr50.runnables.player;
|
||||
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||
|
||||
public class PlayerProfileSaveTask extends BukkitRunnable {
|
||||
private PlayerProfile playerProfile;
|
||||
|
||||
public PlayerProfileSaveTask(McMMOPlayer mcMMOPlayer) {
|
||||
this.playerProfile = mcMMOPlayer.getProfile();
|
||||
public PlayerProfileSaveTask(PlayerProfile playerProfile) {
|
||||
this.playerProfile = playerProfile;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user