mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-28 05:25:20 +01:00
Replaced some tabs with spaces
This commit is contained in:
parent
881dc38a18
commit
3341574e02
@ -38,4 +38,3 @@ commands:
|
|||||||
buyregion:
|
buyregion:
|
||||||
description: Buy a buyable region
|
description: Buy a buyable region
|
||||||
usage: /<command> <region id> [info]
|
usage: /<command> <region id> [info]
|
||||||
|
|
@ -138,7 +138,12 @@ private Map<String, String> getFlagData(String name)
|
|||||||
* @return State
|
* @return State
|
||||||
*/
|
*/
|
||||||
public State get(String flag) {
|
public State get(String flag) {
|
||||||
State state = State.valueOf(getFlagData("states").get(flag));
|
String value = getFlagData("states").get(flag);
|
||||||
|
if(value == null)
|
||||||
|
{
|
||||||
|
return State.NONE;
|
||||||
|
}
|
||||||
|
State state = State.valueOf(value);
|
||||||
if (state == null) {
|
if (state == null) {
|
||||||
return State.NONE;
|
return State.NONE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user