Config Reload of cached lists
This commit is contained in:
parent
8c9be4f1f4
commit
8a76616969
4 changed files with 15 additions and 8 deletions
|
@ -55,6 +55,7 @@ public class BlockStateConfig extends Configuration implements IConfigurationSub
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setValues(ConfigurationSection sect) {
|
public void setValues(ConfigurationSection sect) {
|
||||||
|
ignoredWorlds = null;
|
||||||
super.setValues(sect);
|
super.setValues(sect);
|
||||||
entry.setDefaultEnabled(getEnabled());
|
entry.setDefaultEnabled(getEnabled());
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,7 +298,7 @@ public class DBQueries {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new RuntimeException("Currently only SQLite is supported.");
|
throw new RuntimeException("Currently only SQLite or MySQL is supported.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@ import de.jaschastarke.modularize.ModuleEntry;
|
||||||
@ArchiveDocComments
|
@ArchiveDocComments
|
||||||
@PluginConfigurations(parent = Config.class)
|
@PluginConfigurations(parent = Config.class)
|
||||||
public class CmdBlockerConfig extends Configuration implements IConfigurationSubGroup {
|
public class CmdBlockerConfig extends Configuration implements IConfigurationSubGroup {
|
||||||
|
private CmdBlockList blockList;
|
||||||
|
|
||||||
protected ModCmdBlocker mod;
|
protected ModCmdBlocker mod;
|
||||||
protected ModuleEntry<IModule> entry;
|
protected ModuleEntry<IModule> entry;
|
||||||
|
|
||||||
|
@ -37,6 +39,7 @@ public class CmdBlockerConfig extends Configuration implements IConfigurationSub
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setValues(ConfigurationSection sect) {
|
public void setValues(ConfigurationSection sect) {
|
||||||
|
blockList = null;
|
||||||
super.setValues(sect);
|
super.setValues(sect);
|
||||||
entry.setDefaultEnabled(getEnabled());
|
entry.setDefaultEnabled(getEnabled());
|
||||||
}
|
}
|
||||||
|
@ -69,8 +72,6 @@ public class CmdBlockerConfig extends Configuration implements IConfigurationSub
|
||||||
public boolean getEnabled() {
|
public boolean getEnabled() {
|
||||||
return config.getBoolean("enabled", true);
|
return config.getBoolean("enabled", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private CmdBlockList blockList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CmdBlockerList
|
* CmdBlockerList
|
||||||
|
|
|
@ -26,6 +26,11 @@ import de.jaschastarke.modularize.ModuleEntry;
|
||||||
@ArchiveDocComments
|
@ArchiveDocComments
|
||||||
@PluginConfigurations(parent = Config.class)
|
@PluginConfigurations(parent = Config.class)
|
||||||
public class LimitConfig extends Configuration implements IConfigurationSubGroup {
|
public class LimitConfig extends Configuration implements IConfigurationSubGroup {
|
||||||
|
private BlackList breakList;
|
||||||
|
private BlackListEntity interactEntityList;
|
||||||
|
private BlackList interactList;
|
||||||
|
private BlackList useList;
|
||||||
|
|
||||||
protected ModCreativeLimits mod;
|
protected ModCreativeLimits mod;
|
||||||
protected ModuleEntry<IModule> entry;
|
protected ModuleEntry<IModule> entry;
|
||||||
|
|
||||||
|
@ -49,6 +54,10 @@ public class LimitConfig extends Configuration implements IConfigurationSubGroup
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setValues(ConfigurationSection sect) {
|
public void setValues(ConfigurationSection sect) {
|
||||||
|
breakList = null;
|
||||||
|
interactEntityList = null;
|
||||||
|
interactList = null;
|
||||||
|
useList = null;
|
||||||
super.setValues(sect);
|
super.setValues(sect);
|
||||||
entry.setDefaultEnabled(getEnabled());
|
entry.setDefaultEnabled(getEnabled());
|
||||||
|
|
||||||
|
@ -159,8 +168,6 @@ public class LimitConfig extends Configuration implements IConfigurationSubGroup
|
||||||
return getEnum(BlockPickup.class, "pickup", BlockPickup.PREVENT);
|
return getEnum(BlockPickup.class, "pickup", BlockPickup.PREVENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private BlackList interactList;
|
|
||||||
/**
|
/**
|
||||||
* LimitInteraction
|
* LimitInteraction
|
||||||
*
|
*
|
||||||
|
@ -189,7 +196,7 @@ public class LimitConfig extends Configuration implements IConfigurationSubGroup
|
||||||
}
|
}
|
||||||
return interactList;
|
return interactList;
|
||||||
}
|
}
|
||||||
private BlackListEntity interactEntityList;
|
|
||||||
/**
|
/**
|
||||||
* LimitEntityInteraction
|
* LimitEntityInteraction
|
||||||
*
|
*
|
||||||
|
@ -212,7 +219,6 @@ public class LimitConfig extends Configuration implements IConfigurationSubGroup
|
||||||
return interactEntityList;
|
return interactEntityList;
|
||||||
}
|
}
|
||||||
|
|
||||||
private BlackList useList;
|
|
||||||
/**
|
/**
|
||||||
* LimitUse
|
* LimitUse
|
||||||
*
|
*
|
||||||
|
@ -241,7 +247,6 @@ public class LimitConfig extends Configuration implements IConfigurationSubGroup
|
||||||
return useList;
|
return useList;
|
||||||
}
|
}
|
||||||
|
|
||||||
private BlackList breakList;
|
|
||||||
/**
|
/**
|
||||||
* LimitBreak
|
* LimitBreak
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue