GlowstoneMC / Glowstone-Legacy

An open-source server for the Bukkit Minecraft modding interface
Other
363 stars 122 forks source link

Player data not saved on server shutdown #622

Open Tonodus opened 9 years ago

Tonodus commented 9 years ago

Bug description: Currently when the server is stopped no player data is saved (f.e. inventory contents).

How to reproduce: Give yourself an item into your inventory. Type /stop without disconnection! Let the server kick you. Restart server and join. => your previously given item is lost

Cause: Bukkit's stop command calls Bukkit.shutdown() => GlowServer#shutdown() => every player is kicked => session gets disconnected => the channel is closed without further saving