mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-30 07:37:31 +02:00
Fixed -w flag for /rg load and /rg save.
This commit is contained in:
parent
977c7d2f29
commit
6f56cb29a5
@ -1067,7 +1067,7 @@ public void remove(CommandContext args, CommandSender sender) throws CommandExce
|
|||||||
* @param sender the sender
|
* @param sender the sender
|
||||||
* @throws CommandException any error
|
* @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)
|
desc = "Reload regions from file", max = 1)
|
||||||
public void load(CommandContext args, CommandSender sender) throws CommandException {
|
public void load(CommandContext args, CommandSender sender) throws CommandException {
|
||||||
World world = getWorld(args, sender, 'w'); // Get the world
|
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
|
* @param sender the sender
|
||||||
* @throws CommandException any error
|
* @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)
|
desc = "Re-save regions to file", max = 1)
|
||||||
public void save(CommandContext args, CommandSender sender) throws CommandException {
|
public void save(CommandContext args, CommandSender sender) throws CommandException {
|
||||||
World world = getWorld(args, sender, 'w'); // Get the world
|
World world = getWorld(args, sender, 'w'); // Get the world
|
||||||
|
Loading…
Reference in New Issue
Block a user