Adding reload command

This commit is contained in:
Dawson Hessler
2022-08-05 14:14:42 -04:00
parent e01cbf95f2
commit 7654cca651
14 changed files with 93 additions and 20 deletions
@@ -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());
}