parent
950cf9460b
commit
af35a98b1d
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue