@Override
    public boolean onCommand(CommandSender sender, Command command,
            String label, String[] args)
    {
        if (!(sender instanceof Player))
        {
            sender.sendMessage("Commands are designed to be run by players only.");
            return true;
        }
        Player player = ((Player) sender);
        if (getPlugin().getPermissionManager().hasPermission(player,
                "mbr.admin.command.worldreward"))
        {
            if (args.length == 3)
            {
                MobBountyCreature mob = MobBountyCreature.fromName(args[1]);

                if (mob != null)
                {
                    if (args[2].matches("[-]?[0-9]+([.][0-9]+)?"))
                    {
                        Double amount = Double.parseDouble(args[2]);
                        getPlugin().getConfigManager().setProperty(
                                MobBountyReloadedConfFile.REWARDS,
                                args[0] + "." + mob.getName() + ".value",
                                amount.toString());

                        String message = getPlugin().getLocaleManager()
                                .getString("MBRChange");
                        if (message != null)
                        {
                            sender.sendMessage(getPlugin().getAPI()
                                    .formatString(message, "", mob.getName(),
                                            "", Double.valueOf(args[2]),
                                            Double.valueOf(args[2]),
                                            Double.valueOf(args[2]), "", "",
                                            "mbr.admin.command.worldreward",
                                            "", "", 0, "", "", 0));
                        }
                    }
                    else if (args[2]
                            .matches("[-]?[0-9]+([.][0-9]+)?[:][-]?[0-9]+([.][0-9]+)?"))
                    {
                        getPlugin().getConfigManager().setProperty(
                                MobBountyReloadedConfFile.REWARDS,
                                args[0] + "." + mob.getName() + ".value",
                                args[2]);

                        String message = getPlugin().getLocaleManager()
                                .getString("MBRChange");
                        if (message != null)
                        {
                            sender.sendMessage(getPlugin().getAPI()
                                    .formatString(message, "", mob.getName(),
                                            "", Double.valueOf(args[2]),
                                            Double.valueOf(args[2]),
                                            Double.valueOf(args[2]), "", "",
                                            "mbr.admin.command.worldreward",
                                            "", "", 0, "", "", 0));
                        }
                    }
                    else
                        this.commandUsage(sender, label);
                }
                else
                    this.commandUsage(sender, label);
            }
            else
                this.commandUsage(sender, label);
        }
        else
        {
            String message = getPlugin().getLocaleManager().getString(
                    "NoAccess");
            if (message != null)
                sender.sendMessage(message);
        }

        return true;
    }