From f0779d288cc5e6678a526f03521275c0e4018e56 Mon Sep 17 00:00:00 2001 From: Intelli Date: Thu, 16 Dec 2021 14:01:23 -0700 Subject: [PATCH] Incremented API version to 8 --- docs/api/index.md | 8 ++++---- src/main/java/net/coreprotect/CoreProtectAPI.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api/index.md b/docs/api/index.md index ab658fb..b4d318d 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -4,8 +4,8 @@ The CoreProtect API enables you to log your own block changes, perform lookups, | API Details | | | --- | --- | -| **API Version:** | 7 | -| **Plugin Version:** | v20.0+ | +| **API Version:** | 8 | +| **Plugin Version:** | v20.2+ | | **Maven:** | [maven.playpro.com](https://maven.playpro.com) | *Documentation for the previous API version can be found [here](https://www.minerealm.com/community/viewtopic.php?f=32&t=16687).* @@ -39,8 +39,8 @@ parseResult(String[] result).getTypeId() ## Getting Started -Ensure you're using CoreProtect 20.0 or higher. Add it as an external jar to your plugin in your IDE. -Alternatively, if using Maven, you can add it via the repository [https://maven.playpro.com](https://maven.playpro.com) (net.coreprotect, 20.0). +Ensure you're using CoreProtect 20.2 or higher. Add it as an external jar to your plugin in your IDE. +Alternatively, if using Maven, you can add it via the repository [https://maven.playpro.com](https://maven.playpro.com) (net.coreprotect, 20.2). The first thing you need to do is get access to CoreProtect. You can do this by using code similar to the following: diff --git a/src/main/java/net/coreprotect/CoreProtectAPI.java b/src/main/java/net/coreprotect/CoreProtectAPI.java index b7b9e6a..7e6bcd8 100755 --- a/src/main/java/net/coreprotect/CoreProtectAPI.java +++ b/src/main/java/net/coreprotect/CoreProtectAPI.java @@ -142,7 +142,7 @@ public class CoreProtectAPI extends Queue { } public int APIVersion() { - return 7; + return 8; } public List blockLookup(Block block, int time) {