mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +00:00
Fix weird ping capitalisation
This commit is contained in:
1 parent
48fc2a2a53
commit
841c6dd25a
1 file changed
+2
-1
@@ -29,6 +29,7 @@ import net.draycia.carbon.api.util.RenderedMessage;
|
|||||||
import net.draycia.carbon.common.config.ConfigFactory;
|
import net.draycia.carbon.common.config.ConfigFactory;
|
||||||
import net.kyori.adventure.audience.MessageType;
|
import net.kyori.adventure.audience.MessageType;
|
||||||
import net.kyori.adventure.key.Key;
|
import net.kyori.adventure.key.Key;
|
||||||
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextReplacementConfig;
|
import net.kyori.adventure.text.TextReplacementConfig;
|
||||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||||
import org.checkerframework.framework.qual.DefaultQualifier;
|
import org.checkerframework.framework.qual.DefaultQualifier;
|
||||||
@@ -58,7 +59,7 @@ public class PingHandler {
|
|||||||
recipient.playSound(configFactory.primaryConfig().pings().sound());
|
recipient.playSound(configFactory.primaryConfig().pings().sound());
|
||||||
}
|
}
|
||||||
|
|
||||||
return matchedText.color(configFactory.primaryConfig().pings().highlightTextColor());
|
return Component.text(recipientPlayer.username()).color(configFactory.primaryConfig().pings().highlightTextColor());
|
||||||
})
|
})
|
||||||
.build()), MessageType.CHAT);
|
.build()), MessageType.CHAT);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user