mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
fix useProtocolLib
This commit is contained in:
+2
-1
@@ -16,7 +16,7 @@ public class ConfigCache {
|
|||||||
private final HashMap<String, CWGroup> groupList = new LinkedHashMap<>();
|
private final HashMap<String, CWGroup> groupList = new LinkedHashMap<>();
|
||||||
public String prefix, command_denied, no_permission, no_such_subcommand, config_reloaded, added_to_whitelist,
|
public String prefix, command_denied, no_permission, no_such_subcommand, config_reloaded, added_to_whitelist,
|
||||||
removed_from_whitelist, group_doesnt_exist, subcommand_denied;
|
removed_from_whitelist, group_doesnt_exist, subcommand_denied;
|
||||||
public boolean useProtocolLib = false;
|
public boolean useProtocolLib;
|
||||||
|
|
||||||
public ConfigCache(File configFile, boolean canDoProtocolLib, Object logger) {
|
public ConfigCache(File configFile, boolean canDoProtocolLib, Object logger) {
|
||||||
this.configFile = configFile;
|
this.configFile = configFile;
|
||||||
@@ -86,6 +86,7 @@ public class ConfigCache {
|
|||||||
added_to_whitelist = config.getString("messages.added_to_whitelist");
|
added_to_whitelist = config.getString("messages.added_to_whitelist");
|
||||||
removed_from_whitelist = config.getString("messages.removed_from_whitelist");
|
removed_from_whitelist = config.getString("messages.removed_from_whitelist");
|
||||||
group_doesnt_exist = config.getString("messages.group_doesnt_exist");
|
group_doesnt_exist = config.getString("messages.group_doesnt_exist");
|
||||||
|
useProtocolLib = config.getBoolean("use_protocollib");
|
||||||
|
|
||||||
ConfigSection groupSection = config.getConfigSection("groups");
|
ConfigSection groupSection = config.getConfigSection("groups");
|
||||||
for (String key : groupSection.getKeys(false)) {
|
for (String key : groupSection.getKeys(false)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user