Prevents hidden options from appearing in /sgc config

This commit is contained in:
2022-06-03 19:59:49 +02:00
parent b9dbde7d8e
commit a16cf8086f

View File

@@ -115,7 +115,7 @@ public class StargateCommand extends JavaPlugin {
bannedConfigOptions.add(ConfigurationOption.SHOW_HIKARI_CONFIG);
for (ConfigurationOption option : ConfigurationOption.values()) {
//Configuration options with a null description are unimplemented and should not be used
if (option.getDescription() == null) {
if (option.getDescription() == null || option.isHidden()) {
bannedConfigOptions.add(option);
}
}