-
-
Notifications
You must be signed in to change notification settings - Fork 76
Support for Bukkit#createCommandSender #488
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingimplemented for next releaseThis has been implemented in the current dev build for the next public releaseThis has been implemented in the current dev build for the next public release
CommandAPI version
9.1.0
Minecraft version
1.20.1
Are you shading the CommandAPI?
Yes
What I did
I encountered an issue when trying to use
Bukkit#createCommandSenderin combination withBukkit#dispatchCommand.What actually happened
Executing commands from custom senders generated by
Bukkit#createCommandSenderresults in aNullPointerException(see below) due to incorrect handling by the CommandAPI.What should have happened
The CommandAPI should support the special
CommandSenderreturned byBukkit#createCommandSender.Server logs and CommandAPI config
Other
Given this method, the CommandAPI assumes that
CommandSenderwill only be the types provided by Spigot. However, on Paper,Bukkit#createCommandSenderreturnsio.papermc.paper.commands.FeedbackForwardingSender, which extendsCommandSender.