How can i add a command what reloads a plugin...

Discussion in 'Plugin Development' started by Jozeth, Jan 31, 2012.

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

    Jozeth

    Such as /soreload so if anyone changes the config, it will update in-game.

    Such as enabling explosions then using /soreload it will allow explosions in-game...
     
  2. Offline

    emikodo

    I've never done this before so I'm not sure, but I think getServer().reload() should work.
     
  3. depending on how you have written your plugin a "plugin.reloadConfig();" could be enough,
    if you dont want to reload everything
     
  4. Offline

    Jozeth

    So if i used that command with plugin.reloadConfig(); it will tell the plugin what they have changed?

    Yurij
     
Thread Status:
Not open for further replies.

Share This Page