-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Configuration State API #1261
Conversation
# Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
Are there any new updates? |
I am waiting for some comments in order to improve this pull request, if you have something to contribute or any suggestion, you are welcome to do it |
.../java/com/velocitypowered/api/event/player/configuration/PlayerFinishConfigurationEvent.java
Show resolved
Hide resolved
...ava/com/velocitypowered/api/event/player/configuration/PlayerFinishedConfigurationEvent.java
Show resolved
Hide resolved
Is there anything else specifically that needs to be done before this could get merged? Just wondering if there's any plan other than just waiting on comments. |
# Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably unimportant, but I noticed that Configuration phase
is sometimes written with a capital c and sometimes with a lowercase c in the JavaDocs. Maybe you want to keep the spelling consistent?
...ava/com/velocitypowered/api/event/player/configuration/PlayerFinishedConfigurationEvent.java
Outdated
Show resolved
Hide resolved
.../java/com/velocitypowered/api/event/player/configuration/PlayerFinishConfigurationEvent.java
Show resolved
Hide resolved
I think there is currently no way to know to which server the player is currently connecting to when PlayerFinishConfigurationEvent or PlayerFinishedConfigurationEvent are called. Should probably add the ServerConnection to all configuration events. |
The players current server should be switched when they enter configuration for that server, IMHO; iirc, that was missing, however (and has generally been a source of a whole bunch of other issues over the past while) |
Currently the current server isnt set until after ServerConnectedEvent has been called which is done when handling the join game packet. |
Blocking the |
Is there any updates on this? I would really enjoy using this api without having to manually build velocity. Iirc theres nothing to be done here, correct? |
# Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java
…t/config-state # Conflicts: # proxy/src/main/java/com/velocitypowered/proxy/connection/player/resourcepack/handler/LegacyResourcePackHandler.java
Are there any plans to merge this? |
Yes |
There are plans, there is just no one executing them xD |
I think they want to bump the version first. |
What else is missing to bump the version then? https://github.com/PaperMC/Velocity/milestone/6 |
Hi, just wanted to follow up and see if there are any updates on merging this PR. It looks like everything is ready. Is there anything else that needs to be done before this can be merged? Thanks! |
* Implement Configuration State events * Implement PlayerFinishedConfigurationEvent * Fixed PlayerFinishConfigurationEvent execution * Apply suggestions * Fix keep alive when blocking PlayerFinishConfigurationEvent * Add ServerConnection to configuration events * Separate PlayPacketQueueHandler to fix AutoReadHolderHandler --------- Co-authored-by: Gero <[email protected]>
* Implement Configuration State events * Implement PlayerFinishedConfigurationEvent * Fixed PlayerFinishConfigurationEvent execution * Apply suggestions * Fix keep alive when blocking PlayerFinishConfigurationEvent * Add ServerConnection to configuration events * Separate PlayPacketQueueHandler to fix AutoReadHolderHandler --------- Co-authored-by: Gero <[email protected]>
Added events for when a player enters and finishes the configuration phase.
This, along with pull request #1224 would implement a functional way to check the State in which the player is in
blocked by #1224
resolves #1120