public class Notifications
extends org.bukkit.plugin.java.JavaPlugin
| Constructor and Description |
|---|
Notifications() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
arePluginNotificationsEnabled()
Gets whether the server allows custom plugin notifications
|
java.lang.String |
getAPI()
Gets the current API version
|
NotificationCorner |
getNotificationCorner()
Gets the corner where notifications are shown
|
boolean |
isNotificationBeingShown()
Gets whether there is currently a notification being shown
|
void |
onDisable()
Called when the plugin is disabled
NOT PART OF THE API! |
void |
onEnable()
Called when the plugin is enabled
NOT PART OF THE API! |
boolean |
showNotification(Notification notification)
Shows a notification on the desktop
|
boolean |
supportsAPI(java.lang.String API)
Gets whether an API version is supported
(Every version of Notifications supports all earlier APIs) |
getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPluginLoader, getResource, getServer, isEnabled, isInitialized, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toStringpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic java.lang.String getAPI()
public boolean supportsAPI(java.lang.String API)
API - The API version, for example "1.1"public NotificationCorner getNotificationCorner()
public boolean isNotificationBeingShown()
public boolean arePluginNotificationsEnabled()
public boolean showNotification(Notification notification)
notification - The notification to show