#Redundancy in messaging system
1 messages · Page 1 of 1 (latest)
I figured out sth like this : MessageManager.sendMessage(MessageType, PlaceholderCollection)
to use instead of current version: ```java
String rawMessage = configManager.getMessage(MessageType.ADDED_MEMBER_TO_PLOT);
String uncolouredMessage = MessageManager.replacePlaceholders(rawMessage, plot, user);
MessageManager.sendColouredMessageToPlayer(uncolouredMessage, player);```
so it'll be the role of sendMessage function now to get the actual message contents by the MessageType we provide
and we only provide one other thing, which is a some kind of container object which provides a list of objects containing data which might be used to replace placeholders in the message