public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]) {
        if (args.length == 0) {
            return false;
        }

        if (!(sender instanceof Player)) {
            HashMap<String, String> values = new HashMap<String, String>();

            Helper.sendParsedMessage(sender, Settings.getMessage("error.not-player"), values);
            return true;
        }

        if (WarpManager.isWarp(args[0]) && !Settings.canOverwrite) {
            HashMap<String, String> values = new HashMap<String, String>();

            Helper.sendParsedMessage(sender, Settings.getMessage("error.cannot-overwrite"), values);
            return true;
        }

        String perms = "easywarp.command.setwarp";
        if (!sender.hasPermission(perms)) {
            HashMap<String, String> values = new HashMap<String, String>();
            values.put("node", perms);

            Helper.sendParsedMessage(sender, Settings.getMessage("error.no-permission"), values);
            return true;
        }

        String warpName = args[0];
        Player player = (Player) sender;


        HashMap<String, String> values = new HashMap<String, String>();
        values.put("warp", warpName);

        if (warpName.contains(".")) {
            Helper.sendParsedMessage(player, Settings.getMessage("error.illegal-char"), values);
            return true;
        }

        WarpManager.addWarp(warpName, player.getLocation());
        EasyWarp.fileManager.saveWarps();

        Helper.sendParsedMessage(player, Settings.getMessage("warp.set"), values);

        return true;
    }