This commit is contained in:
DaMachinator 2018-01-23 23:11:19 -05:00 committed by NikkyAI
parent a4ea9b829f
commit 8c1712cf86
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@ class CommandEventHandler {
message = message + " " + word
}
message = message.trim { it <= ' ' }
val name: String = if(event.sender.name.equals("@")) "CommandBlock" else event.sender.name
MessageHandler.transmit(ApiMessage(
username = event.sender.name,
username = name,
text = message
))
}