#Redundancy in messaging system

1 messages · Page 1 of 1 (latest)

wintry locust
wintry locust
#

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);```
wintry locust
#

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