diff --git a/src/lib/plugins/respawn.js b/src/lib/plugins/respawn.js index d349504..f2cfecd 100644 --- a/src/lib/plugins/respawn.js +++ b/src/lib/plugins/respawn.js @@ -10,8 +10,8 @@ module.exports.player=function(player) }); player.sendPosition(); player.updateHealth(20); - player.nearbyPlayers=[]; - player.updateAndSpawnNearbyPlayers(); + player.entity.nearbyEntities=[]; + player.entity.updateAndSpawn(); } }); }; \ No newline at end of file