Add world and group name rewriting, refactor configs

This commit is contained in:
Luck
2016-09-23 18:58:19 +01:00
Unverified
parent 12cd4e19cb
commit f48595b1ff
57 changed files with 420 additions and 309 deletions
@@ -22,9 +22,11 @@
package me.lucko.luckperms.internal;
import me.lucko.luckperms.core.LPConfiguration;
import me.lucko.luckperms.core.AbstractConfiguration;
public class StandaloneConfiguration extends LPConfiguration<StandaloneBase> {
import java.util.Map;
public class StandaloneConfiguration extends AbstractConfiguration<StandaloneBase> {
public StandaloneConfiguration(StandaloneBase plugin) {
super(plugin, "global", true, "null");
}
@@ -33,11 +35,6 @@ public class StandaloneConfiguration extends LPConfiguration<StandaloneBase> {
protected void init() {
}
@Override
protected void set(String path, Object value) {
}
@Override
protected String getString(String path, String def) {
return def;
@@ -52,4 +49,9 @@ public class StandaloneConfiguration extends LPConfiguration<StandaloneBase> {
protected boolean getBoolean(String path, boolean def) {
return def;
}
@Override
protected Map<String, String> getMap(String path, Map<String, String> def) {
return def;
}
}