Class NotificationManager

java.lang.Object
com.petarmc.lib.notification.NotificationManager

public class NotificationManager extends Object
Utility class for showing in-game notifications to the player. Only works on the client side.
  • Constructor Details

    • NotificationManager

      public NotificationManager()
  • Method Details

    • showError

      public static void showError(String message)
      Shows an error notification in chat.
      Parameters:
      message - the message to display
    • showInfo

      public static void showInfo(String message)
      Shows an info notification in chat.
      Parameters:
      message - the message to display
    • showChatMessage

      public static void showChatMessage(String message)
      Shows a custom notification in chat.
      Parameters:
      message - the message to display