WebStats icon indicating copy to clipboard operation
WebStats copied to clipboard

Data/Players not showing up on webpage

Open CarterKJ opened this issue 9 months ago • 2 comments

To simplify debugging this, I'm using the default config/web demo. The plugin connects to the server just fine, but the webpage is blank.

Image

This is the json that is getting sent back, it sees the players, but it is not displaying on the website.

{
    "online": {
        "overzync": true,
        "Terraformy": true,
        "Pantouflard457": true
    },
    "scoreboard": {
        "entries": [],
        "columns": [],
        "scores": {}
    },
    "playernames": [],
    "units": {}
}

I am running paper 1.21.4 (build 229). If you need any more information, please let me know.

CarterKJ avatar May 11 '25 03:05 CarterKJ

Hi! Did you specify what data to display in the config file? If you want to show placeholders from PlaceholderAPI for example, you need to list them under placeholders. Also check out the wiki if you haven't already (I know it's kinda hidden).

Dantevg avatar May 11 '25 09:05 Dantevg

Hello, I am using the default config for the data

(Currently using)

tables:
  - # The name of the table. This will be displayed above it on the webpage.
    # Leave empty for no title / name.
    name:

    # Only these columns will appear, in the order specified.
    # When commented out, all columns will be displayed, in alphabetical order (default).
    # The 'Player' column will always be displayed, as the first column.
    # columns: []

    # Which column to sort by
    #sort-column: Player

    # Whether to sort ascending (smallest first) or descending (largest first)
    #sort-direction: ascending

Right now, I just want to see the players' names. Even if I use PlaceholderAPI (for display name), there is still no data on the website

(Ive also tried this)

tables:
  - # The name of the table. This will be displayed above it on the webpage.
    # Leave empty for no title / name.
    name:

    # Only these columns will appear, in the order specified.
    # When commented out, all columns will be displayed, in alphabetical order (default).
    # The 'Player' column will always be displayed, as the first column.
    columns: [displayed name]

    # Which column to sort by
    #sort-column: Player

    # Whether to sort ascending (smallest first) or descending (largest first)
    #sort-direction: ascending
placeholders:
 '%placeholder_name%': displayed name

Neither has worked

CarterKJ avatar May 11 '25 18:05 CarterKJ

WebStats will not display players that do not have any scores to be displayed. If you don't configure any statistics to show on the page, then no player will have any scores and nothing will be displayed.

The '%placeholder_name%': displayed name in the config file is just an example of how to configure the placeholders. There you can fill in any placeholder and a custom name for the column. You should fill in the placeholders or scoreboard objectives you want to display first, then the players will be displayed. (at least, the players who have scores to be displayed)

Dantevg avatar May 12 '25 13:05 Dantevg

Thank you for the help, I have figured out the issue.

CarterKJ avatar May 12 '25 20:05 CarterKJ