Last active
October 31, 2019 10:22
-
-
Save preilakos/9cf9b63bdc47e1468cdcd045f6e39ca5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messageType: an int value representing the message type: | |
0: normal message | |
1: action message (/me) | |
2: team message | |
function messageLogDiscord(message, messagetype) | |
sendDiscordMessage(message) | |
end | |
addEventHandler("onPlayerChat", getRootElement(), messageLogDiscord) | |
function commandLogDiscord(command) | |
sendDiscordMessage(command) | |
end | |
addEventHandler("onPlayerCommand", root, commandLogDiscord) |
Can you give us the source code?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you give us the source code?