mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-24 18:19:03 +01:00
Replaced some tabs with spaces
This commit is contained in:
parent
881dc38a18
commit
3341574e02
@ -84,10 +84,10 @@ regions:
|
||||
waterflow: on
|
||||
|
||||
iconomy:
|
||||
enable: on
|
||||
buy-on-claim: on
|
||||
# Price per Block for buying on claim
|
||||
buy-on-claim-price: 2
|
||||
enable: on
|
||||
buy-on-claim: on
|
||||
# Price per Block for buying on claim
|
||||
buy-on-claim-price: 2
|
||||
|
||||
blacklist:
|
||||
logging:
|
||||
|
@ -37,5 +37,4 @@ commands:
|
||||
aliases: tpr
|
||||
buyregion:
|
||||
description: Buy a buyable region
|
||||
usage: /<command> <region id> [info]
|
||||
|
||||
usage: /<command> <region id> [info]
|
@ -68,7 +68,7 @@ public void onBlockDamage(BlockDamageEvent event) {
|
||||
|
||||
Player player = event.getPlayer();
|
||||
Block blockDamaged = event.getBlock();
|
||||
|
||||
|
||||
if (plugin.useRegions && blockDamaged.getType() == Material.CAKE_BLOCK) {
|
||||
Vector pt = toVector(blockDamaged);
|
||||
|
||||
|
@ -138,7 +138,12 @@ private Map<String, String> getFlagData(String name)
|
||||
* @return State
|
||||
*/
|
||||
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) {
|
||||
return State.NONE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user