From 3a9a37f54b1673c7c9a17914c0767008b7ba3c7c Mon Sep 17 00:00:00 2001 From: Vincent Roquelaure Date: Sun, 26 Sep 2021 14:26:42 +0200 Subject: [PATCH] HolographicDisplays and ProtocolLib are not more required to use the plugin (still needed for holograms) --- build.gradle | 2 +- src/main/java/me/davidml16/aparkour/Main.java | 8 +++----- src/main/resources/plugin.yml | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index aa5c163..1f9d675 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group = 'me.davidml16' -version = '3.7.6' +version = '3.7.7' description = 'AParkour' sourceCompatibility = '1.8' diff --git a/src/main/java/me/davidml16/aparkour/Main.java b/src/main/java/me/davidml16/aparkour/Main.java index 854d156..5e70932 100644 --- a/src/main/java/me/davidml16/aparkour/Main.java +++ b/src/main/java/me/davidml16/aparkour/Main.java @@ -98,11 +98,9 @@ public void onEnable() { hologramsEnabled = getConfig().getBoolean("Hologram.Enabled"); if (isHologramsEnabled()) { - if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays") || !Bukkit.getPluginManager().isPluginEnabled("ProtocolLib")) { - getLogger().severe("*** HolographicDisplays / ProtocolLib is not installed or not enabled. ***"); - getLogger().severe("*** This plugin will be disabled. ***"); - setEnabled(false); - return; + if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays") && !Bukkit.getPluginManager().isPluginEnabled("ProtocolLib")) { + log.sendMessage(ColorManager.translate(" >>> &cError, cannot initialize holograms. Require HolographicDisplays and ProtocolLib which are not installed or enabled.")); + hologramsEnabled = false; } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 1147345..60d9b8f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,11 +1,10 @@ name: AParkour -version: 3.7.6 +version: 3.7.7 author: DavidML16 main: me.davidml16.aparkour.Main api-version: 1.13 load: POSTWORLD -depend: [HolographicDisplays, ProtocolLib] -softdepend: [PlaceholderAPI, Vault] +softdepend: [PlaceholderAPI, Vault, HolographicDisplays, ProtocolLib] commands: aparkour: description: Use this to see all commands.