We are definitely making progress.
At least now we getting a different error. Regardless of how I put the character names in the top. Its always saying that the sender is not trusted.
CHAT_MSG_ADDON / RUN / Dêvoutlight / /dance
Sender not trusted!
:: /runto / devoutlight / /dance
Sending command to devoutlight
- /dance
SendAddonMessage / RUN / /dance / WHISPER / devoutlight-Tichondrius
CHAT_MSG_ADDON / RUN / Devoutlight / /dance
Sender not trusted
Edit ::::::
When commenting the code
Code:
--if not TRUSTED_SENDERS[sender] then
-- print("Sender not trusted!") -- #DEBUG
-- return
--end
But its really important that I dont have other people sending commands to the other client. It could be very dangerous.
When testing a few commands I sometimes get errors like...
Command Doesnt Work
CHAT_MSG_ADDON / RUN / Devoutlight / /say test 123
Running slash command...
Error running command:
- /say test 123
- [string "/say test 123"]:1: unexpected symbol near '/'
Command Worked
CHAT_MSG_ADDON / RUN / Devoutlight / /follow Devoutlight
Running slash command...
Error running command:
- /follow Devoutlight
- [string "/follow Devoutlight"]:1: unexpected symbol near '/'
When using the follow command I get an error, but It still follows.