Retain cross-version compatibility & cleanup (#374)
This commit is contained in:
@@ -18,7 +18,6 @@ public class DeleteCommand implements CommandExecutor {
|
||||
sender.sendMessage(Lang.TITLE + Lang.LOCKED.toString());
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (args.length) {
|
||||
case 1:
|
||||
if (sender instanceof Player) {
|
||||
@@ -40,15 +39,13 @@ public class DeleteCommand implements CommandExecutor {
|
||||
sender.sendMessage(Lang.TITLE.toString() + Lang.DELETE_OTHER_VAULT_ALL.toString().replaceAll("%p", target));
|
||||
break;
|
||||
}
|
||||
|
||||
VaultOperations.deleteOtherVault(sender, target, args[1]);
|
||||
break;
|
||||
default:
|
||||
sender.sendMessage(Lang.TITLE + "/pvdel <number>");
|
||||
sender.sendMessage(Lang.TITLE + "/pvdel <player> <number>");
|
||||
sender.sendMessage(Lang.TITLE + "/pvdel <player> all");
|
||||
sender.sendMessage(Lang.TITLE + "/" + label + " <number>");
|
||||
sender.sendMessage(Lang.TITLE + "/" + label + " <player> <number>");
|
||||
sender.sendMessage(Lang.TITLE + "/" + label + " <player> all");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user