Skip to content

add tpaccept and tpdeny commands - #4

Merged
UrAvgCode merged 2 commits into
UrAvgCode:mainfrom
Xenos-core:feat/tpaccept-tpdeny
Nov 28, 2026
Merged

UrAvgCode merged 2 commits into
UrAvgCode:mainfrom
Xenos-core:feat/tpaccept-tpdeny

Conversation

@Xenos-core

Copy link
Copy Markdown
Contributor

Saw #3 where people miss the [Accept] button or can't click it at all on Geyser, so this adds typed commands for it

  • /tpaccept [player] accepts a request, if you leave out the player it takes the newest one
  • /tpdeny [player] same thing but denies it and tells the sender
  • added a [Deny] button next to [Accept] plus a small hint line about the commands

Pending requests now live in a small TeleportRequests class so the button and the command share the same request. Whichever one you use first removes it, so it can't be accepted twice. Requests still expire after 60 seconds like before and old ones get cleaned up so the map doesn't grow

Permissions didn't change, /tpaccept and /tpdeny work for anyone with essentials.tpa.accept or essentials.tpahere.accept

Also added both commands to the README

Closes #3

@UrAvgCode
UrAvgCode merged commit 6a9727f into UrAvgCode:main Nov 28, 2026
@UrAvgCode

Copy link
Copy Markdown
Owner

nice, thank you!
I just turned your TeleportRequests class into a PluginModule with Events to better fit into the current architecture.
I just merged it and it will be in the next release.

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.

Big problem

2 participants