mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-17 04:41:31 +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());
|
||||
Editor.leaveAll();
|
||||
CitizensAPI.shutdown();
|
||||
metrics.stop();
|
||||
if (metrics != null)
|
||||
metrics.stop();
|
||||
|
||||
tearDownScripting();
|
||||
// Don't bother with this part if MC versions are not compatible
|
||||
|
Loading…
Reference in New Issue
Block a user