mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-06 16:07:45 +01:00
I forgot this wasn't Apache's StringUtils
This commit is contained in:
parent
430716b206
commit
3541f21985
@ -53,7 +53,7 @@ public class Messages {
|
|||||||
public void send(CommandSender sender, MessageKey key) {
|
public void send(CommandSender sender, MessageKey key) {
|
||||||
String[] lines = retrieve(key);
|
String[] lines = retrieve(key);
|
||||||
for (String line : lines) {
|
for (String line : lines) {
|
||||||
sender.sendMessage(line.replace(PLAYER_TAG, sender.getName()));
|
sender.sendMessage(line.replaceAll(PLAYER_TAG, sender.getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ public class Messages {
|
|||||||
* @param replacements The replacements to apply for the tags
|
* @param replacements The replacements to apply for the tags
|
||||||
*/
|
*/
|
||||||
public void send(CommandSender sender, MessageKey key, String... replacements) {
|
public void send(CommandSender sender, MessageKey key, String... replacements) {
|
||||||
String message = retrieveSingle(key, replacements).replace(PLAYER_TAG, sender.getName());
|
String message = retrieveSingle(key, replacements).replaceAll(PLAYER_TAG, sender.getName());
|
||||||
for (String line : message.split("\n")) {
|
for (String line : message.split("\n")) {
|
||||||
sender.sendMessage(line);
|
sender.sendMessage(line);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user