diff --git a/pom.xml b/pom.xml
index a6af3a0..fc196cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,8 +53,8 @@
- spigotmc-repo
- https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+ papermc-repo
+ https://repo.papermc.io/repository/maven-public/
github
@@ -70,12 +70,12 @@
-
+
- org.spigotmc
- spigot-api
- 1.14.4-R0.1-SNAPSHOT
- provided
+ io.papermc.paper
+ paper-api
+ 1.18.2-R0.1-SNAPSHOT
+ provided
diff --git a/src/main/java/net/countercraft/movecraft/rules/PilotListener.java b/src/main/java/net/countercraft/movecraft/rules/PilotListener.java
index d0e1bea..974f7fc 100644
--- a/src/main/java/net/countercraft/movecraft/rules/PilotListener.java
+++ b/src/main/java/net/countercraft/movecraft/rules/PilotListener.java
@@ -7,10 +7,10 @@
import net.countercraft.movecraft.craft.SubCraft;
import net.countercraft.movecraft.craft.type.CraftType;
import net.countercraft.movecraft.events.CraftDetectEvent;
-import net.countercraft.movecraft.libs.net.kyori.adventure.audience.Audience;
-import net.countercraft.movecraft.libs.net.kyori.adventure.text.Component;
import net.countercraft.movecraft.util.ChatUtils;
import net.countercraft.movecraft.util.hitboxes.HitBox;
+import net.kyori.adventure.audience.Audience;
+import net.kyori.adventure.text.Component;
import org.bukkit.ChatColor;
import org.bukkit.Tag;
@@ -85,7 +85,8 @@ public void onCraftPilot(CraftDetectEvent event) {
if (direction == CruiseDirection.NONE) {
direction = currentDirection;
} else if (direction != currentDirection && requireCruiseSignAlignment) {
- craft.getAudience().sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX
+ // TODO: Remove cast when maven cache is cleared
+ ((Audience) craft.getAudience()).sendMessage(Component.text(ChatUtils.MOVECRAFT_COMMAND_PREFIX
+ "Detection failed: All cruise signs must face the same way."));
event.setCancelled(true);
}
@@ -93,7 +94,8 @@ public void onCraftPilot(CraftDetectEvent event) {
}
if (direction != CruiseDirection.NONE) {
- if (!checkDimensions(craft.getHitBox(), direction, type, craft.getAudience())) {
+ // TODO: Remove cast when maven cache is cleared
+ if (!checkDimensions(craft.getHitBox(), direction, type, (Audience) craft.getAudience())) {
event.setCancelled(true);
return;
}