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

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

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

@louis1706 louis1706 requested a review from VladTheCow November 11, 2024 19:04
Copy link

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

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

If everyting is working as expected

@github-actions github-actions bot removed the Events label Nov 18, 2024
@Misaka-ZeroTwo
Copy link
Collaborator

Personally speaking, Sending**Valid**RACommand feels a bit redundant.

@Mar1ki
Copy link
Author

Mar1ki commented Nov 23, 2024

Originaly it was SendingCommand

@Mar1ki
Copy link
Author

Mar1ki commented Nov 23, 2024

Wth why the build failed

Copy link
Member

@Misfiy Misfiy left a comment

Choose a reason for hiding this comment

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

Add enum for CommandType
SendingValidCommand (with CommandType) instead of only RA

@Mar1ki
Copy link
Author

Mar1ki commented Nov 30, 2024

yeah, i was making the same but for client commands

@LumiFae
Copy link

LumiFae commented Dec 25, 2024

@Mar1ki how is the progress going on this one, I would love this feature

@louis1706 louis1706 changed the title Added SendingCommand event to Player feat: Added SendingCommand event to Player Dec 26, 2024
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