Added armor (merged from zeeZ).
This commit is contained in:
parent
3b16a36b99
commit
3fd511a8d1
9 changed files with 99 additions and 13 deletions
|
|
@ -454,7 +454,8 @@ DynMap.prototype = {
|
|||
name: update.name,
|
||||
location: new Location(me.worlds[update.world], parseFloat(update.x), parseFloat(update.y), parseFloat(update.z)),
|
||||
health: update.health,
|
||||
account: update.account
|
||||
armor: update.armor,
|
||||
account: update.account
|
||||
};
|
||||
|
||||
$(me).trigger('playeradded', [ player ]);
|
||||
|
|
@ -497,6 +498,7 @@ DynMap.prototype = {
|
|||
var me = this;
|
||||
var location = player.location = new Location(me.worlds[update.world], parseFloat(update.x), parseFloat(update.y), parseFloat(update.z));
|
||||
player.health = update.health;
|
||||
player.armor = update.armor;
|
||||
|
||||
$(me).trigger('playerupdated', [ player ]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue