IntellectualSites / IntellectualSites/PlotSquared

`%plotsquared_plot_count%` does not show global plot count

Open
#4,935 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Requires Testing
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

Server Implementation

Paper

Server Version

26.2

Describe the bug

According to the wiki (https://intellectualsites.gitbook.io/plotsquared/customization/placeholders) the placeholder %plotsquared_plot_count% is meant to show "Amount of global plots of a player" but when I run it in different worlds, I get different amounts based on the world I am in, so it does not appear to be a global count unless by global it's meant to be per world.

But then I don't quite understand why there seems to be a different placeholder %plotsquared_plot_count_(world or 'this')% which would do literally that. So that leads me to believe this is a bug.

To Reproduce
  1. Make two PlotSquared worlds
  2. Claim one plot in one world
  3. Stay in this world and use /papi parse me %plotsquared_plot_count%. It should say "1"
  4. Go to the other world and use the same command again. It should say "0"
Expected behaviour

No matter which world I am parsing the placeholder in, it should give me the same amount, which is all my plots combined, no matter which world it's in.

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/6c8941690c3343c68d49725f1a6bafa4

PlotSquared Version

7.6.0-Premium

Checklist
Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the registration and implementation of %plotsquared_plot_count%, then compare it with the world-qualified %plotsquared_plot_count_(world or 'this')% placeholder. Reproduce the issue with two PlotSquared worlds and confirm that the unqualified placeholder returns the player's combined plot count regardless of the current world.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.