Skip to content
Success

Changes

Summary

  1. Add mount_to arg to fakespawn command (#2513) (commit: e2e883a) (details)
  2. Initial packet handlers system (#2528) (commit: e1dd239) (details)
  3. `PicksUpItemEvent`: update, fix `pickup_entity` (commit: a301d00) (details)
  4. [ci-skip] Fix field naming in a few places (commit: 66e8385) (details)
  5. Update player profile packet handler (#2530) (commit: 12919ca) (details)
  6. Cleanup simple packet handlers (#2529) (commit: 5e07800) (details)
  7. Register new tag & mechanism presented as `location.waxed` (#2527) (commit: 5b964d2) (details)
  8. Add `play_hurt_animation` mech (#2532) (commit: 4b8fc6a) (details)
  9. `context.hand` tag for `PlayerConsumesScriptEvent` (#2534) (commit: cdb9d17) (details)
  10. new event `brewing starts` (#2531) (commit: 48c3950) (details)
  11. fix (#2536) (commit: 868196d) (details)
  12. Update disguise packet handler (#2535) (commit: ab355f0) (details)
  13. minor cleanup (commit: 6ed5db9) (details)
  14. Add offthread_repeat arg to relative teleport command (#2533) (commit: 6013532) (details)
  15. Update fake equipment packet handler (#2537) (commit: 1992555) (details)
  16. Include boat types to `EntityTag.color` (#2539) (commit: 3d9b608) (details)
  17. minor deprecation notice tweak (commit: 6628cd6) (details)
  18. Add `EntityTag.internal_data` mechanism (#2538) (commit: 9897530) (details)
Commit e2e883a69a68e421c5440361b8a2fc24f56f1316 by noreply
Add mount_to arg to fakespawn command (#2513)

* Add mount_to arg to fakespawn command

* Error if trying to mount_to entity that's not spawned

* PR fixes

* Update max fakespawn command args meta
(commit: e2e883a)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PlayerHelperImpl.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/PlayerHelper.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/entity/FakeEntity.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/DisguiseCommand.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/FakeSpawnCommand.java (diff)
Commit e1dd239bd7e788d98b7fcf12509c64049e9e167f by noreply
Initial packet handlers system (#2528)

* Part 1: packet handlers, move to separate classes

* Part 2: `!itworks` TM

* Newline at file end

* Change exception handling

* Only change the bundle packet when needed

* That's a slightly overcomplicated boolean experssion

* Remove `registerPacketHandlerForChildren`
(commit: e1dd239)
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HiddenEntitiesPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java (diff)
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/BlockLightPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DisguisePacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeEquipmentPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/AttachPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ActionBarEventPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DenizenPacketHandlerPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeBlocksPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakePlayerPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/TablistUpdateEventPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/EntityMetadataPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/PlayerHearsSoundEventPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/ProfileEditorImpl.java (diff)
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HideParticlesPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ProfileMirrorPacketHandlers.java
Commit a301d003dc615ac4ca8f53649458b8fa721bbb8b by 31237389+tal5
`PicksUpItemEvent`: update, fix `pickup_entity`
(commit: a301d00)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/entity/EntityPicksUpItemScriptEvent.java (diff)
Commit 66e83858d4011998b8f31111c5cb6455326f9d20 by 31237389+tal5
[ci-skip] Fix field naming in a few places
(commit: 66e8385)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/entity/EntityPicksUpItemScriptEvent.java (diff)
Commit 12919ca43e07fbb2261b050d859d5c0c4a568ee5 by noreply
Update player profile packet handler (#2530)

* Step 1: use `ProfileEditorImpl` directly

* Step 2: properly return the modified packet
(commit: 12919ca)
The file was removedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ProfileMirrorPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/ProfileEditorImpl.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java (diff)
Commit 5e0780041d09bae9d8e9b4ee70f1e98a52a839f0 by noreply
Cleanup simple packet handlers (#2529)

* Cleanup simple packet handlers

* Simplify fake player packet handler

* Minor actionbar handler cleanup

* Remove legacy `id != -1` check
(commit: 5e07800)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/BlockLightPacketHandlers.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ActionBarEventPacketHandlers.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HideParticlesPacketHandlers.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakePlayerPacketHandlers.java (diff)
Commit 5b964d27b54267495f1eb6da360bac091237d75d by noreply
Register new tag & mechanism presented as `location.waxed` (#2527)

* add tag & mechanism for `location.waxed`

* describe more `ElementTag` return

* hop into 1.20 version checker

* change the description on tag `locationtag.waxed`

* mechanism require boolean
(commit: 5b964d2)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java (diff)
Commit 4b8fc6ae9aa28f514677b265ae1f3ed1b8151bb6 by noreply
Add `play_hurt_animation` mech (#2532)

* Add `play_hurt_animation` mech for EntityTag

Also update the `animate` command's meta to advise using this mechanism for 1.20+

* Add living entity check + improve meta
(commit: 4b8fc6a)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/AnimateCommand.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java (diff)
Commit cdb9d17ccf1eb6674cd36f2d78675db2ad8d6595 by noreply
`context.hand` tag for `PlayerConsumesScriptEvent` (#2534)

* add base context.hand

* use modern switch method, version check maybe

* use modern switch expr, add meta

* improve meta entry
(commit: cdb9d17)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/player/PlayerConsumesScriptEvent.java (diff)
Commit 48c3950b179d198faa051429d1d455fd2d740c22 by noreply
new event `brewing starts` (#2531)

* register new event `on brewing start`

* NL@EoF

* use `registerDetermination` instead `applyDetermination`

* `Brewing Start` event is 1.19

* simplifies registerDetermination
(commit: 48c3950)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/ScriptEventRegistry.java (diff)
The file was addedplugin/src/main/java/com/denizenscript/denizen/events/block/BrewingStartsScriptEvent.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/ChunkTag.java (diff)
Commit ab355f08045ddfd625bcfe0788c02fa6f3b782a4 by noreply
Update disguise packet handler (#2535)

* Initial cleanup + split

* Cleanup entity getting

* Cleanup general handling

* Cleanup entity data handling

* Cleanup attributes packet handling

* Cleanup reflection usage

* Cleanup disguise sending
(commit: ab355f0)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PacketHelperImpl.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DisguisePacketHandlers.java (diff)
The file was modifiedpaper/src/main/java/com/denizenscript/denizen/paper/events/EntityTeleportedByPortalScriptEvent.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/player/PlayerConsumesScriptEvent.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/block/BrewingStartsScriptEvent.java (diff)
Commit 6013532c94cb9347dc63b3c9ca6f53e079167c4f by noreply
Add offthread_repeat arg to relative teleport command (#2533)

* Add offthread_repeat arg to relative teleport command

* Add offthread_yaw/pitch to new teleport offthread_repeat options

* Meta fixes

* Send initial packet then do repeats instead of waiting first
(commit: 6013532)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PacketHelperImpl.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/TeleportCommand.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/PacketHelper.java (diff)
Commit 199255525a6023726ceb25f666971dc87a33f370 by noreply
Update fake equipment packet handler (#2537)

* Initial method split

* Update equipment packet handling

* Cleanup entity event packet handling

* Cleanup set content packet handling

* Cleanup set slot packet handling

* Cleanup getting the main hand slot

* Make `getMainHandSlot` take a player
(commit: 1992555)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeEquipmentPacketHandlers.java (diff)
Commit 3d9b608c779660c65c35103be4c8b780cd3fee52 by noreply
Include boat types to `EntityTag.color` (#2539)

* Update `boat_type` to use new Spigot API

* Update to work on different versions

* Update meta

* Make functions `abstract`

* Deprecate `boat_type` in favor of `EntityTag.color`

* Remove unneeded version check

* Update tag link

* Add version check for deprecation notices + cleanup

* Remove unneeded version check and move enum check

* Remove `get/setBoatType` functions and move contents

* Update `switch` statements

* Use `as()` method instead of casting `getEntity()`
(commit: 3d9b608)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/MultiVersionHelper1_19.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityColor.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityBoatType.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/BukkitImplDeprecations.java (diff)
Commit 6628cd63ec02e60a93536505002e3d396e7e084e by git_commits
minor deprecation notice tweak
(commit: 6628cd6)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/BukkitImplDeprecations.java (diff)
Commit 9897530e77ffc240b7f408d8ed246e037b0b45d9 by noreply
Add `EntityTag.internal_data` mechanism (#2538)

* Add `EntityTag.internal_data` mechanism

* `setInternalEntityData` -> `modify`

* Add name -> internal ID mapping

* Update meta

* Remove newline

* Fallback to parsing as int
(commit: 9897530)
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/EntityDataNameMapper.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/EntityHelperImpl.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/EntityHelper.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/Handler.java (diff)