Skip to content
Success

Changes

Summary

  1. Use new `sendEquipmentChange` for `resetEquipment` (commit: 32cb5aa) (details)
Commit 32cb5aab5e38b71f03c2b9591da3b887fd4fdd49 by 31237389+tal5
Use new `sendEquipmentChange` for `resetEquipment`

`resetEquipment` was previsouly using NMS because you'd have to send every change individually if you used the API, but now that Spigot added a new `Player#sendEquipmentChange` that takes a map, it can be sent all at once using API.

Also removed the `default -> UnsupportedOperationException` from methods that were implemented on all supported versions.
(commit: 32cb5aa)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/PacketHelper.java (diff)
The file was modifiedv1_19/src/main/java/com/denizenscript/denizen/nms/v1_19/helpers/PacketHelperImpl.java (diff)