Option to output player health in json for later web usage.
This commit is contained in:
parent
7937a64f06
commit
728cd8304a
5 changed files with 14 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue