mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Cleanup and fixes
This commit is contained in:
1 parent
8a7ab5f858
commit
32f5802208
5 files changed
+5
-3
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user