public static String ParseDisplayName(Player p)
    {
        PermissionManager manager = null;
        String displayNameFormat = "%prefix%player%suffix";
        if(Bukkit.getServer().getPluginManager().isPluginEnabled("PermissionsEx")) manager = PermissionsEx.getPermissionManager();
        if(Bukkit.getServer().getPluginManager().isPluginEnabled("ChatManager")) displayNameFormat = Bukkit.getServer().getPluginManager().getPlugin("ChatManager").getConfig().getString("display-name-format");
        
        String displayname = p.getDisplayName();
        
        if(manager != null)
        {
            PermissionUser user = manager.getUser(p);
            String prefix = user.getPrefix().replaceAll("&", "§");
            String suffix = user.getSuffix().replaceAll("&", "§");
            displayname = displayNameFormat;
            displayname = displayname.replace("%prefix", prefix);
            displayname = displayname.replace("%player", p.getDisplayName());
            displayname = displayname.replace("%suffix", suffix);
        }
        
        return displayname;
    }