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

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

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

revision 1809 by torben, Sun Jun 3 20:34:42 2012 UTC revision 1810 by torben, Mon Jun 4 18:27:14 2012 UTC
# Line 216  public class AdvancedChest  implements L Line 216  public class AdvancedChest  implements L
216                          } else {                          } else {
217                                  event.setCancelled(true);                                  event.setCancelled(true);
218                                  event.getPlayer().sendMessage("You can't destroy that chest");                                  event.getPlayer().sendMessage("You can't destroy that chest");
219                                    server.getLogger().info( "[AdvancedChest] " + event.getPlayer().getName() + " tried breaking a chest owned by " + chest.getOwner() );
220                          }                          }
221                  }                  }
222          }          }
# Line 365  public class AdvancedChest  implements L Line 366  public class AdvancedChest  implements L
366                  for (Block b : event.blockList() ) {                  for (Block b : event.blockList() ) {
367                          ChestBean chest = chestMap.get( b.getLocation() );                          ChestBean chest = chestMap.get( b.getLocation() );
368                          if (chest != null) {                          if (chest != null) {
369                                    server.getLogger().info( "[AdvancedChest] Prevented an explosion from destroying chest owned by " + chest.getOwner() );
370                                  event.setCancelled( true );                                  event.setCancelled( true );
371                                  return;                                  return;
372                          }                          }

Legend:
Removed from v.1809  
changed lines
  Added in v.1810

  ViewVC Help
Powered by ViewVC 1.1.20