Check whether lastPlayed reveals vanished players in /players/{player}

Open
#548 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
kotlin

Research direction

Read PlayerActivityHandler and check the supported Paper version’s OfflinePlayer.getLastSeen() behavior for online players. Compare the lastPlayed value for vanished players with the existing handling described for /api/v1/commons/server/players and /api/v1/plugins/mineauth/players/{player}. Done when the behavior is verified and, if presence leaks, the value is changed and documented.

Written by the indexing model from the issue text.

Description

bug priority: low

Background

#542 hides vanished players from GET /api/v1/commons/server/players, the minecraft.players.online gauge, and the online field of GET /api/v1/plugins/mineauth/players/{player}.

Possible leak

PlayerActivityHandler fills lastPlayed from OfflinePlayer.getLastSeen(). On Paper this is expected to return the current time while the player is online, so a vanished player's lastPlayed may still show that they are on the server. This has not been verified.

Tasks

  • Confirm the behaviour of getLastSeen() for an online player on the supported Paper version.
  • If it leaks presence, return a value that does not reveal it for vanished players (for example the previous lastSeen, or lastLogin), and document the behaviour.
Dominant language
Kotlin
Stars
1
Forks
1
Avg merge
23h 35m
Merged PRs (30d)
36

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from morinoparty/MineAuth

All issues in morinoparty/MineAuth

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.