summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-04-12 03:21:38 +0100
committerElgarL <ElgarL@palmergames.com>2012-04-12 03:21:38 +0100
commit9f744beb135fb93ca0b875369c4d3bc48a20cbb8 (patch)
tree5885d95a1bcd32b0c103421e448529bb8e0babd1 /EssentialsGroupManager/src/org/anjocaido
parent62a297ec6d2dc417c2e8d97d5e3e9abbf15c6ed6 (diff)
downloadEssentials-9f744beb135fb93ca0b875369c4d3bc48a20cbb8.tar
Essentials-9f744beb135fb93ca0b875369c4d3bc48a20cbb8.tar.gz
Essentials-9f744beb135fb93ca0b875369c4d3bc48a20cbb8.tar.lz
Essentials-9f744beb135fb93ca0b875369c4d3bc48a20cbb8.tar.xz
Essentials-9f744beb135fb93ca0b875369c4d3bc48a20cbb8.zip
Unregister the worldsHolder as a service on a reload/shutdown instead of
the whole plugin.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 1177e3357..1c4011ff8 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -98,7 +98,7 @@ public class GroupManager extends JavaPlugin {
setLoaded(false);
// Un-register this service.
- this.getServer().getServicesManager().unregister(this);
+ this.getServer().getServicesManager().unregister(this.worldsHolder);
disableScheduler(); // Shutdown before we save, so it doesn't interfere.
if (worldsHolder != null) {