diff options
author | afforess <afforess@gmail.com> | 2011-04-03 11:40:08 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-04-03 15:52:07 -0400 |
commit | 0f3f3c552aed3eca287c7b6a2e4658c04c670855 (patch) | |
tree | 6ed9c1843da9c69f7df6ee79d5c96eb52ac259fe | |
parent | 5a0426205144862306d1a8d0e03e722df4bf803d (diff) | |
download | craftbukkit-0f3f3c552aed3eca287c7b6a2e4658c04c670855.tar craftbukkit-0f3f3c552aed3eca287c7b6a2e4658c04c670855.tar.gz craftbukkit-0f3f3c552aed3eca287c7b6a2e4658c04c670855.tar.lz craftbukkit-0f3f3c552aed3eca287c7b6a2e4658c04c670855.tar.xz craftbukkit-0f3f3c552aed3eca287c7b6a2e4658c04c670855.zip |
Added player.saveData and player.loadData.
-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(); } |