diff options
-rw-r--r-- | src/main/java/net/minecraft/server/ServerConfigurationManager.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java index 0d71c520..b2a4e9a1 100644 --- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java +++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java @@ -39,7 +39,7 @@ public class ServerConfigurationManager { private File k; private File l; private File m; - private PlayerFileData n; + public PlayerFileData n; // CraftBukkit - private->public private boolean o; // CraftBukkit start diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 4be1716c..02b2fdcb 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -201,6 +201,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player { return getHandle().Z(); } + public void loadData() { + server.getHandle().n.b(getHandle()); + } + + public void saveData() { + server.getHandle().n.a(getHandle()); + } + public void updateInventory() { getHandle().m(); } |