""/l" command added to MessageFormatter.java to represent LISTL protocol command.

This commit is contained in:
sebaschi 2022-04-08 14:57:56 +02:00
parent 13ac486624
commit 15d6474765

View File

@ -6,6 +6,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
public class MessageFormatter { public class MessageFormatter {
public static final Logger LOGGER = LogManager.getLogger(); public static final Logger LOGGER = LogManager.getLogger();
public static final BudaLogConfig l = new BudaLogConfig(LOGGER); public static final BudaLogConfig l = new BudaLogConfig(LOGGER);
@ -48,10 +49,16 @@ public class MessageFormatter {
} }
break; break;
case "/g": case "/g":
//CRTGM command
stringBuilder.append(Protocol.createNewGame + "$"); stringBuilder.append(Protocol.createNewGame + "$");
s = ""; s = ""; //command has no parameters
//TODO add LOGGER msg. Find out if .info or .debug. //TODO add LOGGER msg. Find out if .info or .debug.
break; break;
case "/l":
//LISTL command
stringBuilder.append(Protocol.listLobbies + "$");
s = ""; //Command has no parameters
break;
default: default:
s = msg; s = msg;
} }