mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 03:25:13 +01:00
Fix NPE when metrics has been opted out of
This commit is contained in:
parent
a6950dd9d8
commit
3faa57ee70
@ -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