-
Notifications
You must be signed in to change notification settings - Fork 11
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
Premium(license, online) support added #125
Conversation
[BugFix] Properly handle whitespaces in AuthenticationChatPasswordListener
Omg i just realized that it included commits from previous PR idk why, how do i get rid of them? |
…ommand and premium account process(PreLoginEvent, ServerConnectedEvent)
[BugFix] When license support is disabled in config, block /license c…
You could create branch with "premium account" features and create new pull request. But i dont think that (redundant commits) would have big impact |
yeah, i accidentally pushed to main branch. next time i will create new branch) |
@bivashy so what, is this alright, or i should add something else? |
Hi, currently i don’t have time to review this Pull Request. But i haven't seen handle of the case when player changes his username. You can look at LibreLogin, which handles every conflict, and name change |
well, to handle name change properly you have to switch from username to uuid in the config anyway. i can check if player name have changed on prelogin and change account username to his new name. |
api/src/main/java/com/bivashy/auth/api/config/PluginConfig.java
Outdated
Show resolved
Hide resolved
core/src/main/java/me/mastercapexd/auth/config/message/context/misc/TimePlaceholderContext.java
Outdated
Show resolved
Hide resolved
@@ -26,7 +27,7 @@ public class ChangePasswordCommand { | |||
|
|||
@DefaultFor({"passchange", "changepass", "changepassword"}) | |||
@CommandCooldown(CommandCooldown.DEFAULT_VALUE) | |||
public void changePlayerPassword(ServerPlayer sender, DoublePassword password) { | |||
public void changePlayerPassword(ServerPlayer sender, @Named("пароль") DoublePassword password) { |
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.
Maybe we could somehow make localized named annotation using Annotation replacers?
@DefaultFor({"license", "premium", "authlicense"}) | ||
@AutoComplete("* @onOff") | ||
@CommandCooldown(CommandCooldown.DEFAULT_VALUE) | ||
public void changePlayerPassword(ServerPlayer sender, @Named("пароль") String password, @Named("Вкл/Выкл") String onOff) { |
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.
Maybe we could somehow make localized named annotation using Annotation replacers?
First of all, great job! You've tackled the feature I was hesitant to approach. It seems you've implemented a mechanism that forces players into online mode if they have a pending premium account. Overall, the implementation is impressive. However, there are a few aspects I'd like to modify or avoid. To address these, I plan to submit a Pull Request to your repository with the necessary changes. Please note, my review is intended as constructive feedback, not personal criticism. It's meant to make it easier for others to understand and work with the code. Future Plans: Task List for Improvement:
Good luck! |
glad you are interested! im sorry, i didn't have time to do this before. i will look into it in 1-2 days i think |
Hello, maybe we should convert this Pull Request to Draft? I can do it myself, you can just place thumbs up emoji on my comment, and I'll convert this Pull Request into Draft. |
yeah, im sorry, i dont have much time right now. if this is gonna be still relevant, i can do this feature after the holidays |
No problem, there is no hurry, I'll try to contribute on this too when I'll have time. Happy christmas! |
you too! |
hi, im back for now. |
Hello there, annotation replacer documentation: https://github.com/Revxrsal/Lamp/wiki/Annotation-replacers Also you are not right about nicknames and UUID, players cannot change their UUID, because: If server runs as online mode, player UUID is generated by Mojang: https://wiki.vg/Mojang_API#Username_to_UUID |
oh, right. |
Yes, but we can resolve that too, we could create "strategy" for profile conflict (when offline and online accounts has same name), you can see it here: https://github.com/kyngs/LibreLogin/wiki/Profile-Conflicts And probably use code from this repository too |
Alright, im going to be working on it. But i couldn't manage to make annotation replacers work, im sorry. |
No problem, its ok |
Pull Request Etiquette
Changes
Closes Issue: #39
Description