Changeset 167b39cafe372dd6d781a5befc846040b0538361

Show
Ignore:
Timestamp:
01/05/07 18:59:59 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1168019999 +0100
git-parent:

[e1f219efd40a8ca53bb6c4670f4d90a9af5dfff9]

git-author:
Christopher Jung <bktheg@web.de> 1168019999 +0100
Message:

Die Spielerliste zeigt nun auch Admin-Infos an

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/uilibs/PlayerList.java

    rdf6912e r167b39c  
    3636 */ 
    3737public class PlayerList { 
     38        /** 
     39         * Gibt die Spielerliste im angegebenen Kontext aus 
     40         * @param context Der Kontext 
     41         */ 
    3842        public static void draw(Context context) { 
    3943                String ord = context.getRequest().getParameter("ord"); 
     
    229233                                // Ally 
    230234                                echo.append("<td class=\"noBorderX\">"+ally+"</td>\n"); 
     235                                 
     236                                // Die Spezial-Admin-Infos anzeigen 
     237                                if( (user != null) && (user.getAccessLevel() > 20) ) { 
     238                                        echo.append("<td class=\"noBorderX\">"+aUser.getInactivity()+"</td>\n"); 
     239                                        if( !asticount.containsKey(aUser.getID()) ) { 
     240                                                asticount.put(aUser.getID(), 0); 
     241                                        } 
     242                                        echo.append("<td class=\"noBorderX\" style=\"text-align:center\">"+asticount.get(aUser.getID())+"</td>\n"); 
     243                                         
     244                                        if( !shipcount.containsKey(aUser.getID()) ) { 
     245                                                shipcount.put(aUser.getID(), 0); 
     246                                        } 
     247                                        echo.append("<td class=\"noBorderX\" style=\"text-align:center\">"+Common.ln(shipcount.get(aUser.getID()))+"</td>\n"); 
     248                                } 
    231249                        } 
    232250                        else {