Initial work on groupchat

This commit is contained in:
Mads Boddum
2016-09-11 01:11:52 +02:00
parent cdc97f2ca0
commit 095e8e1868
5 changed files with 64 additions and 15 deletions
@@ -334,19 +334,19 @@ public class PlayerObject extends IntangibleObject {
public boolean addJoinedChannel(String path) {
synchronized (joinedChannels) {
return true;
// return true;
// TODO: Refactor
/*System.out.println("add joined channel: " + path);
return !joinedChannels.contains(path) && joinedChannels.add(path);*/
// System.out.println("add joined channel: " + path);
return !joinedChannels.contains(path) && joinedChannels.add(path);
}
}
public boolean removeJoinedChannel(String path) {
synchronized (joinedChannels) {
return true;
// return true;
// TODO: Refactor
/*System.out.println("remove joined channel: " + path);
return joinedChannels.remove(path);*/
// System.out.println("remove joined channel: " + path);
return joinedChannels.remove(path);
}
}