misc: Added deprecation message for old versions

This commit is contained in:
Adrian 2023-09-03 17:48:01 -05:00
parent 0c1dbaed58
commit 6f7e7bb4d1
No known key found for this signature in database
GPG Key ID: FB8EF84DCE1BE452

View File

@ -58,14 +58,16 @@ public final class AuthMeVelocityPlugin extends JavaPlugin {
libraryManager = new PaperLibraryManager(this); libraryManager = new PaperLibraryManager(this);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
libraryManager = new BukkitLibraryManager(this); libraryManager = new BukkitLibraryManager(this);
this.getLogger().warning("You are using Spigot or a very old version of the platform you are using."
+"\nIn the future AuthMeVelocity will no longer support this version. Consider upgrading to Paper 1.19.4+.");
} }
new LibsManager(libraryManager).loadLibraries(); new LibsManager(libraryManager).loadLibraries();
try { try {
this.config = ConfigurationContainer.load(dataFolder, PaperConfiguration.class); this.config = ConfigurationContainer.load(dataFolder, PaperConfiguration.class);
} catch (Throwable e) { } catch (Throwable e) {
getLogger().log(Level.SEVERE, "Could not load config.conf file", e); this.getLogger().log(Level.SEVERE, "Could not load config.conf file", e);
getServer().getPluginManager().disablePlugin(this); this.getServer().getPluginManager().disablePlugin(this);
return; return;
} }