Fix whitelist not checking some commands

This commit is contained in:
Carlos
2021-08-21 14:36:24 +02:00
parent e6d230c2d8
commit b055b9b248
2 changed files with 47 additions and 44 deletions

View File

@ -82,13 +82,6 @@ public class ConfigManager {
viewerPasswordSection = passwordsSection.createSection("viewer");
}
//For each viewer user, create the password value and the commandWhitelist section if it does not exist
// Set<String> viewerUsersSections = viewerPasswordSection.getKeys(false);
// for (String viewerUserSectionName : viewerUsersSections) {
// ConfigurationSection userSection = viewerPasswordSection.getConfigurationSection(viewerUserSectionName);
// userSection.addDefault("password", "mySecurePassword");
// }
config.options().copyDefaults(true);
plugin.saveConfig();
}