Skip to content

Conversation

@AlignedCookie88
Copy link
Contributor

@AlignedCookie88 AlignedCookie88 commented May 28, 2025

The messages now look like:
image

The API can be used as so:

Messages.sendMessage(
    "<white>" + approver.getGameProfile().getName() + "<default> authorized a web editor request!",
    Messages.INFO, player
);

It currently uses the Adventure API and MiniMessage but I am ok with changing this to use the vanilla Text API if required.

The current message types consist of:

  • INFO - Used for messages conveying information that do not fit into other categories.
  • SUCCESS - Used to notify the user of a successful action.
  • ERROR - Used to notify the user of an error.
  • FOLLOWUP - Used to provide additional context to previous messages.
  • NOTIFY - Used to notify the user of an action that may require their intervention.
    These are static final fields on the Messages class.

The ERROR and NOTIFY types play sound effects when sent to a player, i'm not too sure of the best way to show this in the PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant