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.

This commit is contained in:
cerevisiae 2010-11-28 01:17:52 -06:00
parent bfb48af50b
commit 66740290d3

View File

@ -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;