diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-03-26 23:15:33 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-03-27 23:09:23 -0400 |
| commit | f8322cd21cde68a72b05efbad3a05b8e67c0bdd0 (patch) | |
| tree | d7e60bc8fedadc8fa7ae725571cad1f398eaf6dc /bukkit/src/packet/EntityDestroyPacket.kt | |
| download | kenshinshideandseek2-f8322cd21cde68a72b05efbad3a05b8e67c0bdd0.tar.gz kenshinshideandseek2-f8322cd21cde68a72b05efbad3a05b8e67c0bdd0.tar.bz2 kenshinshideandseek2-f8322cd21cde68a72b05efbad3a05b8e67c0bdd0.zip | |
initial
Diffstat (limited to 'bukkit/src/packet/EntityDestroyPacket.kt')
| -rw-r--r-- | bukkit/src/packet/EntityDestroyPacket.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bukkit/src/packet/EntityDestroyPacket.kt b/bukkit/src/packet/EntityDestroyPacket.kt new file mode 100644 index 0000000..3240b81 --- /dev/null +++ b/bukkit/src/packet/EntityDestroyPacket.kt @@ -0,0 +1,13 @@ +package cat.freya.khs.bukkit.packet + +import com.github.retrooper.packetevents.PacketEvents +import com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerDestroyEntities +import org.bukkit.entity.Entity +import org.bukkit.entity.Player as BukkitPlayer + +data class EntityDestroyPacket(val entiy: Entity) { + fun send(player: BukkitPlayer) { + val packet = WrapperPlayServerDestroyEntities(entiy.entityId) + PacketEvents.getAPI().playerManager.sendPacket(player, packet) + } +} |