Class NotificationManager
java.lang.Object
com.petarmc.petarlib.notifications.NotificationManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendChatNotif(String msg, org.bukkit.entity.Player p) Sends a chat message to the player.voidshowActionBarNotif(String msg, org.bukkit.entity.Player p) Shows an action bar notification to the player.
-
Constructor Details
-
NotificationManager
public NotificationManager()
-
-
Method Details
-
showActionBarNotif
Shows an action bar notification to the player. This will appear above the player's hotbar and disappear after a few seconds.- Parameters:
msg-p-
-
sendChatNotif
Sends a chat message to the player. This is not an action bar notification, but a regular chat message.- Parameters:
msg-p-
-