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

Make use the format field from ChatUser #117

Open
BlitzOffline opened this issue Aug 9, 2022 · 0 comments
Open

Make use the format field from ChatUser #117

BlitzOffline opened this issue Aug 9, 2022 · 0 comments
Labels
Enhancement Request for a new feature, or to change an existing one.

Comments

@BlitzOffline
Copy link
Member

BlitzOffline commented Aug 9, 2022

Instead of calculating the format a user uses every time a player send a message in chat, we should calculate it on player join and on plugin reload. This would allow other plugins and addons to change the formats of players without us overwriting them. To also make sure we override the format on reload, we should add a ReloadEvent that is called when the plugin is reloaded. This event should not be Cancellable.

@NotNull Format format();
void format(@NotNull final Format format);

FormatUtils.findFormat(user.player(), plugin.configManager().formats()),

@BlitzOffline BlitzOffline changed the title Remove FORMAT From user. Make use the format field from ChatUser Aug 11, 2022
@BlitzOffline BlitzOffline added the Enhancement Request for a new feature, or to change an existing one. label Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Request for a new feature, or to change an existing one.
Projects
None yet
Development

No branches or pull requests

1 participant