Skip to content

Commit

Permalink
Improve example message by including message type (#297)
Browse files Browse the repository at this point in the history
* update description for animation setting

* improve chat example message by including type in message
  • Loading branch information
Jacoberson authored Oct 7, 2022
1 parent 876cb0c commit 6e3d90a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/hydratereminder/HydrateReminderPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,13 @@ public void onConfigChanged(ConfigChanged event)
// only send example chat notification if chat messages are enabled and player is logged in
if (config.hydrateReminderChatMessageEnabled() && client.getGameState() == GameState.LOGGED_IN)
{
HydrateReminderChatMessageType chatType = config.hydrateReminderChatMessageType();

clientThread.invoke(() ->
chatMessageSender.sendHydrateReminderChatMessage("This is how hydrate reminder chat notifications will appear."));
chatMessageSender.sendHydrateReminderChatMessage(
String.format(
"This is how %s hydrate reminder notifications will appear.", chatType
)));
}
break;
case "hydrateReminderComputerNotificationEnabled":
Expand Down

0 comments on commit 6e3d90a

Please sign in to comment.