mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-10 21:50:42 +00:00
Adding reload command
This commit is contained in:
@@ -156,6 +156,15 @@ public class AntiVPN {
|
||||
}
|
||||
}
|
||||
|
||||
public void reloadConfig() {
|
||||
try {
|
||||
ConfigurationProvider.getProvider(YamlConfiguration.class)
|
||||
.load(new File(pluginFolder.getPath() + File.separator + "config.yml"));
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private void registerCommands() {
|
||||
commands.add(new AntiVPNCommand());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user