if left(text, 4) = "!kg " then dim playername 'Gets everything from 4th letter onward, minus spaces playername = trim(mid(text,4)) sendmessage("/kick " & playername & " Griefing") end if
Just tested this on vanilla without the slash in /kick. Should work a charm.
Thank you. That worked a charm. Not only that, but I could use that knowledge and apply it to other areas of my script. An all out success.
In the meantime, how can I obtain a player's location? I would heartily appreciate a quick answer :tongue.gif:
Well, I would've suggested maybe the bot Teleporting to the subject, and then you could get the bots co-ordinates with ease. But, it's already been solved...
1. Bot reading console text
Is there a way to make the bot trigger on console text?
What is Console text you ask?
- Person using /say
- Person speaking through the console
- Welcome message when you log into custom servers
2. Doing commands to a user
Ie. An AFK command.
Minebot: /say UltimateBudgie is AFK.
Any help at all is appreciated.