public String parse(String input){
		String output = input.replace("(SERVERNAME)", pl.getServer().getName())
				.replace("(BUKKITVERSIONLONG)", pl.getServer().getVersion())
				.replace("(BUKKITVERSION)", pl.getServer().getBukkitVersion())
				.replace("(MAXPLAYERS)", "" + pl.getServer().getMaxPlayers())
				.replace("(ONLINEPLAYERS)", "" + pl.getServer().getOnlinePlayers().length)
				.replace("(LOCALIP)", "" + pl.getServer().getIp())
				.replace("(SERVERPORT)", "" + pl.getServer().getPort())
				.replace("(ALLTIMEPLAYERS)", "" + pl.getServer().getOfflinePlayers().length)
				.replace("(VERSION)", pl.getServer().getBukkitVersion().split("-")[0]);
		if (!pl.getConfig().getString("variables").isEmpty()){
			for(String var : pl.getConfig().getConfigurationSection("variables").getKeys(false)) {
				String varValue = pl.getConfig().getString("variables." + var);
				if (varValue.charAt(0) == '/'){
					String varinput = output;
					int index = varinput.indexOf("(" + var.toUpperCase() + ")");
					int count = 0;
					while (index != -1) {
					    count++;
					    varinput = varinput.substring(index + 1);
					    index = varinput.indexOf("(" + var.toUpperCase() + ")");
					}
					while (count > 0){
						pl.getServer().dispatchCommand(pl.getServer().getConsoleSender(), varValue.replaceFirst("/", ""));
						count--;
					}
					output = output.replace("(" + var.toUpperCase() + ")", "");
				} else
					output = output.replace("(" + var.toUpperCase() + ")", varValue);
			}
		}
		return output;
	}