Fix party chat

This commit is contained in:
samczsun 2017-01-19 18:16:43 -05:00
parent da36276bc3
commit 343167245e
3 changed files with 1 additions and 5 deletions

View File

@ -479,7 +479,7 @@ public class HubManager extends MiniPlugin implements IChatMessageFormatter
if (rank != Rank.ALL) if (rank != Rank.ALL)
rankStr = rank.getTag(true, true) + " "; rankStr = rank.getTag(true, true) + " ";
//Party Chat //Party Chat
if (event.getMessage().charAt(0) == '#') if (event.getMessage().charAt(0) == '@')
{ {
Party party = _partyManager.getPartyByPlayer(player); Party party = _partyManager.getPartyByPlayer(player);
if (party != null) if (party != null)

View File

@ -631,8 +631,6 @@ public class HubManager extends MiniClientPlugin<HubClient> implements IChatMess
{ {
if (event.getMessage().length() > 1) if (event.getMessage().length() > 1)
{ {
event.getRecipients().clear();
event.setMessage(event.getMessage().substring(1, event.getMessage().length()).trim()); event.setMessage(event.getMessage().substring(1, event.getMessage().length()).trim());
event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + playerName + " " + C.cPurple + "%2$s"); event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + playerName + " " + C.cPurple + "%2$s");

View File

@ -123,8 +123,6 @@ public class GameChatManager implements Listener
{ {
if (event.getMessage().length() > 1) if (event.getMessage().length() > 1)
{ {
event.getRecipients().clear();
event.setMessage(event.getMessage().substring(1, event.getMessage().length())); event.setMessage(event.getMessage().substring(1, event.getMessage().length()));
event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + event.getPlayer().getName() + " " + C.cPurple + "%2$s"); event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + event.getPlayer().getName() + " " + C.cPurple + "%2$s");