Added ability to destroy rooms

This commit is contained in:
Waverunner
2015-07-12 13:05:56 -04:00
parent fb3a1f216f
commit c43f763992
7 changed files with 136 additions and 7 deletions
@@ -395,13 +395,19 @@ public class PlayerObject extends IntangibleObject {
public boolean addJoinedChannel(String path) {
synchronized (joinedChannels) {
return !joinedChannels.contains(path) && joinedChannels.add(path);
return true;
// TODO: Refactor
/*System.out.println("add joined channel: " + path);
return !joinedChannels.contains(path) && joinedChannels.add(path);*/
}
}
public boolean removeJoinedChannel(String path) {
synchronized (joinedChannels) {
return joinedChannels.remove(path);
return true;
// TODO: Refactor
/*System.out.println("remove joined channel: " + path);
return joinedChannels.remove(path);*/
}
}