Solved Plugin config reload issue

Discussion in 'Spigot Plugin Development' started by zDoeProgram, Nov 10, 2018.

  1. Hey, I tried to make a custom reload command for my plugin's config file, but it does not seem to work. The message "config reloaded!" works, but the config dont get reloaded.

    Code (Java):
    Plugin plugin = Main.getPlugin().getServer().getPluginManager().getPlugin("4ChainZ");
                            p.sendMessage("┬žeConfig Reloaded!");
    I dont know if I did it the best possible way, never really messed around with the pluginmanager method that much.

    omg I feel dumb. Didnt see the reload method. Remove this thread please :p
  2. if you are using the Default config, you just need to call the
    Code (Java):
    If you are using a custom config, you'll have to load the config again as you are doing on your onEnable or any method that loads it

Share This Page