mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
Reassign after replacing...
This commit is contained in:
1 parent
c3df33f4b5
commit
b8ee341f9b
2 files changed
+1
-3
No files matched your search
@@ -51,9 +51,7 @@ public final class SimpleChat extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
|
||||
// Setup Adventure
|
||||
|
||||
audiences = BukkitAudiences.create(this);
|
||||
|
||||
try {
|
||||
|
||||
@@ -200,7 +200,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
Component formattedMessage = MiniMessageParser.parseFormat(messageFormat);
|
||||
|
||||
if (formattedMessage instanceof TextComponent && player.isOnline()) {
|
||||
((TextComponent) formattedMessage).replace(itemPattern, (input) -> {
|
||||
formattedMessage = ((TextComponent) formattedMessage).replace(itemPattern, (input) -> {
|
||||
return simpleChat.getItemStackUtils().createComponent(player.getPlayer()).toBuilder();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user