Fixed -w flag for /rg load and /rg save.

This commit is contained in:
sk89q 2013-07-07 12:14:41 -07:00
parent 977c7d2f29
commit 6f56cb29a5

View File

@ -1067,7 +1067,7 @@ public void remove(CommandContext args, CommandSender sender) throws CommandExce
* @param sender the sender
* @throws CommandException any error
*/
@Command(aliases = {"load", "reload"}, usage = "[world]",
@Command(aliases = {"load", "reload"}, usage = "[-w world]", flags = "w:",
desc = "Reload regions from file", max = 1)
public void load(CommandContext args, CommandSender sender) throws CommandException {
World world = getWorld(args, sender, 'w'); // Get the world
@ -1090,7 +1090,7 @@ public void load(CommandContext args, CommandSender sender) throws CommandExcept
* @param sender the sender
* @throws CommandException any error
*/
@Command(aliases = {"save", "write"}, usage = "[world]",
@Command(aliases = {"save", "write"}, usage = "[-w world]", flags = "w:",
desc = "Re-save regions to file", max = 1)
public void save(CommandContext args, CommandSender sender) throws CommandException {
World world = getWorld(args, sender, 'w'); // Get the world