mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-13 09:14:32 +00:00
Add auto armor equip for kits (#3629)
Adds a config option to have player auto-equip armor from kits. Also adds a performance improvement for all uses of EnumUtil#getAllMatching by switching it to an EnumSet. Closes #347, closes #3452.
This commit is contained in:
parent
70de83827d
commit
8177893e28
6 changed files with 73 additions and 4 deletions
|
@ -1528,6 +1528,11 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return newSigns;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKitAutoEquip() {
|
||||
return config.getBoolean("kit-auto-equip", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPastebinCreateKit() {
|
||||
return config.getBoolean("pastebin-createkit", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue