Class ToastNotification
java.lang.Object
com.ordwen.odailyquests.configuration.functionalities.progression.ToastNotification
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
load()
static void
sendToastNotification
(org.bukkit.entity.Player player, String questName) void
sendToastNotificationInternal
(org.bukkit.entity.Player player, String questName) Sends a toast to a player if enabled.
-
Constructor Details
-
ToastNotification
-
-
Method Details
-
load
public void load()- Specified by:
load
in interfaceIConfigurable
-
sendToastNotificationInternal
Sends a toast to a player if enabled.- Parameters:
player
- target playerquestName
- quest display name
-
sendToastNotification
-