Merge branch 'development' into paldiu-local

This commit is contained in:
Paldiu
2021-01-04 13:14:53 -06:00
15 changed files with 177 additions and 64 deletions

View File

@ -245,6 +245,19 @@ public enum ConfigEntry
private MainConfig getConfig()
{
return Objects.requireNonNull(TotalFreedomMod.plugin()).config;
return TotalFreedomMod.getPlugin().config;
}
public static ConfigEntry findConfigEntry(String name)
{
name = name.toLowerCase().replace("_", "");
for (ConfigEntry entry : values())
{
if (entry.toString().toLowerCase().replace("_", "").equals(name))
{
return entry;
}
}
return null;
}
}