Some documentation stuff
This commit is contained in:
@@ -12,12 +12,12 @@ public class AllClientNames {
|
||||
static StringBuilder names = new StringBuilder();
|
||||
|
||||
/**
|
||||
* Safes a new name to the List of all Names
|
||||
* Saves a new name to the List of all Names
|
||||
*
|
||||
* @param currentName the new name to be added
|
||||
* @return All names adding the new currentName
|
||||
*/
|
||||
public static String allNames(String currentName) {
|
||||
return names.append(currentName).toString();
|
||||
return names.append(currentName).toString(); //todo: might use a String<> instead.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public class JServerProtocolParser {
|
||||
} catch (IndexOutOfBoundsException e) {
|
||||
System.out.println("Received unknown command");
|
||||
}
|
||||
//System.out.println(header); helpful for debugging
|
||||
//System.out.println(header); //helpful for debugging
|
||||
switch (header) {
|
||||
case "CHATA":
|
||||
h.broadcastMessage(msg.substring(6));
|
||||
|
||||
Reference in New Issue
Block a user