-
Notifications
You must be signed in to change notification settings - Fork 65
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
Recoded Player.OnPreAuthenticating wia patch #159
base: dev
Are you sure you want to change the base?
Conversation
что это за шедевральный индекс я похлопаю |
а че тебе не нравится? |
I tested this patch, and it works. |
Anyone here? |
;( |
да жди ответят тебе |
What will happen if you set IsAllowed to false? |
If IsAllowed set to false, the player will be kicked back to main menu, with Server Not Responding message. |
Can you set it to kicked by a plugin reason? |
Yeah, you can kick player with eventargs functions. |
i mean, Not putting isallowed to false, but using ev.Reject function. |
So when setting IsAllowed to false can you make that this reason will be displayed? |
No, when IsAllowed is set to false, the player is kicked with Not Responding Message. But you can kick with custom one by using ev.Reject function. |
It will be better if we will specify reason when setting IsAllowed to false. Disconnecting with no actual reason is not good |
Ok, i will add this into transpiler, so it will call reject function automatically. |
And if the new property Reason is not set, it will say: "Rejected by the plugin". |
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.
Again, PRs should target dev branch, not master
@VladTheCow sorry but can you review? |
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.
if it's work it's fine for me
Is everything tested? As far as I know, the reject methods didn't work, but what about now? |
Yeah, i uncommented old one, they are working properly. |
Tested it on whitelist, reserved slots. |
~~Because of the breaking change do not merge it now ~~ |
I think it is not breaking anything, couse function names are the same |
yeah yeah i seen it after |
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.
Please resolve conflicts
Description
Describe the changes
Recoded OnPreAuthenticating, event, with tanspiler.