public class Messages extends Object
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static void |
broadcastMessage(String dir,
Object... placeholders) |
static String |
getMessage(CommandSender sender,
String dir,
Object... placeholders)
Get a message with the default lang
|
static String |
getMessage(NegativityAccount account,
String dir,
Object... placeholders)
Get a message with the default lang
|
static String |
getMessage(String dir,
Object... placeholders)
Get a message with the default lang
|
static String |
getMessage(UUID uuid,
String dir,
Object... placeholders)
Get a message with the default lang
|
static List<String> |
getMessageList(CommandSender sender,
String dir,
Object... placeholders)
Send a list of message to the given command sender
If the key is not found, is will show the key of the message
|
static String |
getStateName(CommandSender sender,
boolean b) |
static void |
sendMessage(CommandSender p,
String dir,
Object... placeholders)
Send a message to the given command sender
|
static void |
sendMessageList(CommandSender sender,
String dir,
Object... placeholders)
Send a list of message to the given command sender
If the key is not found, is will show the key of the message
|
public static String getStateName(CommandSender sender, boolean b)
public static String getMessage(String dir, Object... placeholders)
dir
- the message keyplaceholders
- all message placeholderspublic static String getMessage(UUID uuid, String dir, Object... placeholders)
uuid
- the UUID of the player which will receive the messagedir
- the message keyplaceholders
- all message placeholderspublic static String getMessage(CommandSender sender, String dir, Object... placeholders)
sender
- the sender which will receive the messagedir
- the message keyplaceholders
- all message placeholderspublic static String getMessage(NegativityAccount account, String dir, Object... placeholders)
account
- the account which will receive the messagedir
- the message keyplaceholders
- all message placeholderspublic static void sendMessage(CommandSender p, String dir, Object... placeholders)
p
- the sender which will receive the messagedir
- the message keyeplaceholders
- all message placeholderspublic static List<String> getMessageList(CommandSender sender, String dir, Object... placeholders)
sender
- the sender which will receive the messagedir
- the message keyplaceholders
- all messages placeholderspublic static void sendMessageList(CommandSender sender, String dir, Object... placeholders)
sender
- the sender which will receive the messagedir
- the message keyplaceholders
- all messages placeholders