How to delete plugin from plugins on running server

Discussion in 'Plugin Development' started by Internetak, Dec 6, 2018.

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

    Internetak

    Hello,
    I moved from Linux to Windows and I'm finding some way to delete plugin from folder plugins while server is running? (plugin would be loaded in memory, but after /reload, it has disable)
    Thanks for help!
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Internetak

    Because I want to remove plugin from folder -> /reload -> plugin unloaded.
     
  4. Online

    timtower Administrator Administrator Moderator

    But why do you want that? Currently I can't think of any legit reasons to do such things.
     
  5. Offline

    Internetak

    Because it's faster, than stop -> waiting... -> remove -> start -> waiting...
     
  6. Offline

    The_Spaceman

    I don't know if this works, but you could try
    Code:
    Bukkit.getPluginManager().disablePlugin(Bukkit.getPluginManager().getPlugin("plugin name"));
    and than delete the jar of it when disabled.
     
  7. Offline

    DutchJellyV2

    Its generally a better idea to test plugins on a localhost server, assuming that you're removing plugins alot because youre testing them.
     
    Last edited: Dec 10, 2018
  8. Offline

    torpkev

    I'd generally assume this is a truly terrible idea 99% of the time. But if you're dead-set on it.. be incredibly careful about permissions or locking down to console only.. can you imagine if a player managed to run a command and deleted your permissions plugin
     
Thread Status:
Not open for further replies.

Share This Page