Skip to content

Commit

Permalink
Fix paper 1.18.X classloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Jun 10, 2024
1 parent f8ff4aa commit e72d332
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,19 @@ private void loadDependencies() {
LibraryManager manager;

try {
Class.forName("com.nookure.staff.paper.bootstrap.PaperPluginModule");
manager = new PaperLibraryManager(this);
Class.forName("io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader");
try {
manager = new PaperLibraryManager(this);
} catch (Exception e) {
manager = new BukkitLibraryManager(this);
logger.severe(e);
logger.warning("------------------------------------------------------------------");
logger.warning("DONT IGNORE THIS MESSAGE, IT'S IMPORTANT!");
logger.warning("There was several issues while trying to load some paper-plugin related stuff.");
logger.warning("If you are using Paper >= 1.8 <= 1.19.4, you might experience some issues.");
logger.warning("Please, report this in the discord server.");
logger.warning("------------------------------------------------------------------");
}
} catch (ClassNotFoundException e) {
manager = new BukkitLibraryManager(this);
}
Expand Down

0 comments on commit e72d332

Please sign in to comment.