mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-04 15:07:49 +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) {
|
||||
String[] lines = retrieve(key);
|
||||
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
|
||||
*/
|
||||
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")) {
|
||||
sender.sendMessage(line);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user