@Override
    public boolean onCommand(CommandSender cs, Command cmd, String label, String[] params)
    {
        if (cmd.getLabel().equals("rewards"))
        {
            if (params.length < 1)
            {
                cs.sendMessage(ChatColor.GOLD + cmd.getUsage());
            }
            else 
            {
                if (params[0].equalsIgnoreCase("reload"))
                {
                    if (params.length < 2)
                    {
                        ChatHandler handler = new ChatHandler(cs);
                        getLogger().addHandler(handler);
                        cs.sendMessage(ChatColor.GREEN + "Reloading rewards...");
                        reload();
                        getLogger().removeHandler(handler);
                    }
                    else
                    {   
                        if (getServer().getWorld(params[1]) == null)
                        {
                            cs.sendMessage(ChatColor.RED + "World not found: " + params[1]);
                        }
                        else
                        {
                            ChatHandler handler = new ChatHandler(cs);
                            getLogger().addHandler(handler);
                            cs.sendMessage(ChatColor.GREEN + "Reloading rewards for world " + params[1] + "...");
                            reloadWorld(params[1]);
                            getLogger().removeHandler(handler);
                        }
                    }
                }
                else if (params[0].equalsIgnoreCase("reset"))
                {
                    if (params.length < 2)
                    {
                        cs.sendMessage(ChatColor.GREEN + "Reseting killing sprees...");
                        sprees.clear();
                        mobSprees.clear();
                        cs.sendMessage(ChatColor.GREEN + "Sprees reseted.");
                    }
                    else
                    {
                        List<Player> pl = getServer().matchPlayer(params[1]);
                        if (pl.size() < 1)
                        {
                            cs.sendMessage(ChatColor.RED + "No player found with that name.");
                        }
                        else if (pl.size() > 1)
                        {
                            cs.sendMessage(ChatColor.RED + "Multiple players found");
                        }
                        else
                        {
                            cs.sendMessage(ChatColor.GREEN + "Reseting killing spree of player " + pl.get(0).getName());
                            sprees.remove(pl.get(0).getName());
                            mobSprees.remove(pl.get(0).getName());
                            cs.sendMessage(ChatColor.GREEN + "Killing sprees for " + pl.get(0).getName() + " reseted.");
                        }
                    }
                }
            }
            return true;
        }
        return false;
    }