Added debug messages
Only save player data if the player is online. If the player is offline the data is saved later (Cache Refresh)