Skip to content

Commit

Permalink
Failsafe for HolographicDisplays v3
Browse files Browse the repository at this point in the history
  • Loading branch information
SkytAsul committed Jun 8, 2022
1 parent dc57250 commit 9d314a6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,16 @@ public class DependenciesManager implements Listener {
});

public static final BQDependency holod2 = new BQDependency("HolographicDisplays", () -> QuestsAPI.setHologramsManager(new BQHolographicDisplays2()), null, plugin -> plugin.getClass().getName().equals("com.gmail.filoghost.holographicdisplays.HolographicDisplays"));
public static final BQDependency holod3 = new BQDependency("HolographicDisplays", () -> QuestsAPI.setHologramsManager(new BQHolographicDisplays3()), null, plugin -> plugin.getClass().getName().equals("me.filoghost.holographicdisplays.plugin.HolographicDisplays"));
public static final BQDependency holod3 = new BQDependency("HolographicDisplays", () -> QuestsAPI.setHologramsManager(new BQHolographicDisplays3()), null, plugin -> {
if (!plugin.getClass().getName().equals("me.filoghost.holographicdisplays.plugin.HolographicDisplays")) return false;
try {
Class.forName("me.filoghost.holographicdisplays.api.HolographicDisplaysAPI");
return true;
}catch (ClassNotFoundException ex) {
BeautyQuests.logger.warning("Your version of HolographicDisplays is unsupported. Please make sure you are running the LATEST dev build of HolographicDisplays.");
return false;
}
});

public static final BQDependency sentinel = new BQDependency("Sentinel", BQSentinel::initialize);

Expand Down

0 comments on commit 9d314a6

Please sign in to comment.