9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 23:19:22 +00:00

chore: backend rework of NMS support (split off from one file) - BREAKS COMPATIBILITY WITH OLDER VERSIONS

This commit is contained in:
LoJoSho
2024-11-15 20:06:16 -06:00
parent b2c702633b
commit cb2692b953
27 changed files with 438 additions and 352 deletions

View File

@@ -20,8 +20,9 @@ public final class HibiscusCommonsPlugin extends HibiscusPlugin {
public void onStart() {
instance = this;
if (!NMSHandlers.isVersionSupported()) {
getLogger().severe("This version is not supported! Consider switching versions?");
try {
NMSHandlers.setup();
} catch (RuntimeException e) {
getServer().getPluginManager().disablePlugin(this);
return;
}