feat: allow console tp (+update PAPI dependency link)#1150
Open
VladOliinyk wants to merge 6 commits intoerikzimmermann:developfrom
Open
feat: allow console tp (+update PAPI dependency link)#1150VladOliinyk wants to merge 6 commits intoerikzimmermann:developfrom
VladOliinyk wants to merge 6 commits intoerikzimmermann:developfrom
Conversation
Allow executing /tp from server console (player-way is unchanged). - CTeleport: setOnlyPlayers(false), fork at runCommand start; runConsoleBranch, processConsole chain, and tab-completer for console (player names then suggestTp). - Console syntax: /tp <playerA> [<playerB> | [<x> <y> <z>] [<yaw> <pitch>] [<server> [world] | <world>]] — teleport player to player or to coords/world/server. - ITeleportCommandHandler: two CommandSender overloads — tp(sender, player, x,y,z,...) and tp(sender, player, target). - TeleportCommandHandler (Free & Premium): both overloads implemented; Premium uses CONSOLE sender and send(..., null) + processTeleportResponseForConsole for proxy. - PrepareTeleportPacketHandler (proxy): for coords packet when sender not in cache (console), resolve target server from recipient instead of sender. - Lang: Use_Console, Relative_Coords_Console_Server_Only in ENG.yml.
…val)" This reverts commit d82d733.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1/2 Main changes:
Allow executing
/tpfrom server console (player-way is unchanged (not refactored, I've just copied necessary functions for easier support and to be sure I'm not breaking anything from player-comman-side)./tp <playerA> [<playerB> | [<x> <y> <z>] [<yaw> <pitch>] [<server> [world] | <world>]]— teleport player to player or to coords/world/server.Use_Console,Relative_Coords_Console_Server_OnlyinENG.yml.2/2
Additionally, updated PAPI dependency link.
3/2 (extra)
Tried to get rid of my own mistakes (but GitHub remembers everything 😅) with Fix PacketUtils for Paper 1.21.11+ by reverting that commit.