pref: add console color support
This commit is contained in:
parent
e3b19ee6c9
commit
8b60504918
@ -13,10 +13,12 @@ object ProxyUtils {
|
|||||||
|
|
||||||
fun sendMessage(message: String, args: Map<String, String> = emptyMap()) {
|
fun sendMessage(message: String, args: Map<String, String> = emptyMap()) {
|
||||||
val str = replaceStringUsingMap(message, args)
|
val str = replaceStringUsingMap(message, args)
|
||||||
|
val component = ProxyServerHelper.instance.miniMessage.deserialize(str)
|
||||||
ProxyServerHelper.instance.logger.info(str)
|
ProxyServerHelper.instance.logger.info(str)
|
||||||
|
ProxyServerHelper.instance.server.consoleCommandSource.sendMessage(component)
|
||||||
for (srv in ProxyServerHelper.instance.server.allServers) {
|
for (srv in ProxyServerHelper.instance.server.allServers) {
|
||||||
if (!srv.playersConnected.isEmpty()) {
|
if (!srv.playersConnected.isEmpty()) {
|
||||||
srv.sendMessage(ProxyServerHelper.instance.miniMessage.deserialize(str))
|
srv.sendMessage(component)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user