SkyLib
1.1.1
SkyLib
/
de.skyslycer.skylib.message
/
MessageHandler
Message
Handler
public
class
MessageHandler
A message handler for loading messages.
Constructors
Functions
Constructors
Message
Handler
Link copied to clipboard
public
void
MessageHandler
(
SkyPlugin
plugin
,
Path
path
)
Create a new message handler.
Functions
get
Link copied to clipboard
public
String
get
(
String
key
)
Get a message from the file or fallback.
load
Link copied to clipboard
public
boolean
load
(
)
Load the messages.
send
Link copied to clipboard
public
void
send
(
CommandSender
sender
,
String
key
,
Array
<
TagResolver.Single
>
placeholders
)
Send a message using a message key.
update
Link copied to clipboard
public
void
update
(
)
Update the message file according to the fallback.