Changeset 3333

Show
Ignore:
Timestamp:
07/28/09 08:50:23 (12 months ago)
Author:
milosh
Message:

Make !scorereset reset all player stats. #372

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/twcore/src/twcore/bots/elim/elim.java

    r3291 r3333  
    189189                                "| !classic      - Toggles whether or not you'd like to be spec'd when out.   |", 
    190190                                "| !warp         - Warps you out of the safe if you're stuck.                 |", 
    191                                 "| !scorereset   - Resets your arena score card to zero. No going back. (!sr) |", 
     191                                "| !scorereset   - Resets all of your stats to zero. No going back. (!sr)    |", 
    192192 
    193193                };List<String> reg = Arrays.asList(reghelp); 
     
    515515        try{ 
    516516                m_botAction.SQLQueryAndClose(db, "UPDATE tblElimCasualRecs SET fnKills = 0, fnDeaths = 0 WHERE fcUserName = '" + Tools.addSlashesToString(name.toLowerCase()) + "' AND fnGameType = " + cfg_gameType); 
     517                m_botAction.SQLQueryAndClose(db, "DELETE * FROM tblElimPlayer WHERE fcUserName = '" + Tools.addSlashesToString(name.toLowerCase()) + "'"); 
    517518                m_botAction.sendSmartPrivateMessage( name, "Your wins and losses have been reset to zero."); 
    518519        }catch(SQLException e){