MessageHandler

public class MessageHandler

A message handler for loading messages.

Constructors

Link copied to clipboard
public void MessageHandler(SkyPlugin plugin, Path path)
Create a new message handler.

Functions

Link copied to clipboard
public String get(String key)
Get a message from the file or fallback.
Link copied to clipboard
public boolean load()
Load the messages.
Link copied to clipboard
public void send(CommandSender sender, String key, Array<TagResolver.Single> placeholders)
Send a message using a message key.
Link copied to clipboard
public void update()
Update the message file according to the fallback.