custom
Toggle table of contents
0.3.7
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
custom
custom
/
net.crystopia.crystalshard.paper.custom.messaging
/
PluginMessage
Plugin
Message
class
PluginMessage
Members
Constructors
Plugin
Message
Link copied to clipboard
constructor
(
channelType
:
ChannelType
,
plugin
:
JavaPlugin
,
channel
:
String
,
messageType
:
String
,
onMessage
:
(
channel
:
String
,
player
:
Player
,
message
:
ByteArray
)
->
Unit
)
Types
Listener
Link copied to clipboard
class
Listener
(
val
channel
:
String
,
val
callback
:
(
channel
:
String
,
player
:
Player
,
message
:
ByteArray
)
->
Unit
)
:
PluginMessageListener
Properties
channel
Link copied to clipboard
var
channel
:
String
listener
Link copied to clipboard
var
listener
:
PluginMessage.Listener
?
message
Type
Link copied to clipboard
var
messageType
:
String
plugin
Link copied to clipboard
var
plugin
:
JavaPlugin
type
Link copied to clipboard
var
type
:
ChannelType
Functions
register
Link copied to clipboard
fun
register
(
)
:
PluginMessage
send
Link copied to clipboard
fun
send
(
message
:
String
)
:
PluginMessage
fun
send
(
message
:
String
,
player
:
Player
)
:
PluginMessage
unregister
Link copied to clipboard
fun
unregister
(
)
:
PluginMessage