mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Add ping prefix option
This commit is contained in:
1 parent
9f2a52cd6f
commit
e69a9fb2a4
2 files changed
+3
-1
No files matched your search
@@ -27,8 +27,9 @@ public class PingHandler implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String senderName = event.getSender().asOfflinePlayer().getName();
|
String senderName = event.getSender().asOfflinePlayer().getName();
|
||||||
|
String prefix = carbonChat.getConfig().getString("pings.prefix", "");
|
||||||
|
|
||||||
if (senderName == null || !event.getOriginalMessage().contains(senderName)) {
|
if (senderName == null || !event.getOriginalMessage().contains(prefix + senderName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ pings:
|
|||||||
enabled: true
|
enabled: true
|
||||||
source: 'PLAYER'
|
source: 'PLAYER'
|
||||||
sound: 'minecraft:entity.experience_orb.pickup'
|
sound: 'minecraft:entity.experience_orb.pickup'
|
||||||
|
prefix: '@'
|
||||||
volume: 10.0
|
volume: 10.0
|
||||||
pitch: 1.0
|
pitch: 1.0
|
||||||
highlight: true # independent of the "enabled" option!
|
highlight: true # independent of the "enabled" option!
|
||||||
|
|||||||
Reference in new issue
Block a user