[trunk] restore a users saved inventory if they use invsee then logout

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1205 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-04-16 00:54:31 +00:00
parent ed71a41578
commit a9a178466c

View File

@ -130,11 +130,18 @@ public class EssentialsPlayerListener extends PlayerListener
@Override
public void onPlayerQuit(PlayerQuitEvent event)
{
User user = User.get(event.getPlayer());
if(user.savedInventory != null)
{
user.getInventory().setContents(user.savedInventory);
user.savedInventory = null;
}
if (!Essentials.getSettings().getReclaimSetting())
{
return;
}
User.get(event.getPlayer()).dispose();
user.dispose();
Thread thread = new Thread(new Runnable()
{
@SuppressWarnings("LoggerStringConcat")