Reloading plugin

Discussion in 'Plugin Development' started by spy85, Mar 9, 2014.

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


    I am working on a reload method. How do I make this reload the plugin completely as if it were rebooting the server? Does it vary depending on the plugin? Thanks!
  2. Offline


    Does your plugin have a config? If so, try:
    1. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)
    3. {
    4. if(cmd.getName().equalsIgnoreCase("reloadMyPlugin"))
    5. {
    6. this.reloadConfig();
    7. }
  3. Offline


    If you want to reload your own plugin, you can reset all variables, clearing hashmaps and everything (like as it would happens on a reload) but I'm not sure about other plugins..
    BrushPainter I think he meant reload the plugin, not the config file.
  4. Offline


Thread Status:
Not open for further replies.

Share This Page