Skip to content

Player profile data, dev origin fix, debug enhancements#14

Open
NineOfGaming wants to merge 3 commits into
DFOnline:mainfrom
NineOfGaming:main
Open

Player profile data, dev origin fix, debug enhancements#14
NineOfGaming wants to merge 3 commits into
DFOnline:mainfrom
NineOfGaming:main

Conversation

@NineOfGaming
Copy link
Copy Markdown

Summary

Adds structured player profile/location lookup support, expands debug tooling, and improves plot state tracking.

Added

  • Added /whois profile parsing with caching and timeout handling.
  • Added public player lookup APIs:
    • FlintAPI.requestPlayerProfile()
    • FlintAPI.requestPlayerProfile(String)
    • FlintAPI.requestPlayerLocation()
    • FlintAPI.requestPlayerLocation(String)
  • Added profile/location data models:
    • PlayerProfile
    • PlayerLocation
    • PlayerRanks
    • PlayerRank
    • PlayerRankCategory
    • PlayerBadge
  • Added current user profile/rank state through Flint.getUser().getProfile() and Flint.getUser().getRanks().
  • Added plot owner profile/rank state through Plot.getOwnerProfile() and Plot.getOwnerRanks().
  • Added separate API opt-ins for confirmed location tracking, user profile fetching, and plot owner profile fetching.
  • Added /flint debug controls for debug display, location confirmation, user profile fetching, and plot owner profile fetching.
  • Added /flint test locate and /flint test whois commands with detailed debug output.

Fixed / Changed

  • Replaced the internal locate result type with PlayerLocation so stored and requested location data use the same public model.
  • Fixed plot dev origin calculation being offset.
  • Fixed plot size detection caused by incorrect dev origin tracking.
  • Fixed code-space bounds check.
  • Improved underground code-space detection consistency.
  • Fixed crash due to async locate, whois, and toast UI updates running off the client thread.

Documentation

  • Documented profile/rank access, player lookup APIs, and the new API opt-ins in the README.
  • Improved README readability in several places.

Copy link
Copy Markdown
Collaborator

@zBinFinn zBinFinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review, I'll review the rest later

Comment thread src/main/java/dev/dfonline/flint/feature/impl/FlintCommandFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/FlintCommandFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/LocateFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/ModeTrackerFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/ModeTrackerFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/ModeTrackerFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/StateDebugDisplayFeature.java Outdated
@NineOfGaming NineOfGaming requested a review from zBinFinn June 3, 2026 10:47
@NineOfGaming
Copy link
Copy Markdown
Author

they need to make that button more obvious

Copy link
Copy Markdown
Collaborator

@zBinFinn zBinFinn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna continue reviewing later

Comment thread src/main/java/dev/dfonline/flint/feature/impl/ModeTrackerFeature.java Outdated
Comment thread src/main/java/dev/dfonline/flint/feature/impl/WhoisFeature.java
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerBadge.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerBadge.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerLocation.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerLocation.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerProfile.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerProfile.java Outdated
Comment thread src/main/java/dev/dfonline/flint/hypercube/PlayerRank.java Outdated
also added ability to clear profile cache
@NineOfGaming NineOfGaming requested a review from zBinFinn June 3, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants