Removing player from world/players folder

Discussion in 'Plugin Development' started by Josvth, Mar 14, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Josvth

    With my plugin Random Spawn I want the server to think it's the players first time they join the world. Normally I use the world/players folder and check if the .dat file of the player exists. If not, it's their first join.

    Is it save to delete the .dat? Or is there important information other than location and inventory, like metadata, saved in this file?

    Let me know what you think!
     
  2. Offline

    Sorroko

    Josvth I've deleted them lots of times without an issue ;) But why would you need to?
     
  3. Offline

    Josvth

    ryan7745 Well my Random Spawn plugin generates/loads the spawn area before a player is teleported to there spawn. During this loading they will float around in the sky. However if they disconnect, the loading should cancel and if the player enters the server again he should be random spawned again.

    To do this I could just remove the .dat file and my join listener would think it's the first time this player entered the world.
     
Thread Status:
Not open for further replies.

Share This Page