Closed seema84 closed 8 years ago
Config is reloading, because plugin is restarting - config is reloading in onEnable() in PvpToggle plugin.
ok i'm confused about this info "Command /pvpadmin reload restart PvpToggle plugin, not configuration." but its ok when it is in onEnable()
@xgh69 reloads the whole plugin by Spigot's PluginManager, config loads itself when the plugin gets enabled again. Don't worry about all this @seema84. Code you commited is just an unnecessary action that has no point.
yes its right if you restart the whole plugin on reload - my code was a single config reload (without plugin reload)
Well, I don't know why reloading whole plugin is better than reloading the config. Ask the author. Even though your code was a single config reload as you said, next lines still reload the whole thing.
add config reload