mirror of
https://github.com/CarmJos/cn2b2t-project.git
synced 2024-09-19 22:05:45 +00:00
修复数据加载
This commit is contained in:
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();
|
||||
|
Loading…
Reference in New Issue
Block a user