Browse Source

Slight improvements

Tankernn 8 years ago
parent
commit
918c7445b9

+ 1 - 1
src/main/java/common/MessagePacket.java

@@ -57,7 +57,7 @@ public class MessagePacket implements Packet {
 
 		switch (messType) {
 		case COMMAND:
-			StyleConstants.setForeground(style, Color.GREEN);
+			StyleConstants.setForeground(style, Color.MAGENTA);
 			break;
 		case ERROR:
 			StyleConstants.setForeground(style, Color.RED);

+ 1 - 1
src/main/java/server/command/List.java

@@ -8,7 +8,7 @@ import server.Server;
 import common.MessagePacket;
 import common.MessagePacket.MessageType;
 
-@CommandInfo(desc = "Lists all users online. (/list [channel])", name = "list", permission = "noob.list")
+@CommandInfo(desc = "Lists all users online. (/list [channel])", name = "list", permission = "user.list")
 public class List implements Command {
 
 	@Override

+ 2 - 2
src/test/java/client/ClientTestCase.java

@@ -1,6 +1,6 @@
 package client;
 
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.*;
 
 import org.junit.After;
 import org.junit.Before;
@@ -19,7 +19,7 @@ public class ClientTestCase {
 	@Test
 	public void testSend() {
 		user1.send("Hello!");
-		assertTrue(user1.so.isConnected());
+		assertFalse(user1.so.isClosed());
 	}
 
 	@Test