- Joined
- Jul 2, 2012
- Messages
- 1,080
- Reaction score
- 950
- Points
- 0
Annoying as hell to try and type D: in chat and get a channel not found error. My suggestion:
In CapiPlayerListener.java this function exists:
If you were to add:
or add an or statement like so:
then it would be possible to type D: in chat without a problem.
I heard somewhere that Cay is making a custom chat plugin, and I would appreciate it if something along these lines was included.
In CapiPlayerListener.java this function exists:
Code:
private String extractChannelString(String message)
{
int index = message.indexOf(':');
if (index == -1) return null;
String channelString = message.substring(0, index);
if(channelString.indexOf(' ') != -1) return null;
if(channelString.length() == 0) return null; // For smileys to be possible
return channelString;
}
If you were to add:
Code:
if(channelString.startsWith("D:") return null;
Code:
if(channelString.length() == 0 || channelString.startsWith("D:")) return null; // For smileys to be possible
I heard somewhere that Cay is making a custom chat plugin, and I would appreciate it if something along these lines was included.