Skip to content

Resource pack callbacks are not triggered #1369

@scrayos

Description

@scrayos

Expected Behavior

I expect the callbacks to be triggered just like the PlayerResourcePackStatusEvent works. There should be invocations of the callback for any change.

Actual Behavior

The callback is not invoked at all.

Steps to Reproduce

  1. Send a valid resource pack like below
  2. Wait for it to load successfully
  3. See that there is no log message
e.getPlayer().sendResourcePacks(
                ResourcePackRequest.resourcePackRequest()
                        .packs(
                                ResourcePackInfo.resourcePackInfo()
                                        .id(UUID.randomUUID())
                                        .uri(URI.create("https://example.io/…"))
                                        .hash("54ff1a362a90915aa44a3b3a5a…")
                                        .build()
                        )
                        .replace(true)
                        .required(true)
                        .callback(ResourcePackCallback.onTerminal(
                                (uuid, audience) -> System.out.println("SUCCESSFULLY LOADED IT"),
                                (uuid, audience) -> System.out.println("FAILED TO LOAD IT")
                        ))
                        .build()
        );

Plugin List

Only the test plugin

Velocity Version

[23:27:39 INFO]: Velocity 3.3.0-SNAPSHOT (git-aa4e8780-b401)
[23:27:39 INFO]: Copyright 2018-2023 Velocity Contributors. Velocity ist lizenziert unter den Bedingungen der GNU General Public License v3.
[23:27:39 INFO]: velocitypowered.com - GitHub

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions