Cleanup and fixes

This commit is contained in:
Draycia committed 2020-11-29 18:41:54 -08:00
1 parent 8a7ab5f858
commit 32f5802208
5 files changed
+5 -3

No files matched your search

@@ -36,7 +36,7 @@ public class ItemLinkHandler {
for (final Pattern pattern : event.channel().itemLinkPatterns()) {
if (pattern.matcher(event.originalMessage()).find()) {
final TextComponent component = (TextComponent) event.component()
.replaceFirstText(pattern, input -> itemComponent);
.replaceText(configurer -> configurer.once().match(pattern).replacement(itemComponent));
event.component(component);
break;
@@ -207,7 +207,7 @@ public class BukkitPlayerUser implements PlayerUser, ForwardingAudience.Single {
}
@Override
public void customChatColor(@Nullable final TextColor customChatColor, final boolean fromRemote) {
public void customChatColor(final @Nullable TextColor customChatColor, final boolean fromRemote) {
this.customChatColor = customChatColor;
if (!fromRemote) {