A usage string may look like + * {@code [-w <world>] <var1> <var2>}.
+ * + * @return A usage string + */ + @Override + public String getUsage() { + return "[-p] setting:value..."; + } + /** * Get a list of suggestions based on input. * diff --git a/sponge/src/main/java/com/tommytony/war/struct/Region.java b/sponge/src/main/java/com/tommytony/war/struct/Region.java index 3575d65..ecbf06f 100644 --- a/sponge/src/main/java/com/tommytony/war/struct/Region.java +++ b/sponge/src/main/java/com/tommytony/war/struct/Region.java @@ -1,6 +1,6 @@ package com.tommytony.war.struct; -import org.spongepowered.api.block.Block; +import org.spongepowered.api.block.BlockLoc; import org.spongepowered.api.math.Vector3d; import org.spongepowered.api.world.Location; import org.spongepowered.api.world.extent.BlockVolume; @@ -84,7 +84,7 @@ public class Region implements BlockVolume { * @return The block */ @Override - public Block getBlock(Vector3d position) { + public BlockLoc getBlock(Vector3d position) { return first.getExtent().getBlock(position); } @@ -97,7 +97,7 @@ public class Region implements BlockVolume { * @return The block */ @Override - public Block getBlock(int x, int y, int z) { + public BlockLoc getBlock(int x, int y, int z) { return first.getExtent().getBlock(x, y, z); } }