/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1773 by torben, Thu Apr 5 12:37:13 2012 UTC revision 1776 by torben, Thu Apr 5 12:57:33 2012 UTC
# Line 136  public class SnitchingChest  implements Line 136  public class SnitchingChest  implements
136                          Location loc = getChestLocation(server, chest);                          Location loc = getChestLocation(server, chest);
137                          chestMap.put(loc, chest);                                chestMap.put(loc, chest);      
138                  }                  }
139                    
140                    plugin.getLogger().info("[SnitchingChest] loaded " + chestMap.size() + " chests");
141          }          }
142                    
143                    
# Line 241  public class SnitchingChest  implements Line 243  public class SnitchingChest  implements
243                  if (holder instanceof Chest || holder instanceof DoubleChest) {                  if (holder instanceof Chest || holder instanceof DoubleChest) {
244                          Location loc = getChestLocation(holder);                          Location loc = getChestLocation(holder);
245                          SnitchingChestBean chest = chestMap.get(loc);                          SnitchingChestBean chest = chestMap.get(loc);
246                            
247                            if (chest == null) { //chest was not a snitching chest
248                                    return;
249                            }
250                            
251                          OfflinePlayer owner = server.getOfflinePlayer( chest.getOwner() );                          OfflinePlayer owner = server.getOfflinePlayer( chest.getOwner() );
252                                                    
253                                                    

Legend:
Removed from v.1773  
changed lines
  Added in v.1776

  ViewVC Help
Powered by ViewVC 1.1.20