1
mirror of https://github.com/CarmJos/cn2b2t-project.git synced 2026-06-04 08:48:16 +08:00

修复数据加载

This commit is contained in:
carm
2020-05-28 19:03:09 +08:00
parent 5d6d6252ea
commit dc6c347e6a
@@ -46,7 +46,7 @@ public class User {
public User(Player player) {
this.player = player;
loadData();
new BukkitRunnable() {
@Override
public void run() {
@@ -93,7 +93,7 @@ public class User {
new BukkitRunnable() {
@Override
public void run() {
loadData();
fullLoaded = true;
Bukkit.getPluginManager().callEvent(new UserLoadedEvent(User.this));
}
@@ -276,7 +276,7 @@ public class User {
userdatasFolder.mkdir();
}
this.datafile = new File(userdatasFolder, this.getInkID() + ".yml");
this.datafile = new File(userdatasFolder, this.getPlayer().getUniqueId() + ".yml");
if (!datafile.exists()) {
try {
datafile.createNewFile();