add primary and secondary colors to broadcasts

This commit is contained in:
speedxx 2020-07-14 21:02:02 -04:00
parent 5ac1545038
commit f4f28584b5
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ public class CreateSubcommand extends Common implements CommandExecutor
Guild.createGuild(identifier, name, player); Guild.createGuild(identifier, name, player);
sender.sendMessage(tl(PREFIX + "Created a guild named \"" + GUtil.colorize(name) + "%p%\"!")); sender.sendMessage(tl(PREFIX + "Created a guild named \"" + GUtil.colorize(name) + "%p%\"!"));
Bukkit.broadcastMessage(GUtil.colorize("&a" + sender.getName() + " has created guild &a&l" + name)); Bukkit.broadcastMessage(GUtil.colorize(tl("%p%" + sender.getName() + " has created guild %p%&l" + name)));
return true; return true;
} }
} }

View file

@ -67,7 +67,7 @@ public class DisbandSubcommand extends Common implements CommandExecutor
guild.disband(); guild.disband();
GLog.info(player.getName() + " deleted guild " + guild.getName()); GLog.info(player.getName() + " deleted guild " + guild.getName());
sender.sendMessage(tl(PREFIX + "You have disbanded your guild!")); sender.sendMessage(tl(PREFIX + "You have disbanded your guild!"));
Bukkit.broadcastMessage(GUtil.colorize("&c&l" + guild.getName() + "&c has been disbanded")); Bukkit.broadcastMessage(GUtil.colorize(tl("%p%&l" + guild.getName() + "%p% has been disbanded")));
return true; return true;
} }
} }