diff --git a/src/main/java/net/coreprotect/CoreProtectAPI.java b/src/main/java/net/coreprotect/CoreProtectAPI.java index 776e92fe..464d0bad 100755 --- a/src/main/java/net/coreprotect/CoreProtectAPI.java +++ b/src/main/java/net/coreprotect/CoreProtectAPI.java @@ -191,8 +191,8 @@ public boolean hasPlaced(String user, Block block, int time, int offset) { boolean match = false; if (Config.getGlobal().API_ENABLED) { - long timestamp = System.currentTimeMillis() / 1000L; - long offsetTime = timestamp - offset; + long timestamp = System.currentTimeMillis(); + long offsetTime = timestamp - offset * 1000L; List check = blockLookup(block, time); for (String[] value : check) { @@ -212,8 +212,8 @@ public boolean hasRemoved(String user, Block block, int time, int offset) { boolean match = false; if (Config.getGlobal().API_ENABLED) { - long timestamp = System.currentTimeMillis() / 1000L; - long offsetTime = timestamp - offset; + long timestamp = System.currentTimeMillis(); + long offsetTime = timestamp - offset * 1000L; List check = blockLookup(block, time); for (String[] value : check) {