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

GH-577 Add TpaCommand to support ignored players #577

Merged
merged 3 commits into from
Dec 10, 2023

Conversation

P1otrulla
Copy link
Member

All tested, smingen

@P1otrulla P1otrulla changed the title GH-578 Add TpaCommand to support ignored players GH-577 Add TpaCommand to support ignored players Dec 10, 2023
Copy link

@igoyek igoyek left a comment

Choose a reason for hiding this comment

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

Świetna robota Piotrulla!

.notice(translation -> translation.tpa().tpaReceivedMessage())
.placeholder("{PLAYER}", player.getName())
.send();
});

this.requestService.createRequest(player.getUniqueId(), target.getUniqueId());
Copy link
Member

Choose a reason for hiding this comment

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

I think you should create request when target is not ignored

Copy link
Member Author

Choose a reason for hiding this comment

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

That its works

Copy link
Member

Choose a reason for hiding this comment

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

Powinieneś stworzyć requesta tylko wtedy kiedy target nie jest ignorowany.
Obecnie "zasłaniasz" wiadomość ale tak po za tym zawsze wysyłasz tpa requesta, co może być problematyczne jak ktoś wpisze /tpaaccet i nieświadomie zaakceptuje ostatniego "ignorowanego" requesta (a np. spodziewał się akceptacji starszego requesta którego widział na chat)

@P1otrulla P1otrulla requested a review from Rollczi December 10, 2023 10:43
@P1otrulla P1otrulla requested a review from Hyd3r1 December 10, 2023 12:44
Copy link
Member

@Rollczi Rollczi left a comment

Choose a reason for hiding this comment

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

:trollface:

@P1otrulla P1otrulla requested a review from Rollczi December 10, 2023 13:05
@Rollczi Rollczi merged commit 98ee2f9 into master Dec 10, 2023
3 checks passed
@Rollczi Rollczi deleted the feature/add-ignore-for-tpa-questions branch December 10, 2023 13:09
@vLuckyyy vLuckyyy linked an issue Dec 10, 2023 that may be closed by this pull request
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.

tpa is not ignored by /ignore
6 participants