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

Centralized player chat management resource #567

Open
jlillis opened this issue Oct 19, 2024 · 1 comment
Open

Centralized player chat management resource #567

jlillis opened this issue Oct 19, 2024 · 1 comment

Comments

@jlillis
Copy link
Contributor

jlillis commented Oct 19, 2024

Is your feature request related to a problem? Please describe.
There are multiple onPlayerChat event handlers across multiple resources that implement the same or trivial functionality, such as:

  • playercolors: hooks onPlayerChat to apply the player's nametag color to their name in chat
  • freeroam: duplicates playercolor functionality and implements spam protections
  • tdma: applies team colors to chat messages
  • ctv: same as above
  • assault: same as above

In the case of freeroam and playercolors, these handlers conflict with each other resulting in chat messages appearing twice (see #460).

The other cases are examples of duplicated functionality, which isn't ideal.

Describe the solution you'd like
Implement a new chatmanager resource with the following functionality, customizable via resource settings:

  • Option to have player names appear in their nametag color
  • Option to have player names appear in their team's color
  • Anti-spam options, with integrations for admin and admin2
  • Other options as recommended

Describe alternatives you've considered
Changes could be made within mtasa-blue to implement player and team name colors in chat by default.

Additional context
Previous pull requests that weren't completed:
#461
#463

@Fernando-A-Rocha
Copy link
Contributor

I support the solution you describe. Well summarized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants