Skip to content

Commit

Permalink
AddonLoader - add an error message regarding TextAlignment class change
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Apr 14, 2023
1 parent 2129823 commit b9f8401
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/shanebeestudios/skbee/AddonLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,12 @@ private void loadDisplayEntityElements() {
return;
}
if (!Skript.isRunningMinecraft(1,19,4)) {
Util.log("&eDisplay Entities are only available on Minecraft 1.19.4+");
Util.logLoading("&5Display Entity elements &cdisabled &7(&eRequires Minecraft 1.19.4+&7)");
return;
}
if (!Skript.classExists("org.bukkit.entity.TextDisplay$TextAlignment")) {
Util.logLoading("&5Display Entity elements &cdisabled due to a Bukkit API change!");
Util.logLoading("&7- &eYou need to update your server to fix this issue!");
return;
}
try {
Expand Down

0 comments on commit b9f8401

Please sign in to comment.