@Override
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
    
        if(commandLabel.equalsIgnoreCase("smite")) {
            
        Player target = (Bukkit.getServer().getPlayer(args[0]));
        
        if (target == null) {
           sender.sendMessage(args[0] + " is not online!");
           return false;
        }
        
        if (args.length < 2) {
           sender.sendMessage("Not enough arguments!");
           return false;
        }
        else{
            String reason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length), " ");
        target.getWorld().strikeLightning(target.getLocation());
        target.getWorld().strikeLightning(target.getLocation());
        target.getWorld().strikeLightning(target.getLocation());
        target.setHealth(0.0);
        target.sendMessage(ChatColor.RED + "You have been a BAD person... read the rules below now!");
        Bukkit.getServer().dispatchCommand(target, "rules");
        Bukkit.broadcastMessage(ChatColor.GOLD + target.getName() + " has been smitten for " + ChatColor.RED + reason + ChatColor.GOLD + " by " + ChatColor.DARK_PURPLE + sender.getName() + ChatColor.GOLD + "!");
        return true;
        }
        }
        return false;
    }