From be7992d5411324f8c86d59568a4207d5a4e71efa Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 22 Jul 2013 11:25:56 +0200 Subject: [PATCH] Disable all abilities when a player quits Fixes #1295 --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 431d5a8e8..54018406f 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -260,6 +260,8 @@ public class PlayerListener implements Listener { return; } + UserManager.getPlayer(player).resetAbilityMode(); + /* GARBAGE COLLECTION */ BleedTimerTask.bleedOut(player); // Bleed it out UserManager.getPlayer(player).getProfile().save();