Developers

Developer Information

Here you will find info on how to use this API!

First off, import the following classes:

import info.kennethdev.eapi.Messenger;
// import static info.kennethdev.eapi.Messenger.msg; (For Easy Usage Of msg())
import info.kennethdev.eapi.Announcer;
// import static info.kennethdev.eapi.Announcer.announce; (For Easy Usage Of announce())

(This Does Not Include UUIDToPlayer API! I will add docs on that soon!)

Note: I will add JavaDocs to this plugin in the next update or two.

Non-Static Imports

If you didn't use the static imports (above), use this method.

Messenger.msg({PLAYER}, {PREFIX}, {MESSAGE});
// Note: Color Codes Are Enabled. Use & for color symbol.
Announcer.announce({PREFIX}, {MESSAGE});
// Note: Color Codes Are Enabled. Use & for color symbol.

Static Imports

If you did use the static imports (above), use this method.

msg({PLAYER}, {PREFIX}, {MESSAGE});
// Note: Color Codes Are Enabled. Use & for color symbol.
announce({PREFIX}, {MESSAGE});
// Note: Color Codes Are Enabled. Use & for color symbol.

Added Note

Both methods are similar but static imports make it easier to use.


Comments

Posts Quoted:
Reply
Clear All Quotes