public static String roll(Player p, int max, int result){
		// Initial message
		String regex = RPSystem.chatConfig.getString("format.roll");
		
		// Token replacement
		regex = regex.replaceAll("%t", Timestamp.NOW());
		regex = regex.replaceAll("%r", Integer.toString(result));
		regex = regex.replaceAll("%x", Integer.toString(max));
		regex = regex.replaceAll("%s", SQLManager.getDisplayName(p.getName()));
		
		regex = build(regex.split(" "));
		
		
		return regex;	}