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 TypeMethodDescriptionvoidload()static voidsendToastNotification(org.bukkit.entity.Player player, String questName) voidsendToastNotificationInternal(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:
loadin interfaceIConfigurable
-
sendToastNotificationInternal
Sends a toast to a player if enabled.- Parameters:
player- target playerquestName- quest display name
-
sendToastNotification
-