From af8b608c1595429b1b4e64fc165bbb99046c67fb Mon Sep 17 00:00:00 2001 From: curtis <16502091+CurtisOK@users.noreply.github.com> Date: Tue, 2 May 2023 22:40:24 +0200 Subject: [PATCH] remove movement and packet handlers for now --- pom.xml | 19 +++++++++++++ .../java/lol/vera/spigot/VeraSpigotAPI.java | 5 ---- .../vera/spigot/handler/IMovementHandler.java | 17 ----------- .../vera/spigot/handler/IPacketHandler.java | 20 ------------- .../PacketHandlerImplementation.java | 28 ------------------- 5 files changed, 19 insertions(+), 70 deletions(-) delete mode 100644 src/main/java/lol/vera/spigot/handler/IMovementHandler.java delete mode 100644 src/main/java/lol/vera/spigot/handler/IPacketHandler.java delete mode 100644 src/main/java/lol/vera/spigot/implementation/PacketHandlerImplementation.java diff --git a/pom.xml b/pom.xml index 5a04e66..ebb24fd 100644 --- a/pom.xml +++ b/pom.xml @@ -34,6 +34,7 @@ com.github.azbh111 craftbukkit-1.8.8 R + provided org.projectlombok @@ -43,4 +44,22 @@ + + + + org.apache.maven.plugins + maven-shade-plugin + 2.3 + + + package + + shade + + + + + + + \ No newline at end of file diff --git a/src/main/java/lol/vera/spigot/VeraSpigotAPI.java b/src/main/java/lol/vera/spigot/VeraSpigotAPI.java index 2899d5a..e0ddac0 100644 --- a/src/main/java/lol/vera/spigot/VeraSpigotAPI.java +++ b/src/main/java/lol/vera/spigot/VeraSpigotAPI.java @@ -1,6 +1,5 @@ package lol.vera.spigot; -import lol.vera.spigot.implementation.PacketHandlerImplementation; import lol.vera.spigot.implementation.KnockbackImplementation; import lombok.Data; @@ -12,8 +11,4 @@ public class VeraSpigotAPI { private KnockbackImplementation knockback = new KnockbackImplementation.DEFAULT(); - - private PacketHandlerImplementation packetHandler - = new PacketHandlerImplementation.DEFAULT(); - } \ No newline at end of file diff --git a/src/main/java/lol/vera/spigot/handler/IMovementHandler.java b/src/main/java/lol/vera/spigot/handler/IMovementHandler.java deleted file mode 100644 index 64377b6..0000000 --- a/src/main/java/lol/vera/spigot/handler/IMovementHandler.java +++ /dev/null @@ -1,17 +0,0 @@ -package lol.vera.spigot.handler; - -import net.minecraft.server.v1_8_R3.PacketPlayInFlying; -import org.bukkit.Location; -import org.bukkit.entity.Player; - -public interface IMovementHandler { - - /** - * @param player The {@link Player} who has moved - * @param to The {@link Location} the player came from - * @param from The {@link Location} the player is going to - * @param packet The {@link PacketPlayInFlying} flying packet - */ - void handleMove(Player player, Location to, Location from, PacketPlayInFlying packet); - -} \ No newline at end of file diff --git a/src/main/java/lol/vera/spigot/handler/IPacketHandler.java b/src/main/java/lol/vera/spigot/handler/IPacketHandler.java deleted file mode 100644 index aef0bdc..0000000 --- a/src/main/java/lol/vera/spigot/handler/IPacketHandler.java +++ /dev/null @@ -1,20 +0,0 @@ -package lol.vera.spigot.handler; - -import net.minecraft.server.v1_8_R3.Packet; -import net.minecraft.server.v1_8_R3.PlayerConnection; - -public interface IPacketHandler { - - /** - * @param connection The player who we are sending the packet to - * @param packet The {@link Packet} which has been sent - */ - void handleSent(PlayerConnection connection, Packet packet); - - /** - * @param connection The player who receives the packet - * @param packet The {@link Packet} which has been received - */ - void handleReceived(PlayerConnection connection, Packet packet); - -} \ No newline at end of file diff --git a/src/main/java/lol/vera/spigot/implementation/PacketHandlerImplementation.java b/src/main/java/lol/vera/spigot/implementation/PacketHandlerImplementation.java deleted file mode 100644 index 77c2504..0000000 --- a/src/main/java/lol/vera/spigot/implementation/PacketHandlerImplementation.java +++ /dev/null @@ -1,28 +0,0 @@ -package lol.vera.spigot.implementation; - -import lol.vera.spigot.handler.IMovementHandler; -import lol.vera.spigot.handler.IPacketHandler; -import org.bukkit.plugin.java.JavaPlugin; - -public interface PacketHandlerImplementation { - - void registerMovementHandlers(JavaPlugin plugin, IMovementHandler... movementHandlers); - - void registerPacketHandlers(JavaPlugin plugin, IPacketHandler... packetHandlers); - - - class DEFAULT implements PacketHandlerImplementation { - - @Override - public void registerMovementHandlers(JavaPlugin plugin, IMovementHandler... movementHandlers) { - - } - - @Override - public void registerPacketHandlers(JavaPlugin plugin, IPacketHandler... packetHandlers) { - - } - - } - -} \ No newline at end of file