Added player.saveData and player.loadData.

This commit is contained in:
afforess 2011-04-03 11:40:08 -04:00 committed by EvilSeph
parent 5a04262051
commit 0f3f3c552a
2 changed files with 9 additions and 1 deletions

View file

@ -39,7 +39,7 @@ public class ServerConfigurationManager {
private File k; private File k;
private File l; private File l;
private File m; private File m;
private PlayerFileData n; public PlayerFileData n; // CraftBukkit - private->public
private boolean o; private boolean o;
// CraftBukkit start // CraftBukkit start

View file

@ -201,6 +201,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
return getHandle().Z(); return getHandle().Z();
} }
public void loadData() {
server.getHandle().n.b(getHandle());
}
public void saveData() {
server.getHandle().n.a(getHandle());
}
public void updateInventory() { public void updateInventory() {
getHandle().m(); getHandle().m();
} }