Velocity
Velocity copied to clipboard
Resource pack callbacks are not triggered
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
- Send a valid resource pack like below
- Wait for it to load successfully
- 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