Skip to content

Commit

Permalink
HolographicDisplays and ProtocolLib are not more required to use the …
Browse files Browse the repository at this point in the history
…plugin (still needed for holograms)
  • Loading branch information
AerWyn81 committed Sep 26, 2021
1 parent 9c30403 commit 3a9a37f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = 'me.davidml16'
version = '3.7.6'
version = '3.7.7'
description = 'AParkour'
sourceCompatibility = '1.8'

Expand Down
8 changes: 3 additions & 5 deletions src/main/java/me/davidml16/aparkour/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3a9a37f

Please sign in to comment.