Changeset ebeff435b16271673105db99dd5b9924d930855f

Show
Ignore:
Timestamp:
03/24/07 12:20:07 (2 years ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1174735207 +0100
git-parent:

[31f53b6286945aab6edffb78a81b14e9201333b2]

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

Admin-Kommando zum Leeren der Caches eingebaut

Files:

Legend:

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

    rcb6f3cd rebeff43  
    4747import net.driftingsouls.ds2.server.framework.Loggable; 
    4848import net.driftingsouls.ds2.server.framework.User; 
     49import net.driftingsouls.ds2.server.framework.caches.CacheManager; 
    4950import net.driftingsouls.ds2.server.framework.db.Database; 
    5051import net.driftingsouls.ds2.server.framework.db.SQLQuery; 
     
    9899                        output = cmdExecTask(context, command); 
    99100                } 
     101                else if( command[0].equals("clearcaches") ) { 
     102                        output = cmdClearCaches(context, command); 
     103                } 
    100104                else { 
    101105                        output = "Unbekannter Befehl "+command[0]; 
     
    105109                        output = "1"; 
    106110                } 
     111                 
     112                return output; 
     113        } 
     114         
     115        private static String cmdClearCaches( Context context, String[] command ) { 
     116                String output = "Caches geleert"; 
     117                 
     118                CacheManager.getInstance().clearCaches(); 
    107119                 
    108120                return output;