IntellectualSites / IntellectualSites/PlotSquared

grants are set to 0, when Player left the server and joined again

Open
#4,381 0 comments 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

1.20.4

Describe the bug

Everytime I give a player with the command /p grant add .... some grants, they will set to 0, if he leave the server and join again. They will set to 0 at the moment when the player joined. During he is left it is still there.

To Reproduce
  1. /p grant add PLAYER
  2. /p grant check PLAYER = 1
  3. player leave Server
  4. /p grant check PLAYER = 1
  5. player join Server
  6. /p grant check PLAYER = 0
Expected behaviour

I expect that the grants are still there after leaving and joining.

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/15aa6d93e8f147edb502c4f01f97b8bc

PlotSquared Version

plotsquared-bukkit-7.3.6-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 reproducing the reported sequence with /p grant add, /p grant check, leaving, and rejoining on Paper 1.20.4 using the linked debugpaste for context. Trace the grant persistence and player-join handling; done means grants remain 1 after the player rejoins, with a regression test covering the sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.