Question enablePlugin(plugin) gives error.

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

Liparakis

New member
Mar 15, 2024
1
0
1
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)