From db9c375a9865c046c02ea326fbc818becf4aa6aa Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 9 Dec 2010 18:51:41 -0800 Subject: [PATCH 1/2] Fixing /prefix up a bit --- vMinecraftCommands.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 4417eea07..8096a868a 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -134,15 +134,15 @@ public class vMinecraftCommands{ if(!player.canUseCommand("/prefix")){ return EXIT_FAIL; } - if(args.length <= 1){ + if(args.length == 0){ vMinecraftChat.sendMessage(player, player, Colors.Rose + "Usage is /prefix [name color code] "); - vMinecraftChat.sendMessage(player, player, Colors.DarkPurple + "Example: /prefix e ^0[^a<3^0]"); + player.sendMessage(Colors.DarkPurple + "Example: /prefix e ^0[^a<3^0]"); vMinecraftChat.sendMessage(player, player, Colors.DarkPurple + "This would produce a name like... " + Colors.Black + "[" + Colors.LightGreen + "<3" + Colors.Black + "]" + Colors.Yellow + player.getName()); return EXIT_SUCCESS; } - if(args.length >= 2 && args[1] != null){ - player.setPrefix("ยง" + args[1]); - if(args.length >= 3 && args[2] != null){ + if(args.length >= 1 && args[0] != null){ + player.setPrefix(args[1]); + if(args.length == 2 && args[1] != null){ vMinecraftUsers.players.findProfile(player).setTag(args[2]); return EXIT_SUCCESS; } From 79b180b0d62b3c88dfe3ca5d00bbd67909783928 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 9 Dec 2010 18:56:49 -0800 Subject: [PATCH 2/2] Updated --- TODO | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index a5c68005b..097a610fc 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ Vminecraft b8 Todo: + ^r for rainbow color code + Finish work on the flat file system - + Antigriefs Working on this + Allow players to nickname themselves or others + Time manipulation Working on this * Have time changes not be instant but move the sky faster @@ -22,6 +21,8 @@ Vminecraft b8 Todo: DONE + Fixed death messages and ezModo + Quick recode of /me to use the new getName function + + Simple Fire Antigrief + + /prefix + /a to toggle admin chat + Code was organized + Aliasing was added