Notifications

API for plugin developers

If you wish to see the API Javadocs, click here:

Full API


First, download the Notifications plugin and add Notifications.jar to your build path.

Also make sure Notifications is loaded before your plugin is! To do this, add to your plugin.yml.

To connect to Notifications, put this in your plugin's onEnable() method:

For example, it's this easy to display a notification when someone dies:

After putting in my onEnable(), I got this result:

Pretty sweet right? Check out the full API and see what else is possible, try experimenting a bit! ;)


Some things you can do:

  • Change the title (by default it's the server name)
  • Change the color of the lines
  • Change the background color of the notification
  • Change the width of your notification

It's all in the javadocs! :)

You must login to post a comment. Don't have an account? Register to get one!

Table of contents

  1. 1 Full API

Facts

Date created
Feb 13, 2013
Last updated
Feb 14, 2013

Author