Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofaa2 committed Sep 5, 2024
1 parent b18c839 commit 6849d6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public void onEnable() {
catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
e.printStackTrace();
}



}


}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,7 +16,7 @@

public class TestMassivePigCommand extends BukkitCommand {

private WrapperLivingEntity pig;
private WrapperEntity pig;

public TestMassivePigCommand() {
super("testmassivepig");
Expand All @@ -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");
Expand Down

0 comments on commit 6849d6e

Please sign in to comment.