PlayerMoveEvent doesn’t seem to work, at least it doesn’t get called in the latest 3 dev builds of Sponge. Is this intended behaviour (for now ofc)?
When i follow this documentation about subcommands, i have the problem that i can’t call just /mail. Is this intended? If so, how can i make this work?
I want to get some information about players that are offline, is there any built-in way to get a Player instance for an offline player?
Is there any way to draw on maps?
These are the 4 points i couldn’t figure out with the forums or documentation.
That’s because I don’t know much about the commands API. I’ve pinged @zml on IRC (he made the commands API), hopefully he or someone more knowledgeable on commands can give you an answer.
PlayerMoveEventPlayerChatEvent (is what I was thinking about) is implemented. How about you paste your entire code regarding that class, and where it’s registered?
You have to set the executor of the parent command:
``CommandSpec mailCmd = CommandSpec.builder()
.setExecutor(mailExecutor)
.setChildren(subcommandMap)
…
@FerusGrim
I registered the PlayerMoveEvent in me.ekranos.misc.chat.ChatCleaner for testing, it isn’t pushed since it’s working. But it would be definetly registered, as all other events get called.
@boformer
AFAIK i set an executor for the root/parent command, i will try again later as i am going to bed now.
@simon816
Event after some research and crawling the source code, i found no way to mark it optional, i will try what boformer suggested.