user-offline message is only used when receiver is vanished for sender.
BlitzOffline opened this issue · 1 comments
Currently the invalid-argument message is being send if the receiver is a ChatUser and that user is offline. We should be sending the user-offline message instead.
EDIT: We might want to register the ChatUser as a parameter with our own validator and stuff since right now I'm pretty sure triumph-cmds uses the SenderMapper we register when creating the BukkitCommandManager.
OK so I was really blind, and also this is really stupid but we register the argument in the registerCommands method.
ChatChat/plugin/src/main/java/at/helpch/chatchat/ChatChatPlugin.java
Lines 190 to 196 in 6a38248
Anyways we need to add extra checks here. First of all, if player == null, we need to send the offline-player message instead.