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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user