Replaced some tabs with spaces

This commit is contained in:
DarkLiKally 2011-02-25 12:22:58 +01:00
parent 881dc38a18
commit 3341574e02
4 changed files with 12 additions and 8 deletions

View File

@ -84,10 +84,10 @@ regions:
waterflow: on waterflow: on
iconomy: iconomy:
enable: on enable: on
buy-on-claim: on buy-on-claim: on
# Price per Block for buying on claim # Price per Block for buying on claim
buy-on-claim-price: 2 buy-on-claim-price: 2
blacklist: blacklist:
logging: logging:

View File

@ -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]

View File

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