Means they would have to type in ::/<MESSAGE>Code:if (playerCommand.startsWith("/")
I believe the slash is added as an input String in the client.
[code]
|
Everyone can join my clan chat but they cant use the "/" to talk to each other whats wrong? In commands.java or w/e im using this:
Why isn't it working? Will rep++@Override
public void processPacket(Client c, int packetType, int packetSize) {
String playerCommand = c.getInStream().readString();
if(Config.SERVER_DEBUG)
//Misc.println(c.playerName+" playerCommand: "+playerCommand);
if (playerCommand.startsWith("/") && playerCommand.length() > 1) {
if (c.clanId >= 0) {
//System.out.println(playerCommand);
playerCommand = playerCommand.substring(1);
Server.clanChat.playerMessageToClan(c.playerId, playerCommand, c.clanId);
} else {
if (c.clanId != -1)
c.clanId = -1;
c.sendMessage("You are not in a clan.");
}
return;
}
Maybe is because in my config my server debug is false?
Means they would have to type in ::/<MESSAGE>Code:if (playerCommand.startsWith("/")
I believe the slash is added as an input String in the client.
[code]
You're right on the money It would be in your client files. Can't remember where exactly, i just remember it being in the client.java. It may be in the server files, but i am pretty sure i remember seeing them in the client folder.
Oh, I Vain I, welcome to R-S, you are pretty popular on Mopar. Good luck keeping up with the pro's.
I've been here for a while.
or you could leave the client alone and edit your chat stuff serverside...
How about you stop being clever and actually help me out and tell me what to do because you're posts arent helping!!!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |