Solved disabling a plugin with the name as a string

Discussion in 'Plugin Development' started by MAYBE, Jul 24, 2015.

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

    MAYBE

    Hello i just wanted to make a plugin where you can type in a command and disable a plugin but i dont really know how it works.
    what i already tried:
    Code:
    Bukkit.getServer().getPluginManager().disablePlugin();
    
    but that doesnt work because it needa a "Plugin" as the thing inside but how can i make that it disables the plugin with the name "WelcomePlugin" or how ever a plugin is called?
     
  2. Code:
    Bukkit.getPluginManager().disablePlugin(Bukkit.getPluginManager().getPlugin(String)));
     
  3. Offline

    MAYBE

Thread Status:
Not open for further replies.

Share This Page