Revert "Use translatablecomponents"

This reverts commit 5585452f
This commit is contained in:
Draycia committed 2020-09-06 01:55:02 -07: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;
}