summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org
diff options
context:
space:
mode:
authorMatt Baxter <github@phozop.net>2012-07-10 06:24:17 -0300
committerMatt Baxter <github@phozop.net>2012-07-10 06:24:17 -0300
commitcad0d1d36ced5131886fd030c69bf660b18917fa (patch)
tree377cd3784fa76421eaec9ebfd5c0cae951e6ae80 /EssentialsGroupManager/src/org
parentfa7688b4b5e6429f32b716d252e33b23d3730ec1 (diff)
downloadEssentials-cad0d1d36ced5131886fd030c69bf660b18917fa.tar
Essentials-cad0d1d36ced5131886fd030c69bf660b18917fa.tar.gz
Essentials-cad0d1d36ced5131886fd030c69bf660b18917fa.tar.lz
Essentials-cad0d1d36ced5131886fd030c69bf660b18917fa.tar.xz
Essentials-cad0d1d36ced5131886fd030c69bf660b18917fa.zip
Fix critical flaw in permissions removal.
Potential for removing the removal entirely but this can be figured out later.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
index 05e152286..22883414d 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/permissions/BukkitPermissions.java
@@ -442,18 +442,7 @@ public class BukkitPermissions {
updatePermissions(event.getPlayer(), event.getPlayer().getWorld().getName());
}
- @EventHandler(priority = EventPriority.LOWEST)
- public void onPlayerKick(PlayerKickEvent event) {
-
- Player player = event.getPlayer();
-
- /*
- * force remove any attachments as bukkit may not
- */
- removeAttachment(player);
- }
-
- @EventHandler(priority = EventPriority.LOWEST)
+ @EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerQuit(PlayerQuitEvent event) {
if (!GroupManager.isLoaded())