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

View file

@ -581,6 +581,9 @@ public class PlayerListener implements Listener {
Command_doom.doom(Bukkit.getConsoleSender(), player); Command_doom.doom(Bukkit.getConsoleSender(), player);
event.setMessage(BY_BEING_A_MOLE_YOU_MOCK_YOURSELF.get( event.setMessage(BY_BEING_A_MOLE_YOU_MOCK_YOURSELF.get(
secureRandom.nextInt(BY_BEING_A_MOLE_YOU_MOCK_YOURSELF.size()))); 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; return;
} }