mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
Split unsafe enchantments in kits to a new config option
This commit is contained in:
parent
a1a190bb02
commit
3f2c2aadbb
4 changed files with 14 additions and 2 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue