Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

ChatControlpro - Problem z prefixami


fevaris

Rekomendowane odpowiedzi

Opublikowano

Witam, niedawno zakupiłem ChatControl, i tak się zastanawiałem jak zrobić kolor pisania dla rangi, skoro ChatControl nakłada swój (którego chciałbym używać, ponieważ ma hover-format) i jednocześnie wtedy niweluje formatowanie chatu z Essentials, tym samym usuwając kolor tekstu rangi.

Słyszałem o opcji wybierania stylu pisania w gui (/chc color), ale bardziej chciałbym, aby to ranga miała przypisany własny kolor wiadomości.

 

Ważniejszą część configu (formatting.yml) udostępniam poniżej.

Spoiler

  Chat:
    # The first part (you can name all parts whatever you want)
    # that simply renders players prefix, and also contains
    # some fancy hover and click elements.
    First_Part:
      # The message that is shown in the chat.
      # In this case the variable ends with +, meaning we insert a
      # space " " automatically if prefix is not empty. Note only few variables
      # have this special feature, see our GitHub.
      Message: "&7{pl_prefix+}"
      # This part contains hover event which display an optional
      # message when you move your mouse over that chat part.
      #
      # Unlike the part name, you must name this "Hover_Event"
      Hover_Event:
        # What action should happen when you put your mouse on this part?
        Action: SHOW_TEXT
        # The messages that are shown to you in game.
        Values:
          - "&8*-----* &f{player} &8*-----*"
          - "&7Prefix&8: &7{pl_prefix}"
          - "&7Group&8: &b{pl_group}"

    # The second part simply displays the player's name.
    Second_Part:
      # The message that is shown in the chat.
      # If you want to show player's nick instead, use {nick}
      Message: "{player}&7: &f"
      # And show some fancy hover text, see above.
      Hover_Event:
        Action: SHOW_TEXT
        Values:
          - "&7Message issued: &b{timestamp}"
          - "&7Click to send a message"
      # This part also contains click event feature that will
      # write /msg <playername> into your chat when clicked.
      #
      # Unlike the part name, you must name this "Click_Event"
      Click_Event:
        # What action should happen when you click on this part?
        Action: SUGGEST_COMMAND
        # The message or value when action is fired.
        Value: '/msg {player} '

    # The third part that simply renders the actual chat message.
    Third_Part:
      # The message that is shown in the chat
      Message: "{message}"

Każda pomoc mile widziana, jeśli trzeba to mogę udostępnić cały config, ale za chat odpowiada tylko ta część.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...