As the title suggests, Bukkit.getPluginManager().enablePlugin(plugin); returns an error that i am trying to overlap plugin identifiers. Is there any way to bypass this?
@Override
public void load(Plugin plugin) {
File file = Utilities.getPluginJarFile(plugin.getName());
Plugin target = null;
try {
target = Bukkit.getPluginManager().loadPlugin(file);
} catch (InvalidDescriptionException | InvalidPluginException e) {
instance.getLogger().log(Level.WARNING, e.getMessage());
}
target.onLoad();
Bukkit.getPluginManager().enablePlugin(plugin);
if (!(instance.getBukkitCommandWrap() instanceof BukkitCommandWrap_Useless)) {
Bukkit.getScheduler().runTaskLater(instance, () -> {
this.loadCommands(plugin);
}, 10L);
}
}
- Version Output
- This server is running Paper version git-Paper-436 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 850b736)