From 6f7e7bb4d17d6340eefae23ccba4481e747c6feb Mon Sep 17 00:00:00 2001 From: Adrian Date: Sun, 3 Sep 2023 17:48:01 -0500 Subject: [PATCH] misc: Added deprecation message for old versions --- .../authmevelocity/paper/AuthMeVelocityPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paper/src/main/java/io/github/_4drian3d/authmevelocity/paper/AuthMeVelocityPlugin.java b/paper/src/main/java/io/github/_4drian3d/authmevelocity/paper/AuthMeVelocityPlugin.java index 5223d3d..2c53915 100644 --- a/paper/src/main/java/io/github/_4drian3d/authmevelocity/paper/AuthMeVelocityPlugin.java +++ b/paper/src/main/java/io/github/_4drian3d/authmevelocity/paper/AuthMeVelocityPlugin.java @@ -58,14 +58,16 @@ public final class AuthMeVelocityPlugin extends JavaPlugin { libraryManager = new PaperLibraryManager(this); } catch (ClassNotFoundException e) { 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(); try { this.config = ConfigurationContainer.load(dataFolder, PaperConfiguration.class); } catch (Throwable e) { - getLogger().log(Level.SEVERE, "Could not load config.conf file", e); - getServer().getPluginManager().disablePlugin(this); + this.getLogger().log(Level.SEVERE, "Could not load config.conf file", e); + this.getServer().getPluginManager().disablePlugin(this); return; }