What I tried to do was use
this to handle the message then send my own message like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.chat_send_all("<[moderator] minehippie> message")
Where minehippie is the name, moderator is rank, and message is the typed message.
One problem is that if you type an invalid command, it will send "/command" as the message and not say invalid command only to you.
EDIT: Believe me. I tried. (:-D)
EDIT2: The way to fix the problem in the initial post is to check the first character of the message and if it is a "/" character, then don't handle the message and just have normal operation. Else, handle the message.
EDIT3: Totally working on this later today.
EDIT4: Added in new release: 0.2.0. Haha, minetest is a great place.
God's not dead, He's surely alive!
My Stuff |
My User Page | Check out
my website!
<bigfoot547> I major in existing. | <RedPanda246> Not every day is good, but there is good in every day.
I, bigfoot, have this special ability to
destroy cameras and recording devices within a 5 mile radius of myself. Mystery solved.