Skip to content

Make use the format field from ChatUser #117

Description

@BlitzOffline

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()),

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementRequest for a new feature, or to change an existing one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions