mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fixed messages not being sent to the action bar
This commit is contained in:
		@@ -121,14 +121,13 @@ public class NotificationManager {
 | 
			
		||||
 | 
			
		||||
        final Audience audience = mcMMO.getAudiences().player(player);
 | 
			
		||||
 | 
			
		||||
        //If the message is being sent to the action bar we need to check if the copy if a copy is sent to the chat system
 | 
			
		||||
 | 
			
		||||
        Component notificationTextComponent = customEvent.getNotificationTextComponent();
 | 
			
		||||
        if(customEvent.getChatMessageType() == McMMOMessageType.ACTION_BAR)
 | 
			
		||||
        {
 | 
			
		||||
        if(customEvent.getChatMessageType() == McMMOMessageType.ACTION_BAR) {
 | 
			
		||||
            audience.sendActionBar(notificationTextComponent);
 | 
			
		||||
 | 
			
		||||
            if(customEvent.isMessageAlsoBeingSentToChat())
 | 
			
		||||
            {
 | 
			
		||||
            // If the message is being sent to the action bar we need to check if a copy is also sent to the chat system
 | 
			
		||||
            if(customEvent.isMessageAlsoBeingSentToChat()) {
 | 
			
		||||
                //Send copy to chat system
 | 
			
		||||
                audience.sendMessage(notificationTextComponent);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user