Fix CoreProtect API hasPlaced() and hasRemoved() (#434) (#435)

This commit is contained in:
Take-John 2023-08-23 08:54:42 +09:00 committed by GitHub
parent 950cf9460b
commit af35a98b1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -191,8 +191,8 @@ public class CoreProtectAPI extends Queue {
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<String[]> check = blockLookup(block, time);
for (String[] value : check) {
@ -212,8 +212,8 @@ public class CoreProtectAPI extends Queue {
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<String[]> check = blockLookup(block, time);
for (String[] value : check) {