mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-19 22:03:12 +01:00
Fix NPE when metrics has been opted out of
This commit is contained in:
parent
dd3be846be
commit
ec41226a50
@ -187,7 +187,8 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
|||||||
Bukkit.getPluginManager().callEvent(new CitizensDisableEvent());
|
Bukkit.getPluginManager().callEvent(new CitizensDisableEvent());
|
||||||
Editor.leaveAll();
|
Editor.leaveAll();
|
||||||
CitizensAPI.shutdown();
|
CitizensAPI.shutdown();
|
||||||
metrics.stop();
|
if (metrics != null)
|
||||||
|
metrics.stop();
|
||||||
|
|
||||||
tearDownScripting();
|
tearDownScripting();
|
||||||
// Don't bother with this part if MC versions are not compatible
|
// Don't bother with this part if MC versions are not compatible
|
||||||
|
Loading…
Reference in New Issue
Block a user