mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
enum flags now also take lovercase names
This commit is contained in:
parent
a8b54757e9
commit
8f9bfcf474
@ -53,6 +53,7 @@ public boolean setValue(String newValue) {
|
||||
this.value = null;
|
||||
} else {
|
||||
try {
|
||||
newValue = newValue.toUpperCase();
|
||||
this.value = RegionGroup.valueOf(newValue);
|
||||
} catch (Exception e) {
|
||||
this.value = null;
|
||||
|
@ -54,6 +54,7 @@ public boolean setValue(String newValue) {
|
||||
this.value = null;
|
||||
} else {
|
||||
try {
|
||||
newValue = newValue.toUpperCase();
|
||||
this.value = State.valueOf(newValue);
|
||||
} catch (Exception e) {
|
||||
this.value = null;
|
||||
|
Loading…
Reference in New Issue
Block a user