mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
adventure
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
package com.gmail.nossr50.events.skills;
|
||||
|
||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
||||
import net.md_5.bungee.api.ChatMessageType;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import com.gmail.nossr50.util.McMMOMessageType;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
@ -22,12 +22,12 @@ public class McMMOPlayerNotificationEvent extends Event implements Cancellable {
|
||||
private boolean isMessageAlsoBeingSentToChat;
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
protected ChatMessageType chatMessageType;
|
||||
protected McMMOMessageType chatMessageType;
|
||||
|
||||
protected TextComponent notificationTextComponent;
|
||||
protected Component notificationTextComponent;
|
||||
protected final NotificationType notificationType;
|
||||
|
||||
public McMMOPlayerNotificationEvent(Player who, NotificationType notificationType, TextComponent notificationTextComponent, ChatMessageType chatMessageType, boolean isMessageAlsoBeingSentToChat) {
|
||||
public McMMOPlayerNotificationEvent(Player who, NotificationType notificationType, Component notificationTextComponent, McMMOMessageType chatMessageType, boolean isMessageAlsoBeingSentToChat) {
|
||||
super(false);
|
||||
this.notificationType = notificationType;
|
||||
this.notificationTextComponent = notificationTextComponent;
|
||||
@ -48,19 +48,19 @@ public class McMMOPlayerNotificationEvent extends Event implements Cancellable {
|
||||
isMessageAlsoBeingSentToChat = messageAlsoBeingSentToChat;
|
||||
}
|
||||
|
||||
public TextComponent getNotificationTextComponent() {
|
||||
public Component getNotificationTextComponent() {
|
||||
return notificationTextComponent;
|
||||
}
|
||||
|
||||
public void setNotificationTextComponent(TextComponent notificationTextComponent) {
|
||||
public void setNotificationTextComponent(Component notificationTextComponent) {
|
||||
this.notificationTextComponent = notificationTextComponent;
|
||||
}
|
||||
|
||||
public ChatMessageType getChatMessageType() {
|
||||
public McMMOMessageType getChatMessageType() {
|
||||
return chatMessageType;
|
||||
}
|
||||
|
||||
public void setChatMessageType(ChatMessageType chatMessageType) {
|
||||
public void setChatMessageType(McMMOMessageType chatMessageType) {
|
||||
this.chatMessageType = chatMessageType;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user