Solved Enabling new plugins?

Discussion in 'Plugin Development' started by shades161, Jul 8, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    shades161

    Okay so, my question is, would it be possible to install and create a plugin that can enable new plugins?
    I have seen plugins that will load, enable, and reload plugins that are already installed on the server. But would it be possible to use that same concept to enable a brand new plugin, through a command, without the need of restarting the server?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @shades161 Yes.
    Code:
    getServer().getPluginManager().loadPlugin(pluginfile);
    getServer().getPluginManager().enablePlugin(plugin);
     
  3. Offline

    shades161

Thread Status:
Not open for further replies.

Share This Page