mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +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()){
|
for (Player p: etc.getServer().getPlayerList()){
|
||||||
if (p != null){
|
if (p != null){
|
||||||
if (vMinecraftUsers.getProfile(p).inParty() && (vMinecraftUsers.getProfile(p).getParty().equals(vMinecraftUsers.getProfile(player).getParty()))){
|
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;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
public static int partychat(Player player, String[] args){
|
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()){
|
if(vMinecraftUsers.getProfile(player).inParty()){
|
||||||
String message = args.toString();
|
String str = etc.combineSplit(0, args, " ");
|
||||||
vMinecraftChat.partyChat(player, message);
|
vMinecraftChat.partyChat(player, str);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
} else{
|
} else{
|
||||||
return EXIT_FAIL;
|
return EXIT_FAIL;
|
||||||
|
@ -174,6 +174,9 @@ public class vMinecraftListener extends PluginListener {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user