127 |
|
|
128 |
void removeChest(Location loc) { |
void removeChest(Location loc) { |
129 |
SnitchingChestBean chest = chestMap.remove(loc); |
SnitchingChestBean chest = chestMap.remove(loc); |
130 |
plugin.getDatabase().delete(chest); |
if (chest != null) { |
131 |
|
plugin.getDatabase().delete(chest); |
132 |
|
} |
133 |
} |
} |
134 |
|
|
135 |
void loadChests() { |
void loadChests() { |
138 |
Location loc = getChestLocation(server, chest); |
Location loc = getChestLocation(server, chest); |
139 |
chestMap.put(loc, chest); |
chestMap.put(loc, chest); |
140 |
} |
} |
141 |
|
|
142 |
|
plugin.getLogger().info("[SnitchingChest] loaded " + chestMap.size() + " chests"); |
143 |
} |
} |
144 |
|
|
145 |
|
|