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

View File

@ -191,8 +191,8 @@ public class CoreProtectAPI extends Queue {
boolean match = false; boolean match = false;
if (Config.getGlobal().API_ENABLED) { if (Config.getGlobal().API_ENABLED) {
long timestamp = System.currentTimeMillis() / 1000L; long timestamp = System.currentTimeMillis();
long offsetTime = timestamp - offset; long offsetTime = timestamp - offset * 1000L;
List<String[]> check = blockLookup(block, time); List<String[]> check = blockLookup(block, time);
for (String[] value : check) { for (String[] value : check) {
@ -212,8 +212,8 @@ public class CoreProtectAPI extends Queue {
boolean match = false; boolean match = false;
if (Config.getGlobal().API_ENABLED) { if (Config.getGlobal().API_ENABLED) {
long timestamp = System.currentTimeMillis() / 1000L; long timestamp = System.currentTimeMillis();
long offsetTime = timestamp - offset; long offsetTime = timestamp - offset * 1000L;
List<String[]> check = blockLookup(block, time); List<String[]> check = blockLookup(block, time);
for (String[] value : check) { for (String[] value : check) {