32 |
//System.out.println( ">>" + label); //DEBUG |
//System.out.println( ">>" + label); //DEBUG |
33 |
|
|
34 |
if ( label.equals("levelarea") ) { |
if ( label.equals("levelarea") ) { |
35 |
if (validateLevelOrFill(player, args) ) { |
if (validateLevelOrFill(player, label, args) ) { |
36 |
levelArea(player, loc, args); |
levelArea(player, loc, args); |
37 |
} |
} |
38 |
return true; |
return true; |
40 |
|
|
41 |
|
|
42 |
if ( label.equals("fillarea") ) { |
if ( label.equals("fillarea") ) { |
43 |
if (validateLevelOrFill(player, args) ) { |
if (validateLevelOrFill(player, label, args) ) { |
44 |
fillArea(player, loc, args); |
fillArea(player, loc, args); |
45 |
} |
} |
46 |
return true; |
return true; |
160 |
for (int x=(playerX-radius); x<=(playerX+radius); x++) { |
for (int x=(playerX-radius); x<=(playerX+radius); x++) { |
161 |
for (int z=(playerZ-radius); z<=(playerZ+radius); z++) { |
for (int z=(playerZ-radius); z<=(playerZ+radius); z++) { |
162 |
//int y = getGroundLevel(x,z) - 1; |
//int y = getGroundLevel(x,z) - 1; |
163 |
int y = world.getHighestBlockYAt(x, z); |
int y = world.getHighestBlockYAt(x, z) - 1; |
164 |
|
|
165 |
world.getBlockAt(x, y, z).setTypeId(blockid); |
world.getBlockAt(x, y, z).setTypeId(blockid); |
166 |
} |
} |