[UNTESTED] implement player verification system

This commit is contained in:
Lemon
2018-03-24 20:41:45 +05:00
committed by Lemon
parent 50cb6c4ca9
commit 3576a9bb6e
12 changed files with 568 additions and 90 deletions

View File

@ -1,12 +1,15 @@
package me.totalfreedom.totalfreedommod.config;
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
import org.bukkit.potion.PotionEffectType;
import java.util.List;
public enum ConfigEntry
{
FORCE_IP_ENABLED(Boolean.class, "forceip.enabled"),
FORCE_IP_PORT(Integer.class, "forceip.port"),
FORCE_IP_KICKMSG(String.class, "forceip.kickmsg"),
@ -106,7 +109,7 @@ public enum ConfigEntry
private final Class<?> type;
private final String configName;
private ConfigEntry(Class<?> type, String configName)
ConfigEntry(Class<?> type, String configName)
{
this.type = type;
this.configName = configName;
@ -130,6 +133,7 @@ public enum ConfigEntry
public String setString(String value)
{
getConfig().setString(this, value);
PotionEffectType type = PotionEffectType.ABSORPTION;
return value;
}