    public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]) {
        String player = sender.getName();
        String target = "";
        try {
            target = args[0];
        } catch (ArrayIndexOutOfBoundsException e) {
        }
        if ((cmd.getName().equalsIgnoreCase("greport")) && (args.length == 1)) {
            if (!sender.hasPermission("ireport.greport") && !sender.isOp()) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.griefing." + player);
            sender.sendMessage(ChatColor.BLUE + "You successfully reported " + ChatColor.RED + target);
            getConfig().set("reports.griefing." + player, Rlocation.getxyz(this, args[0]) + "; " + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for griefing");
                }
            }
            return true;
        }
        if ((cmd.getName().equalsIgnoreCase("hreport")) && (args.length == 2)) {
            if (!sender.hasPermission("ireport.hreport")) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.hacking." + player);
            getConfig().set("reports.hacking." + player, new StringBuilder("type: ").append(args[1]).toString() + "; " + target);
            sender.sendMessage(ChatColor.BLUE + "You successfully reported " + ChatColor.RED + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for hacking " + args[1]);
                }
            }
            return true;
        }
        if ((cmd.getName().equalsIgnoreCase("sreport")) && (args.length == 1)) {
            if (!sender.hasPermission("ireport.sreport")) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.swearing." + player);
            getConfig().set("reports.swearing." + player, "; " + target);
            sender.sendMessage(ChatColor.BLUE + "You don't have permission to perform this command" + ChatColor.RED + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for swearing");
                }
            }
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("ireport")) {
            sender.sendMessage(ChatColor.YELLOW + "==============================");
            sender.sendMessage(ChatColor.GREEN + "/greport - Report a griefer");
            sender.sendMessage(ChatColor.GREEN + "/hreport - Report a hacker");
            sender.sendMessage(ChatColor.GREEN + "/sreport - Report a swearer");
            sender.sendMessage(ChatColor.GREEN + "/ireport - Show this help menu");
            sender.sendMessage(ChatColor.YELLOW + "==============================");
            sender.sendMessage(ChatColor.MAGIC + "Created by tudse145 & heni123321");
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("reports")) {
            try {
                Scanner sc = new Scanner(new File("plugins/iReport/", "config.yml"));
                while (sc.hasNext()) {
                    sender.sendMessage(sc.nextLine());
                }
                sc.close();
            } catch (FileNotFoundException e) {
            }
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("reports")) {
            return true;
        }
        return false;
    }

    public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]) {
        String player = sender.getName();
        String target = "";
        try {
            target = args[0];
        } catch (ArrayIndexOutOfBoundsException e) {
        }
        if ((cmd.getName().equalsIgnoreCase("greport")) && (args.length == 1)) {
            if (!sender.hasPermission("ireport.greport") && !sender.isOp()) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.griefing." + player);
            sender.sendMessage(ChatColor.BLUE + "You successfully reported " + ChatColor.RED + target);
            getConfig().set("reports.griefing." + player, Rlocation.getxyz(this, args[0]) + "; " + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for griefing");
                }
            }
            return true;
        }
        if ((cmd.getName().equalsIgnoreCase("hreport")) && (args.length == 2)) {
            if (!sender.hasPermission("ireport.hreport")) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.hacking." + player);
            getConfig().set("reports.hacking." + player, new StringBuilder("type: ").append(args[1]).toString() + "; " + target);
            sender.sendMessage(ChatColor.BLUE + "You successfully reported " + ChatColor.RED + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for hacking " + args[1]);
                }
            }
            return true;
        }
        if ((cmd.getName().equalsIgnoreCase("sreport")) && (args.length == 1)) {
            if (!sender.hasPermission("ireport.sreport")) {
                sender.sendMessage(ChatColor.RED + "You don't have permission to perform this command");
                return true;
            }
            String already = (String) getConfig().get("reports.swearing." + player);
            getConfig().set("reports.swearing." + player, "; " + target);
            sender.sendMessage(ChatColor.BLUE + "You successfully reported" + ChatColor.RED + target);
            saveConfig();
            for (Player p : sender.getServer().getOnlinePlayers()) {
                if (p.isOp() || p.hasPermission("iReport.seereport")) {
                    p.sendMessage(ChatColor.RED + player + " has reported " + target + " for swearing");
                }
            }
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("ireport")) {
            sender.sendMessage(ChatColor.YELLOW + "==============================");
            sender.sendMessage(ChatColor.GREEN + "/greport - Report a griefer");
            sender.sendMessage(ChatColor.GREEN + "/hreport - Report a hacker");
            sender.sendMessage(ChatColor.GREEN + "/sreport - Report a swearer");
            sender.sendMessage(ChatColor.GREEN + "/ireport - Show this help menu");
            sender.sendMessage(ChatColor.YELLOW + "==============================");
            sender.sendMessage(ChatColor.MAGIC + "Created by tudse145 & heni123321");
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("reports")) {
            try {
                Scanner sc = new Scanner(new File("plugins/iReport/", "config.yml"));
                while (sc.hasNext()) {
                    sender.sendMessage(sc.nextLine());
                }
                sc.close();
            } catch (FileNotFoundException e) {
            }
            return true;
        }
        if (cmd.getName().equalsIgnoreCase("reports")) {
            return true;
        }
        return false;
    }
