mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix ping handler
This commit is contained in:
1 parent
41e0f979e4
commit
960c139c74
1 file changed
+1
-1
@@ -79,7 +79,7 @@ public class PingHandler {
|
||||
}
|
||||
|
||||
return message.replaceText(TextReplacementConfig.builder()
|
||||
.match(Pattern.compile(String.format("%s\\B(@%s|@%s)\\b", prefix, recipient.username(), displayName), Pattern.CASE_INSENSITIVE))
|
||||
.match(Pattern.compile(String.format("\\B(@%s|@%s)\\b", recipient.username(), displayName), Pattern.CASE_INSENSITIVE))
|
||||
.replacement(matchedText -> {
|
||||
if (this.configFactory.primaryConfig().pings().playSound()) {
|
||||
recipient.playSound(this.configFactory.primaryConfig().pings().sound());
|
||||
|
||||
Reference in new issue
Block a user