summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorafforess <afforess@gmail.com>2011-04-03 11:40:38 -0400
committerEvilSeph <evilseph@unaligned.org>2011-04-03 15:53:26 -0400
commit47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5 (patch)
treecfce3f52f036471c1103d14752b323f8533794bb /src
parent4d0acea6c9aaa4beddcc69d8d9e23af41467d4ca (diff)
downloadbukkit-47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5.tar
bukkit-47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5.tar.gz
bukkit-47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5.tar.lz
bukkit-47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5.tar.xz
bukkit-47d436c38610b9dc6b8ca5a0bb7c07f8c18f6cf5.zip
Added interface for player.saveData and player.loadData.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/Player.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index def7315d..0ed318c4 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -99,6 +99,18 @@ public interface Player extends HumanEntity, CommandSender {
public void setSneaking(boolean sneak);
/**
+ * Saves the players current location, health, inventory, motion, and other information into the username.dat file, in the world/player folder
+ */
+ public void saveData();
+
+ /**
+ * Loads the players current location, health, inventory, motion, and other information from the username.dat file, in the world/player folder
+ *
+ * Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file.
+ */
+ public void loadData();
+
+ /**
* Forces an update of the player's entire inventory.
*
* @return