Multiverse-Core/src/main/java/com/onarandombox/MultiverseCore/commandsold/ConfirmCommand.java

40 lines
1.5 KiB
Java
Raw Normal View History

/******************************************************************************
* Multiverse 2 Copyright (c) the Multiverse Team 2011. *
* Multiverse 2 is licensed under the BSD License. *
* For more information please check the README.md file included *
* with this project. *
******************************************************************************/
package com.onarandombox.MultiverseCore.commandsold;
2011-07-20 16:48:46 +02:00
2011-09-17 17:59:38 +02:00
import com.onarandombox.MultiverseCore.MultiverseCore;
2011-07-20 16:48:46 +02:00
import org.bukkit.command.CommandSender;
import org.bukkit.permissions.PermissionDefault;
2011-09-17 17:59:38 +02:00
import java.util.List;
2011-07-20 16:48:46 +02:00
/**
* Confirms actions.
*/
2011-07-20 16:48:46 +02:00
public class ConfirmCommand extends MultiverseCommand {
public ConfirmCommand(MultiverseCore plugin) {
super(plugin);
// Any command that is dangerous should require op
this.setName("Confirms a command that could destroy life, the universe and everything.");
2011-07-30 08:53:55 +02:00
this.setCommandUsage("/mv confirm");
2011-07-20 16:48:46 +02:00
this.setArgRange(0, 0);
this.addKey("mvconfirm");
2011-08-01 01:29:14 +02:00
this.addKey("mv confirm");
this.addCommandExample("/mv confirm");
2011-07-20 16:48:46 +02:00
this.setPermission("multiverse.core.confirm", "If you have not been prompted to use this, it will not do anything.", PermissionDefault.OP);
2011-07-20 16:48:46 +02:00
}
@Override
public void runCommand(CommandSender sender, List<String> args) {
2021-03-09 13:54:42 +01:00
this.plugin.getCommandQueueManager().runQueuedCommand(sender);
2011-07-20 16:48:46 +02:00
}
}