Party chat fixed

This commit is contained in:
nossr50 2010-12-30 12:43:59 -08:00
parent 42cb17db5b
commit ab86705d31
3 changed files with 10 additions and 3 deletions

View File

@ -454,7 +454,7 @@ public class vMinecraftChat {
for (Player p: etc.getServer().getPlayerList()){
if (p != null){
if (vMinecraftUsers.getProfile(p).inParty() && (vMinecraftUsers.getProfile(p).getParty().equals(vMinecraftUsers.getProfile(player).getParty()))){
sendMessage(player, p, partychat + message);
sendMessage(player, p, partychat + Colors.Green + message);
}
}
}

View File

@ -185,9 +185,13 @@ public class vMinecraftCommands{
return EXIT_SUCCESS;
}
public static int partychat(Player player, String[] args){
if (args.length < 1) {
player.sendMessage(Colors.Rose + "Usage is /p [Message]");
return EXIT_SUCCESS;
}
if(vMinecraftUsers.getProfile(player).inParty()){
String message = args.toString();
vMinecraftChat.partyChat(player, message);
String str = etc.combineSplit(0, args, " ");
vMinecraftChat.partyChat(player, str);
return EXIT_SUCCESS;
} else{
return EXIT_FAIL;

View File

@ -174,6 +174,9 @@ public class vMinecraftListener extends PluginListener {
return false;
}
}
else {
return false;
}
}
}
return false;