-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
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.
Świetna robota Piotrulla!
eternalcore-core/src/main/java/com/eternalcode/core/feature/teleport/request/TpaCommand.java
Outdated
Show resolved
Hide resolved
.notice(translation -> translation.tpa().tpaReceivedMessage()) | ||
.placeholder("{PLAYER}", player.getName()) | ||
.send(); | ||
}); | ||
|
||
this.requestService.createRequest(player.getUniqueId(), target.getUniqueId()); |
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.
I think you should create request when target is not ignored
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.
That its works
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.
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)
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.
All tested, smingen