Use ./COMMAND in chat to display /COMMAND
Posted: Sun Nov 20, 2011 8:24 pm
I have seen people new to MineRealm see the response ./COMMAND, ex. ./home ./sethome ./spawn, in chat and then type ./Command in themselves. Minor issue but I had an idea...
WARNING: This post may become very technical and confusing skip to the bottom for a simpler explanation.
Maybe use the Listener set up for helpbot to intercept chat messages containing "./" as the first two chars and then cancel the message and rebroadcast cast as just "/". Simplest way would probably be to concatenate PlayerName + ":" + message and display that in global chat.
TL;DR / Non-Bukkit-Techie Speak: if you say "./home" into chat it looks like you said "/home" which is currently impossible to say.
WARNING: This post may become very technical and confusing skip to the bottom for a simpler explanation.
Maybe use the Listener set up for helpbot to intercept chat messages containing "./" as the first two chars and then cancel the message and rebroadcast cast as just "/". Simplest way would probably be to concatenate PlayerName + ":" + message and display that in global chat.
TL;DR / Non-Bukkit-Techie Speak: if you say "./home" into chat it looks like you said "/home" which is currently impossible to say.