Skip to content
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

Decompose TabCompleteEvent into PlayerTabCompleteEvent and TabCompletionResponseEvent #1389

Open
wants to merge 6 commits into
base: dev/3.0.0
Choose a base branch
from

Conversation

Turboop8
Copy link

Decompose TabCompleteEvent into PlayerTabCompleteEvent and TabCompletionResponseEvent. The original TabCompleteEvent has been deprecated.

Now we can trigger PlayerTabCompleteEvent when the player issues a Tab complete action and modify the "partialMessage" sent by the player to the remote server. When the remote server returns the content of Tab complete, a TabCompletionResponseEvent is triggered and the contents of the returned "suggestions" list can be modified.

If TabCompleteEvent and TabCompletionResponseEvent are listening at the same time and both the suggestions of them have been modified, the modified suggestions provided by TabCompletionResponseEvent will be used.

…ionResponseEvent. The original TabCompleteEvent has been deprecated and is no longer called.
…he same time and both the suggestions of them have been modified, the modified suggestions provided by TabCompletionResponseEvent will be used.
Comment on lines 74 to 77
"player=" player
", partialMessage='" partialMessage '\''
", suggestions=" suggestions
'}';
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

undo

Comment on lines 92 to 96
"player=" player
", partialMessage='" partialMessage '\''
", suggestions=" suggestions
", result=" result
'}';
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

fix indenting here

Comment on lines 69 to 72
"player=" player
", partialMessage='" partialMessage '\''
", result=" result
'}';
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

fix indenting

*/
public class ClientConfigSessionHandler implements MinecraftSessionHandler {
public class ClientPlaySessionHandler implements MinecraftSessionHandler {
Copy link
Sponsor Contributor

Choose a reason for hiding this comment

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

Most of these changes should be undone

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.

None yet

2 participants