Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7064

sendEquipmentChange improvements

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version 3528-Spigot-56be6a8-031eaad (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
    • Yes

      1) My first suggestion would be a blocking functionality for any update packets sent to the player. Often, you send fake equipment to a player, but you do not want any packets to expose the faked equipment until some condition is met. Therefore, I suggest an option like sendEquipmentChangeBlocking to send an equipment change and silently cancel any equipment updates until some end method is called.

       

      2) Resetting any sent equipment: I currently cannot find any method that easily overwrites any fake equipment with the correct one. I.e. if you want to reveal the actual equipment, you need to manually send slot changes again, instead of calling a convenient method that sends out all the actual equipment of an entity.

            Unassigned Unassigned
            Photon Photon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: