From 66740290d3fdde8a4518597f2c15266c3c6b8698 Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Sun, 28 Nov 2010 01:17:52 -0600 Subject: [PATCH] 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. --- vminecraftCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vminecraftCommands.java b/vminecraftCommands.java index f3412bb87..26de3add0 100644 --- a/vminecraftCommands.java +++ b/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;