Option to output player health in json for later web usage.

This commit is contained in:
zeeZ 2011-05-18 15:55:24 +02:00 committed by FrozenCow
parent 7937a64f06
commit 728cd8304a
5 changed files with 14 additions and 5 deletions

View file

@ -17,13 +17,15 @@ public class Client {
public String name;
public String world;
public double x, y, z;
public int health;
public Player(String name, String world, double x, double y, double z) {
public Player(String name, String world, double x, double y, double z, int health) {
this.name = ChatColor.stripColor(name);
this.world = world;
this.x = x;
this.y = y;
this.z = z;
this.health = health;
}
}