Changeset 2034
- Timestamp:
- 02/17/2010 01:52:42 PM (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.drftpd.commands.pre/src/org/drftpd/commands/pre/Pre.java
r2032 r2034 20 20 import java.io.FileNotFoundException; 21 21 import java.io.IOException; 22 import java.util.Hash table;22 import java.util.HashMap; 23 23 import java.util.Map; 24 24 … … 107 107 108 108 //AWARD CREDITS 109 Hash table<User,Long> awards = new Hashtable<User,Long>();109 HashMap<User,Long> awards = new HashMap<User,Long>(); 110 110 preAwardCredits(preDir, awards); 111 111 112 for ( Objectentry : awards.entrySet()) {113 User owner = (User) ((Map.Entry) entry).getKey();112 for (Map.Entry<User,Long> entry : awards.entrySet()) { 113 User owner = entry.getKey(); 114 114 if (StatsManager.getStatsManager().getCreditCheckRatio(preDir, owner) == 0) { 115 Long award = (Long) ((Map.Entry) entry).getValue();115 Long award = entry.getValue(); 116 116 owner.updateCredits(award); 117 117 response.addComment("Awarded " + Bytes.formatBytes(award) + " to " + owner.getName()); … … 167 167 } 168 168 169 private void preAwardCredits(DirectoryHandle preDir, Hash table<User,Long> awards) {169 private void preAwardCredits(DirectoryHandle preDir, HashMap<User,Long> awards) { 170 170 try { 171 171 for (InodeHandle file : preDir.getInodeHandlesUnchecked()) {
