fixed bug for empty server
updated player.lua due to compatibility issues