mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	2.1.225
This commit is contained in:
		@@ -27,8 +27,13 @@ public class McMMOPlayerNotificationEvent extends Event implements Cancellable {
 | 
			
		||||
    protected Component notificationTextComponent;
 | 
			
		||||
    protected final NotificationType notificationType;
 | 
			
		||||
 | 
			
		||||
    public McMMOPlayerNotificationEvent(Player who, NotificationType notificationType, Component notificationTextComponent, McMMOMessageType chatMessageType, boolean isMessageAlsoBeingSentToChat) {
 | 
			
		||||
    protected final Player player;
 | 
			
		||||
 | 
			
		||||
    public McMMOPlayerNotificationEvent(Player player, NotificationType notificationType,
 | 
			
		||||
                                        Component notificationTextComponent, McMMOMessageType chatMessageType,
 | 
			
		||||
                                        boolean isMessageAlsoBeingSentToChat) {
 | 
			
		||||
        super(false);
 | 
			
		||||
        this.player = player;
 | 
			
		||||
        this.notificationType = notificationType;
 | 
			
		||||
        this.notificationTextComponent = notificationTextComponent;
 | 
			
		||||
        this.chatMessageType = chatMessageType;
 | 
			
		||||
@@ -48,6 +53,10 @@ public class McMMOPlayerNotificationEvent extends Event implements Cancellable {
 | 
			
		||||
        isMessageAlsoBeingSentToChat = messageAlsoBeingSentToChat;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Player getPlayer() {
 | 
			
		||||
        return player;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public Component getNotificationTextComponent() {
 | 
			
		||||
        return notificationTextComponent;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user