/**
* @see com.sijobe.spc.wrapper.CommandBase#execute(com.sijobe.spc.wrapper.CommandSender, java.util.List)
*/
@Override
public void execute(CommandSender sender, List<?> params) throws CommandException {
Player player = getSenderAsPlayer(sender);
if (params.size() == 0) {
player.getWorld().createExplosion(player, player.getPosition(), DEFAULT_SIZE);
} else if (params.size() == 1) {
player.getWorld().createExplosion(player, player.getPosition(), (Integer)params.get(0));
} else if (params.size() > 3) {
Coordinate location = new Coordinate((Double)params.get(1), (Double)params.get(2), (Double)params.get(3));
player.getWorld().createExplosion(player, location, (Integer)params.get(0));
}
sender.sendMessageToPlayer("Boom!");
}