misc: Added deprecation message for old versions
This commit is contained in:
parent
0c1dbaed58
commit
6f7e7bb4d1
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user