mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
1 parent
5585452fdc
commit
82023a0e72
2 files changed
+11
-13
No files matched your search
@@ -2,7 +2,6 @@ package net.draycia.carbon.events;
|
||||
|
||||
import net.draycia.carbon.channels.ChatChannel;
|
||||
import net.draycia.carbon.storage.ChatUser;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.TextComponent;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.Cancellable;
|
||||
@@ -19,10 +18,10 @@ public class ChatComponentEvent extends Event implements Cancellable {
|
||||
private @NotNull final ChatUser sender;
|
||||
private @Nullable final ChatUser target;
|
||||
private ChatChannel chatChannel;
|
||||
private Component component;
|
||||
private TextComponent component;
|
||||
private final String originalMessage;
|
||||
|
||||
public ChatComponentEvent(@NotNull ChatUser sender, @Nullable ChatUser target, ChatChannel chatChannel, Component component, String originalMessage) {
|
||||
public ChatComponentEvent(@NotNull ChatUser sender, @Nullable ChatUser target, ChatChannel chatChannel, TextComponent component, String originalMessage) {
|
||||
super(!Bukkit.isPrimaryThread());
|
||||
|
||||
this.sender = sender;
|
||||
@@ -70,11 +69,11 @@ public class ChatComponentEvent extends Event implements Cancellable {
|
||||
this.chatChannel = chatChannel;
|
||||
}
|
||||
|
||||
public Component getComponent() {
|
||||
public TextComponent getComponent() {
|
||||
return component;
|
||||
}
|
||||
|
||||
public void setComponent(Component component) {
|
||||
public void setComponent(TextComponent component) {
|
||||
this.component = component;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user