mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Party chat fixed
This commit is contained in:
parent
42cb17db5b
commit
ab86705d31
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -174,6 +174,9 @@ public class vMinecraftListener extends PluginListener {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user