diff --git a/pom.xml b/pom.xml index 9dcb3cf..a2c2dfb 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ de.gerrygames viarewind-legacy-support - 1.3.4 + 1.4.0 jar @@ -40,9 +40,9 @@ - us.myles - viaversion - 3.3.0-21w15a + com.viaversion + viaversion-api + 4.0.0-21w16a provided diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/BukkitPlugin.java b/src/main/java/de/gerrygames/viarewind/legacysupport/BukkitPlugin.java index e34ca90..d47b411 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/BukkitPlugin.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/BukkitPlugin.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport; +import com.viaversion.viaversion.api.Via; import de.gerrygames.viarewind.legacysupport.injector.BoundingBoxFixer; import de.gerrygames.viarewind.legacysupport.listener.AreaEffectCloudListener; import de.gerrygames.viarewind.legacysupport.listener.BounceListener; @@ -12,7 +13,6 @@ import org.bukkit.Bukkit; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scheduler.BukkitRunnable; -import us.myles.ViaVersion.api.Via; public class BukkitPlugin extends JavaPlugin { private static BukkitPlugin instance; diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java b/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java index 6f08619..c98f8ff 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/injector/BoundingBoxFixer.java @@ -1,7 +1,7 @@ package de.gerrygames.viarewind.legacysupport.injector; +import com.viaversion.viaversion.api.Via; import de.gerrygames.viarewind.legacysupport.reflection.ReflectionAPI; -import us.myles.ViaVersion.api.Via; import java.lang.reflect.Constructor; import java.lang.reflect.Field; diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/AreaEffectCloudListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/AreaEffectCloudListener.java index 63fc9ed..7012649 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/AreaEffectCloudListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/AreaEffectCloudListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import de.gerrygames.viarewind.legacysupport.BukkitPlugin; import org.bukkit.Bukkit; import org.bukkit.Location; @@ -10,7 +11,6 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.LingeringPotionSplashEvent; -import us.myles.ViaVersion.api.Via; import java.util.ArrayList; import java.util.Set; diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BounceListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BounceListener.java index 671598d..4b022d0 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BounceListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BounceListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.entity.Player; @@ -7,7 +8,6 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.util.Vector; -import us.myles.ViaVersion.api.Via; public class BounceListener implements Listener { diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BrewingListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BrewingListener.java index 7b92722..2151578 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BrewingListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/BrewingListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import org.bukkit.Material; import org.bukkit.block.BrewingStand; import org.bukkit.entity.Player; @@ -11,7 +12,6 @@ import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.BrewerInventory; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; -import us.myles.ViaVersion.api.Via; public class BrewingListener implements Listener { diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/ElytraListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/ElytraListener.java index d9399ab..99f3539 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/ElytraListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/ElytraListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -7,7 +8,6 @@ import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.util.Vector; -import us.myles.ViaVersion.api.Via; public class ElytraListener implements Listener { diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/EnchantingListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/EnchantingListener.java index b5b19f4..5a1751e 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/EnchantingListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/EnchantingListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -9,7 +10,6 @@ import org.bukkit.event.inventory.InventoryOpenEvent; import org.bukkit.inventory.EnchantingInventory; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; -import us.myles.ViaVersion.api.Via; public class EnchantingListener implements Listener { diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/SoundListener.java b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/SoundListener.java index 2999b0d..c4df858 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/listener/SoundListener.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/listener/SoundListener.java @@ -1,5 +1,6 @@ package de.gerrygames.viarewind.legacysupport.listener; +import com.viaversion.viaversion.api.Via; import de.gerrygames.viarewind.legacysupport.BukkitPlugin; import de.gerrygames.viarewind.legacysupport.injector.NMSReflection; import org.bukkit.Bukkit; @@ -16,7 +17,6 @@ import org.bukkit.event.block.BlockPlaceEvent; import org.bukkit.event.entity.EntityPickupItemEvent; import org.bukkit.event.player.PlayerExpChangeEvent; import org.bukkit.event.player.PlayerPickupItemEvent; -import us.myles.ViaVersion.api.Via; import java.lang.reflect.Method; diff --git a/src/main/java/de/gerrygames/viarewind/legacysupport/versioninfo/VersionInformer.java b/src/main/java/de/gerrygames/viarewind/legacysupport/versioninfo/VersionInformer.java index 150fb36..38f78bc 100644 --- a/src/main/java/de/gerrygames/viarewind/legacysupport/versioninfo/VersionInformer.java +++ b/src/main/java/de/gerrygames/viarewind/legacysupport/versioninfo/VersionInformer.java @@ -1,12 +1,12 @@ package de.gerrygames.viarewind.legacysupport.versioninfo; +import com.viaversion.viaversion.api.Via; import de.gerrygames.viarewind.legacysupport.BukkitPlugin; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; -import us.myles.ViaVersion.api.Via; public class VersionInformer implements Listener { private String message;