naturecodevoid / voicechat-discord

A mod and plugin to make a bridge between Simple Voice Chat and Discord to allow for players without the mod to hear and speak.
https://modrinth.com/mod/simple-voice-chat-discord-bridge
MIT License
20 stars 8 forks source link

CommandRegisteredEvent -> LifecycleEvents.COMMANDS #53

Closed naipret closed 4 days ago

naipret commented 5 days ago

Describe The server log indicates that the plugin is using the deprecated CommandRegisteredEvent, which has been superseded by the LifecycleEvents.COMMANDS API. This event will be removed in a future release of PaperMC. (ChatGPT)

Log [02:44:25 WARN]: [voicechat-discord] "voicechat-discord v2.1.1" has registered a listener for com.destroystokyo.paper.event.brigadier.CommandRegisteredEvent on method "public void dev.naturecodevoid.voicechatdiscord.PaperPlugin.onCommandRegistered(com.destroystokyo.paper.event.brigadier.CommandRegisteredEvent)", but the event is Deprecated. "This event has been superseded by the Commands API and will be removed in a future release. Listen to LifecycleEvents.COMMANDS instead."; please notify the authors [naturecodevoid, Totobird].

Versions:

naturecodevoid commented 4 days ago

This is already fixed in 3.0.0.

naturecodevoid commented 1 day ago

3.0.0 is now out, which fixes this issue.

Paper/Purpur: https://modrinth.com/plugin/simple-voice-chat-discord-bridge/version/3.0.0 Fabric: https://modrinth.com/plugin/simple-voice-chat-discord-bridge/version/zQYUpUdg