Split unsafe enchantments in kits to a new config option

This commit is contained in:
snowleo 2014-02-18 23:47:18 +01:00
parent a1a190bb02
commit 3f2c2aadbb
4 changed files with 14 additions and 2 deletions

View file

@ -944,6 +944,12 @@ public class Settings implements net.ess3.api.ISettings
return config.getBoolean("repair-enchanted", true);
}
@Override
public boolean allowUnsafeEnchantmentsInKits()
{
return config.getBoolean("unsafe-enchantments-in-kits", config.getBoolean("unsafe-enchantments", false));
}
@Override
public boolean allowUnsafeEnchantments()
{