From 6849d6ec6c3088faad80c2bde288b94c91cffc96 Mon Sep 17 00:00:00 2001 From: tofaa Date: Thu, 5 Sep 2024 19:00:45 +0300 Subject: [PATCH] Bump version --- build.gradle.kts | 2 +- test-plugin/build.gradle.kts | 2 +- .../tofaa/testentitylib/TestEntityLibPlugin.java | 4 ++++ .../tofaa/testentitylib/TestMassivePigCommand.java | 14 +++----------- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index ad2b85a..51a3dd2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ import java.io.ByteArrayOutputStream -val fullVersion = "2.4.9" +val fullVersion = "2.4.10" val snapshot = true group = "me.tofaa.entitylib" diff --git a/test-plugin/build.gradle.kts b/test-plugin/build.gradle.kts index fe65dd0..f82fc1f 100644 --- a/test-plugin/build.gradle.kts +++ b/test-plugin/build.gradle.kts @@ -12,7 +12,7 @@ repositories { dependencies { compileOnly(libs.paper) compileOnly(libs.packetevents.spigot) - implementation("me.tofaa.entitylib:spigot:2.4.5-SNAPSHOT") + implementation(project(":platforms:spigot")) // implementation(project(":platforms:spigot")) } diff --git a/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java b/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java index f5946c4..28b3f90 100644 --- a/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java +++ b/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java @@ -49,6 +49,10 @@ public void onEnable() { catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) { e.printStackTrace(); } + + + } + } diff --git a/test-plugin/src/main/java/me/tofaa/testentitylib/TestMassivePigCommand.java b/test-plugin/src/main/java/me/tofaa/testentitylib/TestMassivePigCommand.java index d7f6d03..29f90e1 100644 --- a/test-plugin/src/main/java/me/tofaa/testentitylib/TestMassivePigCommand.java +++ b/test-plugin/src/main/java/me/tofaa/testentitylib/TestMassivePigCommand.java @@ -5,6 +5,7 @@ import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerUpdateAttributes; import io.github.retrooper.packetevents.util.SpigotConversionUtil; import me.tofaa.entitylib.EntityLib; +import me.tofaa.entitylib.wrapper.WrapperEntity; import me.tofaa.entitylib.wrapper.WrapperLivingEntity; import org.bukkit.command.CommandSender; import org.bukkit.command.defaults.BukkitCommand; @@ -15,7 +16,7 @@ public class TestMassivePigCommand extends BukkitCommand { - private WrapperLivingEntity pig; + private WrapperEntity pig; public TestMassivePigCommand() { super("testmassivepig"); @@ -31,16 +32,7 @@ public boolean execute(@NotNull CommandSender commandSender, @NotNull String s, player.sendMessage("Large pig removed"); return true; } - pig = new WrapperLivingEntity(EntityTypes.PIG); - pig.getAttributes().setAttribute( - Attributes.GENERIC_SCALE, - 10, - new WrapperPlayServerUpdateAttributes.PropertyModifier( - UUID.randomUUID(), - 10, - WrapperPlayServerUpdateAttributes.PropertyModifier.Operation.MULTIPLY_BASE - ) - ); + pig = new WrapperEntity(EntityTypes.TNT); pig.addViewer(player.getUniqueId()); pig.spawn(SpigotConversionUtil.fromBukkitLocation(player.getLocation())); player.sendMessage("Large pig spawned");