--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 12:37:13 1773 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/SnitchingChest.java 2012/04/05 12:57:33 1776 @@ -136,6 +136,8 @@ Location loc = getChestLocation(server, chest); chestMap.put(loc, chest); } + + plugin.getLogger().info("[SnitchingChest] loaded " + chestMap.size() + " chests"); } @@ -241,6 +243,11 @@ if (holder instanceof Chest || holder instanceof DoubleChest) { Location loc = getChestLocation(holder); SnitchingChestBean chest = chestMap.get(loc); + + if (chest == null) { //chest was not a snitching chest + return; + } + OfflinePlayer owner = server.getOfflinePlayer( chest.getOwner() );