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 |
|
|
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 |
|
|