mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-12 07:38:11 +02:00
Fix NPE when metrics has been opted out of
This commit is contained in:
parent
a6950dd9d8
commit
3faa57ee70
@ -187,6 +187,7 @@ 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();
|
||||||
|
if (metrics != null)
|
||||||
metrics.stop();
|
metrics.stop();
|
||||||
|
|
||||||
tearDownScripting();
|
tearDownScripting();
|
||||||
|
Loading…
Reference in New Issue
Block a user