parent
9131e2f345
commit
5d2e147a89
|
@ -74,7 +74,14 @@ public class BlockBreakListener implements Listener {
|
||||||
int ping = config.getInt(String.format("blocks.%s.ping", blockKey), config.getInt("ping", 5));
|
int ping = config.getInt(String.format("blocks.%s.ping", blockKey), config.getInt("ping", 5));
|
||||||
purge(map.getOrDefault(event.getPlayer(), new ArrayList<>()).iterator());
|
purge(map.getOrDefault(event.getPlayer(), new ArrayList<>()).iterator());
|
||||||
|
|
||||||
int strikes = map.getOrDefault(event.getPlayer(), new ArrayList<>()).size();
|
int strikes = 0;
|
||||||
|
for (BlockEvent e : map.getOrDefault(event.getPlayer(), new ArrayList<>())) {
|
||||||
|
if (e.isParent()) {
|
||||||
|
strikes++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO Notify
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cleanup() {
|
private void cleanup() {
|
||||||
|
|
Loading…
Reference in New Issue