TitleManager - PlaceholderAPI's not working (1.17)

Discussion in 'Spigot Plugin Help' started by Willtronic, Jul 14, 2021.

  1. Hi,

    This is my first thread on here so I don't know if I've done this correctly. I recently downloaded the latest version of TitleManager (v2.3.4) along with Placeholder API, playing on 1.17. When editing TitleManager's config, I tried to alter the sidebar menu, by adding some 'world' (built-in) and an EssentialsX placeholder (I obviously have the necessary plugins installed and they are up to date). I used the in-game commands /papi ecloud download ... and then did /papi reload, with both placeholders being successfully added. I then used some placeholders in my config, see below:

    ############################################################
    # +------------------------------------------------------+ #
    # | Scoreboard | #
    # +------------------------------------------------------+ #
    ############################################################

    # Sets the scoreboard (sidebar) that is sent to the player

    scoreboard:

    # Toggles this feature
    enabled: true

    # The title displayed at the very top of the scoreboard
    # WARNING! (1.12 or below ONLY) The title must consist of 32 or less characters (this includes color codes)
    title: '${shine:[0;2;0][0;25;0][0;25;0][&3&l;&b&l]My Server}'

    # The lines of the scoreboard (Maximum of 15 lines allowed)
    lines:
    - '&5&m----------------------------------&r'
    - '&6&l&oNumber of players in Spawn:&6&l%world_players_<Spawn>%'
    - '&4&l&oNumber of players in Survival:&4&l%world_players_<world>%'
    - '&r&r'
    - '&e&o&lBalance: &e&l£%world_totalbalance_<world>%'
    - '&r&r'
    - '&3&lPing: &3&l%{ping} MS'
    - '&5&m----------------------------------&r'

    The plugin runs fine and is definitely working; however, the positions in the menu where all 3 placeholders are is completely blank. It shows nothing but:
    -----------------------------------------------
    Number of players in Spawn:
    Number of players in Survival:

    Balance: £

    Ping: ... MS
    ----------------------------------------------

    The ping does actually work though. I've tried to use different placeholders, such as the %{balance} placeholder, but that completely breaks the plugin. I've tried to remove the % at each end to see if that has an effect. I'm worried the compatibility with 1.17 may be an influence. Any ideas what I've done wrong??
     
  2. Always make sure to download the expansions with /papi ecloud download <expansion>

    If you have updated to the recent version of PlaceholderAPI I recommend you stop the server, delete the PlaceholderAPI folder and start the plugin from 0 and then try to see if they work
     
    • Like Like x 1
  3. Thanks. I tried your method but its the same result. I clearly saw it change in-game too, from the normal syntax (i.e., %world_totalbalance_<world>%) to just a blank space. I have no idea what it could be :/

    Thanks for the suggestion though!
     
  4. It would appear that you are not using a Java class for your coding?
    Are you using some other code base?
    In which case, you will need some conversion methods (if you can apply them?).
     
  5. This isnt the development section hes only updating a config file for his needs
     
  6. Ah,yes sorry it was very late for me and the info did not sink in :oops:
    First of all the configuration text looks to be oddly formated.
    Refer to the top of the config file.
    It should look more like this.
    Code (Text):
    ############################################################
    # +------------------------------------------------------+ #
    # |                      Scoreboard                      | #
    # +------------------------------------------------------+ #
    ############################################################

    # Sets the scoreboard (sidebar) that is sent to the player

    scoreboard:

      # Toggles this feature
      enabled: true

      # The title displayed at the very top of the scoreboard
      # WARNING! (1.12 or below ONLY) The title must consist of 32 or less characters (this includes color codes)
      title: '${shine:[0;2;0][0;25;0][0;25;0][&3&l;&b&l]My Server}'

      # The lines of the scoreboard (Maximum of 15 lines allowed)
      lines:
      - '&b&m----------------------------------'
      - '&b> &3&lPlayer Name:'
      - '&b%{name}'
      - '&r'
      - '&b> &3&lPing:'
      - '&b&l%{ping} MS'
      - '&r&r'
      - '&b> &3&lServer Time:'
      - '&b%{server-time}'
      - '&b&m----------------------------------&r'
    You will notice that I have adjusted the format to bold for the value of the text Ping: and the %{ping} PlaceHolder.
     
    #6 Goldentoenail, Jul 18, 2021
    Last edited: Jul 18, 2021