mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16: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;
|
int count = 1;
|
||||||
|
|
||||||
for (McMMOPlayer mcMMOPlayer : UserManager.getPlayers().values()) {
|
for (McMMOPlayer mcMMOPlayer : UserManager.getPlayers().values()) {
|
||||||
new PlayerProfileSaveTask(mcMMOPlayer).runTaskLater(mcMMO.p, count);
|
new PlayerProfileSaveTask(mcMMOPlayer.getProfile()).runTaskLater(mcMMO.p, count);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,14 +2,13 @@ package com.gmail.nossr50.runnables.player;
|
|||||||
|
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
|
||||||
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
import com.gmail.nossr50.datatypes.player.PlayerProfile;
|
||||||
|
|
||||||
public class PlayerProfileSaveTask extends BukkitRunnable {
|
public class PlayerProfileSaveTask extends BukkitRunnable {
|
||||||
private PlayerProfile playerProfile;
|
private PlayerProfile playerProfile;
|
||||||
|
|
||||||
public PlayerProfileSaveTask(McMMOPlayer mcMMOPlayer) {
|
public PlayerProfileSaveTask(PlayerProfile playerProfile) {
|
||||||
this.playerProfile = mcMMOPlayer.getProfile();
|
this.playerProfile = playerProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user