mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 21:22:09 +00:00
Unregister the worldsHolder as a service on a reload/shutdown instead of
the whole plugin.
This commit is contained in:
parent
62a297ec6d
commit
9f744beb13
2 changed files with 3 additions and 2 deletions
|
@ -175,4 +175,5 @@ v 2.0:
|
||||||
- Startup errors will now lock out ALL commands other than '/manload'
|
- Startup errors will now lock out ALL commands other than '/manload'
|
||||||
- Fix 'manuadd' to use the default or selected world (via 'manselect'), if the world is not specified in the command.
|
- Fix 'manuadd' to use the default or selected world (via 'manselect'), if the world is not specified in the command.
|
||||||
- Expand GlobalGroups.yml and groups.yml to cover the VanishNoPacket plugin. Demonstrating how to negate and add nodes when using the '*' permission with inheritance.
|
- Expand GlobalGroups.yml and groups.yml to cover the VanishNoPacket plugin. Demonstrating how to negate and add nodes when using the '*' permission with inheritance.
|
||||||
- Fix silly nested throw/catch statements. Errors are now correctly generated when reading yml's.
|
- Fix silly nested throw/catch statements. Errors are now correctly generated when reading yml's.
|
||||||
|
- Unregister the worldsHolder as a service on a reload/shutdown instead of the whole plugin.
|
|
@ -98,7 +98,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
setLoaded(false);
|
setLoaded(false);
|
||||||
|
|
||||||
// Un-register this service.
|
// 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.
|
disableScheduler(); // Shutdown before we save, so it doesn't interfere.
|
||||||
if (worldsHolder != null) {
|
if (worldsHolder != null) {
|
||||||
|
|
Loading…
Reference in a new issue