mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-13 03:41:18 +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;
|
this.value = null;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
newValue = newValue.toUpperCase();
|
||||||
this.value = RegionGroup.valueOf(newValue);
|
this.value = RegionGroup.valueOf(newValue);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
this.value = null;
|
this.value = null;
|
||||||
|
@ -54,6 +54,7 @@ public boolean setValue(String newValue) {
|
|||||||
this.value = null;
|
this.value = null;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
newValue = newValue.toUpperCase();
|
||||||
this.value = State.valueOf(newValue);
|
this.value = State.valueOf(newValue);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
this.value = null;
|
this.value = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user