Remove build.gradle (unsupported)
This commit is contained in:
parent
56f5c04619
commit
778be07e51
6 changed files with 59 additions and 101 deletions
|
|
@ -60,7 +60,7 @@ public final class CoreProtect extends JavaPlugin {
|
|||
ShutdownService.safeShutdown(this);
|
||||
}
|
||||
|
||||
public boolean isAdvancedChestsEnabled(){
|
||||
public boolean isAdvancedChestsEnabled() {
|
||||
return advancedChestsEnabled;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,12 +28,10 @@ import net.coreprotect.database.Lookup;
|
|||
import net.coreprotect.database.rollback.Rollback;
|
||||
import net.coreprotect.language.Phrase;
|
||||
import net.coreprotect.listener.player.InventoryChangeListener;
|
||||
import net.coreprotect.utility.BlockUtils;
|
||||
import net.coreprotect.utility.Chat;
|
||||
import net.coreprotect.utility.EntityUtils;
|
||||
import net.coreprotect.utility.MaterialUtils;
|
||||
import net.coreprotect.utility.StringUtils;
|
||||
import net.coreprotect.utility.Util;
|
||||
import net.coreprotect.utility.WorldUtils;
|
||||
|
||||
public class CoreProtectAPI extends Queue {
|
||||
|
|
@ -196,7 +194,7 @@ public class CoreProtectAPI extends Queue {
|
|||
boolean match = false;
|
||||
|
||||
if (Config.getGlobal().API_ENABLED) {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
long timestamp = getCurrentTimeMillis();
|
||||
long offsetTime = timestamp - offset * 1000L;
|
||||
List<String[]> check = blockLookup(block, time);
|
||||
|
||||
|
|
@ -217,7 +215,7 @@ public class CoreProtectAPI extends Queue {
|
|||
boolean match = false;
|
||||
|
||||
if (Config.getGlobal().API_ENABLED) {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
long timestamp = getCurrentTimeMillis();
|
||||
long offsetTime = timestamp - offset * 1000L;
|
||||
List<String[]> check = blockLookup(block, time);
|
||||
|
||||
|
|
@ -233,6 +231,10 @@ public class CoreProtectAPI extends Queue {
|
|||
return match;
|
||||
}
|
||||
|
||||
protected long getCurrentTimeMillis() {
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return Config.getGlobal().API_ENABLED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ public class RollbackProcessor {
|
|||
|
||||
List<Object> meta = null;
|
||||
if (rowMeta != null) {
|
||||
meta = Rollback.deserializeMetadata(rowMeta);
|
||||
meta = RollbackUtil.deserializeMetadata(rowMeta);
|
||||
}
|
||||
|
||||
BlockData blockData = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue