Make prefix appear in morle message

This commit is contained in:
Business Goose 2022-04-09 15:29:27 +01:00
parent cfe45eb0ad
commit ef12b23147
No known key found for this signature in database
GPG Key ID: 77DCA801362E9645
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ public class PlayerListener implements Listener {
Command_doom.doom(Bukkit.getConsoleSender(), player);
event.setMessage(BY_BEING_A_MOLE_YOU_MOCK_YOURSELF.get(
secureRandom.nextInt(BY_BEING_A_MOLE_YOU_MOCK_YOURSELF.size())));
event.setFormat(ChatColor.translateAlternateColorCodes('&',
MainConfig.getString(ConfigurationEntry.CHAT_FORMAT))
.replace("{RANK}", playerdata.getTag().replaceAll("%", "%%")));
return;
}