java.lang.Object
com.ordwen.odailyquests.configuration.functionalities.progression.ToastNotification
All Implemented Interfaces:
IConfigurable

public class ToastNotification extends Object implements IConfigurable
Displays a native Minecraft toast using a temporary advancement.

Config section: toast

  • enabled (boolean)
  • frame (TASK|GOAL|CHALLENGE)
  • icon (Material)
  • icon_custom_model_data (int, optional)
  • text (string, supports %player% and %questName%) — the line shown on the toast
  • Constructor Details

  • Method Details

    • load

      public void load()
      Specified by:
      load in interface IConfigurable
    • sendToastNotificationInternal

      public void sendToastNotificationInternal(org.bukkit.entity.Player player, String questName)
      Sends a toast to a player if enabled.
      Parameters:
      player - target player
      questName - quest display name
    • sendToastNotification

      public static void sendToastNotification(org.bukkit.entity.Player player, String questName)