mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-01 04:51:27 +01:00
Fix number of args for migratedb command.
This commit is contained in:
parent
96a69aa2ef
commit
ffda88f193
@ -1170,7 +1170,7 @@ public void save(CommandContext args, CommandSender sender) throws CommandExcept
|
|||||||
* @throws CommandException any error
|
* @throws CommandException any error
|
||||||
*/
|
*/
|
||||||
@Command(aliases = {"migratedb"}, usage = "<from> <to>",
|
@Command(aliases = {"migratedb"}, usage = "<from> <to>",
|
||||||
desc = "Migrate from one Protection Database to another.", min = 1)
|
desc = "Migrate from one Protection Database to another.", min = 2, max = 2)
|
||||||
public void migrateDB(CommandContext args, CommandSender sender) throws CommandException {
|
public void migrateDB(CommandContext args, CommandSender sender) throws CommandException {
|
||||||
// Check permissions
|
// Check permissions
|
||||||
if (!getPermissionModel(sender).mayMigrateRegionStore()) {
|
if (!getPermissionModel(sender).mayMigrateRegionStore()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user