Skip to content

Commit

Permalink
🐛 fix(Versioning): Force 1.19+
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfElements committed Sep 7, 2023
1 parent a03f7b2 commit 0feb2ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/me/profelements/dynatech/DynaTech.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.profelements.dynatech;

import io.github.thebusybiscuit.slimefun4.api.MinecraftVersion;
import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
Expand Down Expand Up @@ -61,6 +62,11 @@ public void onEnable() {
if (getConfig().getBoolean("options.auto-update", true) && getDescription().getVersion().startsWith("DEV - ")) {
new GitHubBuildsUpdater(this, getFile(), "ProfElements/DynaTech/master").start();
}

if (Slimefun.getMinecraftVersion().isAtLeast(MinecraftVersion.MINECRAFT_1_19) == false) {
getLogger().warning("DynaTech only support 1.19+, disabling.");
getServer().getPluginManager().disablePlugin(this);
}
}

@Override
Expand Down

0 comments on commit 0feb2ee

Please sign in to comment.