mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
make jenkins happy
This commit is contained in:
1 parent
ff3562475c
commit
02feb2592d
2 files changed
+3
-3
No files matched your search
@@ -130,7 +130,7 @@ public class CarbonChatChannel extends ChatChannel {
|
|||||||
|
|
||||||
// Log message to console
|
// Log message to console
|
||||||
String sm = user.isShadowMuted() ? "[SM] " : "";
|
String sm = user.isShadowMuted() ? "[SM] " : "";
|
||||||
System.out.println(sm + LegacyComponentSerializer.legacy().serialize(componentEvent.getComponent()));
|
System.out.println(sm + LegacyComponentSerializer.legacySection().serialize(componentEvent.getComponent()));
|
||||||
|
|
||||||
// Route message to bungee / discord (if message originates from this server)
|
// Route message to bungee / discord (if message originates from this server)
|
||||||
// Use instanceof and not isOnline, if this message originates from another then the instanceof will
|
// Use instanceof and not isOnline, if this message originates from another then the instanceof will
|
||||||
@@ -158,7 +158,7 @@ public class CarbonChatChannel extends ChatChannel {
|
|||||||
user.sendMessage(component);
|
user.sendMessage(component);
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println(LegacyComponentSerializer.legacy().serialize(component));
|
System.out.println(LegacyComponentSerializer.legacySection().serialize(component));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sendMessageToBungee(Player player, Component component) {
|
public void sendMessageToBungee(Player player, Component component) {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class ItemLinkHandler implements Listener {
|
|||||||
String patternContent = pattern.toString().replace("\\Q", "").replace("\\E", "");
|
String patternContent = pattern.toString().replace("\\Q", "").replace("\\E", "");
|
||||||
|
|
||||||
if (event.getOriginalMessage().contains(patternContent)) {
|
if (event.getOriginalMessage().contains(patternContent)) {
|
||||||
TextComponent component = event.getComponent().replaceFirst(pattern, (input) -> {
|
TextComponent component = event.getComponent().replace(pattern, (input) -> {
|
||||||
return TextComponent.builder().append(carbonChat.getItemStackUtils().createComponent(event.getUser().asPlayer()));
|
return TextComponent.builder().append(carbonChat.getItemStackUtils().createComponent(event.getUser().asPlayer()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user