ソースを参照

Reorganized a lot of code. Added tons of comments. Change how commands are added. Encapsulated commands into their own functions. Modified some commands. Recoded others. Added personalized /who that shows name colors.

cerevisiae 14 年 前
コミット
66740290d3
1 ファイル変更2 行追加1 行削除
  1. 2 1
      vminecraftCommands.java

+ 2 - 1
vminecraftCommands.java

@@ -32,6 +32,7 @@ public class vminecraftCommands{
         cl.register("/rules", "rules", "Displays the rules");
         cl.register("/fabulous", "fabulous", "makes text SUUUPER");
         cl.register("/whois", "whois", "/whois [user]");
+        cl.register("/who", "who");
         cl.register("/say", "say");
         cl.register("/slay", "slay", "Kill target player");
         cl.register("/ezmodo", "invuln", "Toggle invulnerability");
@@ -330,7 +331,7 @@ public class vminecraftCommands{
 			int maxPlayers = server.getInt("max-players");
 			
 			//Output the player list
-			vminecraftChat.gmsg( Color.red + "Players(" + count + "/" + maxPlayers +
+			vminecraftChat.gmsg( Color.red + "Player List (" + count + "/" + maxPlayers +
 					"): " + tempList);
 			
 			return true;