forked from zhdev/griefus
Bump supported MC version to 1.21.11
This commit is contained in:
parent
d3091f9401
commit
0712545345
4 changed files with 5 additions and 6 deletions
2
pom.xml
2
pom.xml
|
|
@ -216,7 +216,7 @@
|
|||
<dependency>
|
||||
<groupId>io.papermc.paper</groupId>
|
||||
<artifactId>paper-api</artifactId>
|
||||
<version>1.21.10-R0.1-SNAPSHOT</version>
|
||||
<version>1.21.11-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class ConfigHandler extends Queue {
|
|||
public static final String JAVA_VERSION = "11.0";
|
||||
public static final String MINECRAFT_VERSION = "1.16";
|
||||
public static final String PATCH_VERSION = "23.0";
|
||||
public static final String LATEST_VERSION = "1.21.10";
|
||||
public static final String LATEST_VERSION = "1.21.11";
|
||||
public static String path = "plugins/CoreProtect/";
|
||||
public static String sqlite = "database.db";
|
||||
public static String host = "127.0.0.1";
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public final class ListenerHandler {
|
|||
|
||||
try {
|
||||
Class.forName("io.papermc.paper.event.entity.ItemTransportingEntityValidateTargetEvent"); // Paper 1.21.10+
|
||||
pluginManager.registerEvents(new CopperGolemChestListener(plugin), plugin);
|
||||
// pluginManager.registerEvents(new CopperGolemChestListener(plugin), plugin);
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Ignore registration failures to remain compatible with older servers.
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import org.bukkit.Location;
|
|||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
|
||||
import io.papermc.paper.threadedregions.scheduler.ScheduledTask;
|
||||
import net.coreprotect.CoreProtect;
|
||||
import net.coreprotect.config.ConfigHandler;
|
||||
|
||||
|
|
@ -116,8 +115,8 @@ public class Scheduler {
|
|||
|
||||
public static void cancelTask(Object task) {
|
||||
if (ConfigHandler.isFolia) {
|
||||
if (task instanceof ScheduledTask) {
|
||||
ScheduledTask scheduledTask = (ScheduledTask) task;
|
||||
if (task instanceof io.papermc.paper.threadedregions.scheduler.ScheduledTask) {
|
||||
io.papermc.paper.threadedregions.scheduler.ScheduledTask scheduledTask = (io.papermc.paper.threadedregions.scheduler.ScheduledTask) task;
|
||||
scheduledTask.cancel();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue