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

feat: Added SendingCommand event to Player #163

Merged
merged 35 commits into from
Jan 16, 2025

Conversation

Mar1ki
Copy link

@Mar1ki Mar1ki commented Oct 31, 2024

Description

Describe the changes
Added SendingCommadnEvent, that is invoked, when player sends proper command.

What is the current behavior?
Added event, so it will be easier to contrrol commands.


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

@Mar1ki Mar1ki changed the title Sendingcommandevent Added SendingCommand event to Player Oct 31, 2024
@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Lol, i forgot to remove my test eventarg in first commit, thats why it was not working.

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

I think event name should indicate that this is RA command

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Like, change it to SendingRACommand?

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Or SendingValidRACommand

@VALERA771
Copy link

Idk. It's up to you but it must properly indicate when this event fires

@Mar1ki
Copy link
Author

Mar1ki commented Oct 31, 2024

Oh, ok

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.

PRs should target dev branch, not master

@Mar1ki Mar1ki changed the base branch from master to dev October 31, 2024 22:00
@Mar1ki Mar1ki requested a review from VladTheCow November 1, 2024 06:57
@louis1706
Copy link

i am not sure about the name SendingValidRACommandEventArgs because it's not only valid command ?
it's just any RA command right ?

@Mar1ki
Copy link
Author

Mar1ki commented Nov 9, 2024

Nope, only if command exist.

@Mar1ki
Copy link
Author

Mar1ki commented Nov 9, 2024

Oh, my English sucks

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.

Can you make sure everything works as expected?

EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
@Mar1ki
Copy link
Author

Mar1ki commented Nov 9, 2024

Yeah, i checked this on my own. Also your upper request is a little bit incorrect, the event is invoked before command execution.

@VladTheCow
Copy link
Member

Yeah, i checked this on my own. Also your upper request is a little bit incorrect, the event is invoked before command execution.

No? Everything is fine, look at other summaries

EXILED/Exiled.Events/Exiled.Events.csproj Outdated Show resolved Hide resolved
@Mar1ki Mar1ki requested a review from Misfiy January 7, 2025 19:27
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.

i did tested it and work fine

a only thing could be done more now it's doing SendedValidCommand that return the response of the plugin and success or not of it

Copy link

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

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

some more spelling mistakes to fix

Copy link

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

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

Fix some comments

@Mar1ki
Copy link
Author

Mar1ki commented Jan 14, 2025

Editing comment from moble phone, couse i want to sleep for now.

Copy link

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

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

Last few issues I noticed

@Mar1ki
Copy link
Author

Mar1ki commented Jan 15, 2025

I hope thats all on my English spelling

Copy link

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

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

I don't see any issues other than here now

EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
EXILED/Exiled.Events/Handlers/Player.cs Outdated Show resolved Hide resolved
@Mar1ki
Copy link
Author

Mar1ki commented Jan 15, 2025

I think it is finally done.

Copy link

@LumiFae LumiFae left a comment

Choose a reason for hiding this comment

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

Only thing I can notice

@louis1706 louis1706 merged commit 137f9c4 into ExMod-Team:dev Jan 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requires Testing Things need to be verified by an Exiled Developer/Contributor Transpiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants