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:
Josh Roy 2021-01-08 15:39:32 -05:00 committed by GitHub
parent 70de83827d
commit 8177893e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 73 additions and 4 deletions

View file

@ -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);