Package dev.aura.bungeechat.api
Interface BungeeChatApi
-
public interface BungeeChatApiThis is the base Interface for the BungeeChatApi. The central methods will be found here
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHOR_BRAINSTONEstatic StringAUTHOR_SHAWNstatic String[]AUTHORSstatic intBUILDstatic BuildTypeBUILD_TYPEstatic doubleCONFIG_VERSIONstatic String[]CONTRIBUTORSstatic StringDESCRIPTIONstatic String[]DONATORSstatic StringIDstatic StringNAMEstatic intPLUGIN_IDstatic String[]TRANSLATORSstatic StringURLstatic dev.aura.lib.version.VersionVERSIONstatic StringVERSION_STR
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FilegetConfigFolder()Retrieves (and creates if necessary) the config folder.static BungeeChatApigetInstance()Method to retrieve the instance of the APIdefault voidsendChannelMessage(BungeeChatContext context)The same assendChannelMessage(BungeeChatContext, ChannelType).voidsendChannelMessage(BungeeChatContext context, ChannelType channel)Sends a message from the sender in the context to the specified channel.voidsendPrivateMessage(BungeeChatContext context)Send a private message.
-
-
-
Field Detail
-
ID
static final String ID
- See Also:
- Constant Field Values
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
DESCRIPTION
static final String DESCRIPTION
- See Also:
- Constant Field Values
-
VERSION_STR
static final String VERSION_STR
- See Also:
- Constant Field Values
-
VERSION
static final dev.aura.lib.version.Version VERSION
-
BUILD_TYPE
static final BuildType BUILD_TYPE
-
BUILD
static final int BUILD
-
URL
static final String URL
- See Also:
- Constant Field Values
-
AUTHOR_BRAINSTONE
static final String AUTHOR_BRAINSTONE
- See Also:
- Constant Field Values
-
AUTHOR_SHAWN
static final String AUTHOR_SHAWN
- See Also:
- Constant Field Values
-
AUTHORS
static final String[] AUTHORS
-
CONTRIBUTORS
static final String[] CONTRIBUTORS
-
TRANSLATORS
static final String[] TRANSLATORS
-
DONATORS
static final String[] DONATORS
-
CONFIG_VERSION
static final double CONFIG_VERSION
- See Also:
- Constant Field Values
-
PLUGIN_ID
static final int PLUGIN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
static BungeeChatApi getInstance()
Method to retrieve the instance of the API- Returns:
- The BungeeChatApi instance
-
getConfigFolder
File getConfigFolder()
Retrieves (and creates if necessary) the config folder.- Returns:
- The existing config folder
-
sendPrivateMessage
void sendPrivateMessage(BungeeChatContext context) throws InvalidContextError
Send a private message. The context contains the sender, the target and the message!- Parameters:
context- Containing sender, target and message.- Throws:
InvalidContextError- Throws andInvalidContextErrorif either a sender, target or message is missing in this context.
-
sendChannelMessage
void sendChannelMessage(BungeeChatContext context, ChannelType channel) throws InvalidContextError
Sends a message from the sender in the context to the specified channel. The message has to be in the context.- Parameters:
context- Containing sender and message.channel- What channel to send the message in.- Throws:
InvalidContextError- Throws andInvalidContextErrorif either a sender or message is missing in this context.
-
sendChannelMessage
default void sendChannelMessage(BungeeChatContext context) throws InvalidContextError
The same assendChannelMessage(BungeeChatContext, ChannelType). But uses the channel the sender is currently in.- Parameters:
context- Containing sender and message.- Throws:
InvalidContextError- Throws andInvalidContextErrorif either a sender or message is missing in this context.
-
-