From a3bcd77f9d550a8fee39dfe624a7a40babcd6ed6 Mon Sep 17 00:00:00 2001 From: Mats Date: Tue, 28 Apr 2020 20:04:18 +0200 Subject: [PATCH] Done lol. --- .../com/craftmend/openaudiomc/spigot/OpenAudioMcSpigot.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/com/craftmend/openaudiomc/spigot/OpenAudioMcSpigot.java b/plugin/src/main/java/com/craftmend/openaudiomc/spigot/OpenAudioMcSpigot.java index e98430fb1..58bc5c44f 100644 --- a/plugin/src/main/java/com/craftmend/openaudiomc/spigot/OpenAudioMcSpigot.java +++ b/plugin/src/main/java/com/craftmend/openaudiomc/spigot/OpenAudioMcSpigot.java @@ -106,7 +106,11 @@ public void onEnable() { } if (getServer().getPluginManager().isPluginEnabled("Train_Carts")) { - this.trainCartsModule = new TrainCartsModule(this); + try { + this.trainCartsModule = new TrainCartsModule(this); + } catch (Exception e) { + OpenAudioLogger.toConsole("Hmn, looks like you have an old version of traincarts and thus OpenAudio failed to hook in."); + } } // set state to idle, to allow connections and such, but only if not a node