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

Recoded Player.OnPreAuthenticating wia patch #159

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

Conversation

Mar1ki
Copy link

@Mar1ki Mar1ki commented Oct 28, 2024

Description

Describe the changes
Recoded OnPreAuthenticating, event, with tanspiler.

@louis1706 louis1706 added the Requires Testing Things need to be verified by an Exiled Developer/Contributor label Oct 29, 2024
@adarkaz
Copy link

adarkaz commented Oct 30, 2024

что это за шедевральный индекс я похлопаю

@Mar1ki
Copy link
Author

Mar1ki commented Oct 30, 2024

а че тебе не нравится?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 30, 2024

I tested this patch, and it works.

@Mar1ki
Copy link
Author

Mar1ki commented Oct 30, 2024

Anyone here?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

;(

@adarkaz
Copy link

adarkaz commented Oct 31, 2024

да жди ответят тебе

@VALERA771
Copy link

What will happen if you set IsAllowed to false?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

If IsAllowed set to false, the player will be kicked back to main menu, with Server Not Responding message.

@VALERA771
Copy link

Can you set it to kicked by a plugin reason?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Yeah, you can kick player with eventargs functions.

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

i mean, Not putting isallowed to false, but using ev.Reject function.

@VALERA771
Copy link

So when setting IsAllowed to false can you make that this reason will be displayed?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

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.

@VALERA771
Copy link

It will be better if we will specify reason when setting IsAllowed to false. Disconnecting with no actual reason is not good

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Ok, i will add this into transpiler, so it will call reject function automatically.

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

And if the new property Reason is not set, it will say: "Rejected by the plugin".

Copy link
Member

@VladTheCow VladTheCow left a 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

@Mar1ki Mar1ki changed the base branch from master to dev October 31, 2024 22:00
@Mar1ki
Copy link
Author

Mar1ki commented Nov 7, 2024

@VladTheCow sorry but can you review?

Copy link

@louis1706 louis1706 left a 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

@VladTheCow
Copy link
Member

Is everything tested? As far as I know, the reject methods didn't work, but what about now?

@Mar1ki
Copy link
Author

Mar1ki commented Nov 9, 2024

Yeah, i uncommented old one, they are working properly.

@Mar1ki
Copy link
Author

Mar1ki commented Nov 9, 2024

Tested it on whitelist, reserved slots.

@louis1706 louis1706 removed the Requires Testing Things need to be verified by an Exiled Developer/Contributor label Nov 9, 2024
@louis1706 louis1706 added the Do not merge Don't merge this PR label Nov 11, 2024
@louis1706
Copy link

louis1706 commented Nov 11, 2024

~~Because of the breaking change do not merge it now ~~
I didn't seen uncommented part

@Mar1ki
Copy link
Author

Mar1ki commented Nov 11, 2024

I think it is not breaking anything, couse function names are the same

@louis1706 louis1706 removed the Do not merge Don't merge this PR label Nov 11, 2024
@louis1706
Copy link

I think it is not breaking anything, couse function names are the same

yeah yeah i seen it after

Copy link
Collaborator

@Misaka-ZeroTwo Misaka-ZeroTwo left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts

@github-actions github-actions bot removed the Events label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants