From a419c4d4fe77f3026c40fd4f61068bb8088099f1 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 9 Feb 2012 03:16:55 -0800 Subject: [PATCH] Forgot to commit this file. --- .../java/com/gmail/nossr50/listeners/mcPlayerListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java index ac81f5b9f..db3a5b9dd 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java @@ -155,6 +155,10 @@ public class mcPlayerListener implements Listener mmoHelper.containers.remove(player); } + //Save PlayerData to MySQL/FlatFile on player quit + Users.getProfile(player).save(); + + //Remove PlayerProfile Users.removeUser(event.getPlayer()); }