public class HeroService extends java.lang.Object implements ChannelService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
HeroService() |
Modifier and Type | Method and Description |
---|---|
void |
announce(java.lang.String channelID,
java.lang.String message)
Broadcast a message on a given channel.
|
void |
emote(java.lang.String channelID,
java.lang.String message,
org.bukkit.entity.Player sender)
Sends a message with a sender on a given channel.
|
static boolean |
exists()
Determines whether or not the HeroChat plugin is loaded AND enabled.
|
java.lang.String |
getServiceName()
Retrieves a unique string identifying this service.
|
boolean |
hasChannel(java.lang.String channelID)
Determines whether or not the channel with the given identifier exists.
|
public static final java.lang.String NAME
public static boolean exists()
public boolean hasChannel(java.lang.String channelID)
ChannelService
hasChannel
in interface ChannelService
channelID
- - channel identifier.public void announce(java.lang.String channelID, java.lang.String message)
ChannelService
announce
in interface ChannelService
channelID
- - channel identifier.message
- - message to broadcast.public void emote(java.lang.String channelID, java.lang.String message, org.bukkit.entity.Player sender)
ChannelService
emote
in interface ChannelService
channelID
- - channel identifier.message
- - message to broadcast.sender
- - sender to include in the message.public java.lang.String getServiceName()
Service
Note that this identifier must conform to an ENUM convention: upper case only, underscore for space.
A service MUST not alter its identifier once it has been registered.
getServiceName
in interface Service