From 6574951833da2898ae41b86f20477551d2ffc97c Mon Sep 17 00:00:00 2001 From: Daniel V Date: Fri, 1 Mar 2024 14:35:08 -0500 Subject: [PATCH] Final compatibility patches for hardcore mode on worlds. --- pom.xml | 6 ++++++ .../phantomworlds/comatibility/VersionCompatibility.java | 1 + .../commands/params/PotionEffectParameter.java | 2 -- .../lokka30/phantomworlds/commands/sub/SetSpawnCommand.java | 2 +- .../listeners/player/PlayerChangeWorldListener.java | 3 +-- .../listeners/player/PlayerTeleportListener.java | 2 +- .../java/me/lokka30/phantomworlds/world/PhantomWorld.java | 2 -- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 4ccd486..1698a5e 100644 --- a/pom.xml +++ b/pom.xml @@ -43,6 +43,12 @@ 1.20.1-R0.1-SNAPSHOT provided + com.github.lokka30 MicroLib diff --git a/src/main/java/me/lokka30/phantomworlds/comatibility/VersionCompatibility.java b/src/main/java/me/lokka30/phantomworlds/comatibility/VersionCompatibility.java index 8fb0346..7dbe005 100644 --- a/src/main/java/me/lokka30/phantomworlds/comatibility/VersionCompatibility.java +++ b/src/main/java/me/lokka30/phantomworlds/comatibility/VersionCompatibility.java @@ -19,6 +19,7 @@ import org.bukkit.NamespacedKey; import org.bukkit.World; +import org.bukkit.WorldCreator; import org.bukkit.potion.PotionEffectType; import java.util.ArrayList; diff --git a/src/main/java/me/lokka30/phantomworlds/commands/params/PotionEffectParameter.java b/src/main/java/me/lokka30/phantomworlds/commands/params/PotionEffectParameter.java index b1dd3e8..9757230 100644 --- a/src/main/java/me/lokka30/phantomworlds/commands/params/PotionEffectParameter.java +++ b/src/main/java/me/lokka30/phantomworlds/commands/params/PotionEffectParameter.java @@ -42,8 +42,6 @@ public class PotionEffectParameter extends ArgumentResolver