Lots of progress was made towards jailing the player.

We now handle the jailing of the players and even store their inventory.
Unjailing hasn't been tested at all yet, so that's still to do.
This commit is contained in:
graywolf336
2013-12-27 18:19:47 -06:00
parent d9f88b8eef
commit e4f74e5e91
12 changed files with 235 additions and 37 deletions

View File

@ -14,7 +14,7 @@ import org.bukkit.Location;
* @version 2.0.1
*/
public class Prisoner {
private String name, reason;
private String name, reason, inventory, armor;
private boolean muted, offlinePending, teleporting;
private long time;
private Location previousPosition;
@ -36,6 +36,8 @@ public class Prisoner {
this.teleporting = false;
this.previousPosition = null;
this.previousGameMode = null;
this.inventory = "";
this.armor = "";
}
/** Gets the name of this player. */
@ -153,4 +155,24 @@ public class Prisoner {
else if(previous.isEmpty()) return;
else this.previousGameMode = GameMode.valueOf(previous);
}
/** Gets the inventory string for this player, it is encoded in Base64 string. */
public String getInventory() {
return this.inventory;
}
/** Sets the inventory Base64 string. */
public void setInventory(String inventory) {
this.inventory = inventory;
}
/** Gets the armor content, encoded in Base64 string. */
public String getArmor() {
return this.armor;
}
/** Sets the armor inventory Base64 string. */
public void setArmor(String armor) {
this.armor = armor;
}
}