2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
66740290d3

+ 2 - 1
vminecraftCommands.java

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