summaryrefslogtreecommitdiff
path: root/src/main/java/dev/deeve/containeraudit
diff options
context:
space:
mode:
authorFlarp <flurpdadurp@gmail.com>2023-12-31 13:59:46 -0500
committerFlarp <flurpdadurp@gmail.com>2023-12-31 13:59:46 -0500
commit7473cd4e740fb2cadf7556ea8b434c94941a848a (patch)
tree82a1358d33bc50b6dd2c00920f3bbc1bed3e217f /src/main/java/dev/deeve/containeraudit
parentad28a427d3ce68e69a46f406d6b90b719b803549 (diff)
downloadcontainer-audit-7473cd4e740fb2cadf7556ea8b434c94941a848a.tar.gz
Log container block events regardless of ignore status, and remove unused fileHEADmain
Diffstat (limited to 'src/main/java/dev/deeve/containeraudit')
-rw-r--r--src/main/java/dev/deeve/containeraudit/ChestEvent.java14
-rw-r--r--src/main/java/dev/deeve/containeraudit/ChestListener.java4
2 files changed, 0 insertions, 18 deletions
diff --git a/src/main/java/dev/deeve/containeraudit/ChestEvent.java b/src/main/java/dev/deeve/containeraudit/ChestEvent.java
deleted file mode 100644
index a59e0ea..0000000
--- a/src/main/java/dev/deeve/containeraudit/ChestEvent.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package dev.deeve.containeraudit;
-
-import java.time.LocalDateTime;
-
-public class ChestEvent {
- private int count;
- private String block;
- private int x;
- private int y;
- private int z;
- private String player;
- private String type;
- private LocalDateTime timestamp;
-}
diff --git a/src/main/java/dev/deeve/containeraudit/ChestListener.java b/src/main/java/dev/deeve/containeraudit/ChestListener.java
index 0ed9000..4608cee 100644
--- a/src/main/java/dev/deeve/containeraudit/ChestListener.java
+++ b/src/main/java/dev/deeve/containeraudit/ChestListener.java
@@ -93,8 +93,6 @@ public class ChestListener implements Listener {
Block placedBlock = event.getBlock();
String playerName = event.getPlayer().getName();
- if (ignore.contains(playerName)) return;
-
if (ChestListener.isContainer(placedBlock.getType()))
Database.logBlockEvent(playerName, "PLACE", placedBlock.getLocation());
@@ -105,8 +103,6 @@ public class ChestListener implements Listener {
Block placedBlock = event.getBlock();
String playerName = event.getPlayer().getName();
- if (ignore.contains(playerName)) return;
-
if (ChestListener.isContainer(placedBlock.getType()))
Database.logBlockEvent(playerName, "BREAK", placedBlock.getLocation());