File tree Expand file tree Collapse file tree
java/dev/hypera/ultrastaffchat/managers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434public class StaffChatManager {
3535
3636 public static void broadcastMessage (CommandSender sender , String m ) {
37- String message = MD_ .parseMarkdown (m );
37+ String message = ( sender . hasPermission ( UltraStaffChat . getConfig (). getString ( "permission-chat-format" )) ? MD_ .parseMarkdown (m ) : m );
3838 UltraStaffChat .getInstance ().getAdventure ().filter (person -> {
3939 if (!person .hasPermission (messageRaw ("permission-read" )))
4040 return false ;
Original file line number Diff line number Diff line change @@ -397,6 +397,9 @@ permission-list: "staffchat.list"
397397# Permission | Staff (Permission needed to display on Staff List)
398398permission-staff : " staffchat.staff"
399399
400+ # Permission | Chat Formatting
401+ permission-chat-format : " staffchat.format"
402+
400403# Permission | Update Notification
401404permission-update : " ultrastaffchat.update"
402405
You can’t perform that action at this time.
0 commit comments