public interface ChannelRegistrar
PlayerConnection
s and the server.Modifier and Type | Method and Description |
---|---|
List<String> |
getRegisteredChannels()
Gets the list of registered channels.
|
void |
registerChannel(Object plugin,
ChannelListener listener,
String channel)
Registers the given channel to the plugin.
|
void registerChannel(Object plugin, ChannelListener listener, String channel) throws ChannelRegistrationException
plugin
- The plugin registering the channellistener
- The listener that will listen forchannel
- The channel to registerChannelRegistrationException
- The channel name is too longChannelRegistrationException
- The channel name is reserved