Change Team prefix color to team color and change chat color for team
chat to white
This commit is contained in:
parent
2d86703967
commit
de304a7339
|
@ -99,7 +99,7 @@ public class ChannelMatchModule extends MatchModule implements Listener {
|
||||||
if(party instanceof MultiPlayerParty) {
|
if(party instanceof MultiPlayerParty) {
|
||||||
logger.fine("Creating channel for " + party);
|
logger.fine("Creating channel for " + party);
|
||||||
|
|
||||||
String format = ComponentRenderers.toLegacyText(party.getChatPrefix(), NullCommandSender.INSTANCE) + "{1}§f: §7{3}";
|
String format = ComponentRenderers.toLegacyText(party.getChatPrefix(), NullCommandSender.INSTANCE) + "{1}§f: {3}";
|
||||||
|
|
||||||
PartyChannel channel;
|
PartyChannel channel;
|
||||||
if (getMatch().getPluginManager().getPlugin("ChatModerator") == null) {
|
if (getMatch().getPluginManager().getPlugin("ChatModerator") == null) {
|
||||||
|
|
|
@ -75,7 +75,7 @@ public abstract class ObservingParty extends MultiPlayerParty {
|
||||||
@Override
|
@Override
|
||||||
public BaseComponent getChatPrefix() {
|
public BaseComponent getChatPrefix() {
|
||||||
if(chatPrefix == null) {
|
if(chatPrefix == null) {
|
||||||
chatPrefix = new Component("(Team) ", ChatColor.GRAY);
|
chatPrefix = new Component("(Team) ", getBungeeColor());
|
||||||
}
|
}
|
||||||
return chatPrefix;
|
return chatPrefix;
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@ public class Team extends MultiPlayerParty implements Competitor, SluggedFeature
|
||||||
@Override
|
@Override
|
||||||
public BaseComponent getChatPrefix() {
|
public BaseComponent getChatPrefix() {
|
||||||
if(chatPrefix == null) {
|
if(chatPrefix == null) {
|
||||||
this.chatPrefix = new Component("(Team) ", ChatColor.GRAY);
|
this.chatPrefix = new Component("(Team) ", ChatUtils.convert(getColor()));
|
||||||
}
|
}
|
||||||
return chatPrefix;
|
return chatPrefix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue