Skip to content

Adds a set of player navigation/social commands, a periodic announcer, and yaw/pitch support for /tp. - #1

Merged
crxyne merged 3 commits into
2b2tplace:mainfrom
PPX005:player-commands-and-announcements
Jun 30, 2026
Merged

Adds a set of player navigation/social commands, a periodic announcer, and yaw/pitch support for /tp.#1
crxyne merged 3 commits into
2b2tplace:mainfrom
PPX005:player-commands-and-announcements

Conversation

@PPX005

@PPX005 PPX005 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

New commands

  • /tpa /tpaccept /tpdeny + /ignoretpa — teleport requests (single outgoing request per player; an ignoring player is reported identically to a missing one)
  • /here + /ignorehere — broadcast your coordinates (clickable)
  • /back n /forward n (/b /f) — per-player teleport history navigation
  • /old — view the oldest available snapshot
  • /discord /donate — configurable links

Other

  • TeleportHistoryListener records teleport destinations for back/forward
  • /tp now accepts optional [yaw] [pitch] (and <dimension> [yaw pitch])
  • Announcer: periodic chat messages with optional clickable links
  • Config: links.discord, links.donate, announcements, and the new entries in commands.allowed-commands

- new commands: /tpa /tpaccept /tpdeny + /ignoretpa, /here + /ignorehere,
  /back /forward (/b /f) with per-player teleport history, /old,
  /discord, /donate
- tpa enforces a single outgoing request per player and reports an
  ignoring player identically to a missing one
- TeleportHistoryListener records teleport destinations for back/forward
- /tp now accepts optional yaw/pitch (and dimension + yaw/pitch)
- announcer: periodic chat messages with optional clickable links
- config: links.discord, links.donate, announcements section, and the
  new commands added to commands.allowed-commands

@crxyne crxyne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks really good; few minor nitpicks, but probably ready to merge

Comment thread src/main/java/dev/place/placeviewer/systems/command/DiscordCommand.java Outdated
Comment thread src/main/java/dev/place/placeviewer/systems/command/DonateCommand.java Outdated
Comment thread src/main/java/dev/place/placeviewer/systems/command/HereCommand.java Outdated
Comment thread src/main/java/dev/place/placeviewer/systems/command/TpaCommand.java Outdated
Comment thread src/main/java/dev/place/placeviewer/systems/command/TpaCommand.java Outdated
PPX005 added 2 commits June 30, 2026 13:18
Add PersistentUuidSet (flat-file Set<UUID>, rewritten whole on save) and
wire HereCommand/TpaCommand load/save into PlaceViewer init/shutdown.
Handles toggles correctly, unlike PersistentUserSettings which leaves
stale per-user files for removed entries.
@PPX005

PPX005 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

Solved the issues described here. Mainly persisting ignore here and ignore tpas with new api

@crxyne crxyne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks fine now, thank you for the contribution

@crxyne
crxyne merged commit 8abbed4 into 2b2tplace:main Jun 30, 2026
2 checks passed
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