mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 08:09:39 +01:00
Use char codes instead of symbols, just to be safe.
This commit is contained in:
parent
1b421a24b0
commit
4246e6c900
@ -64,7 +64,7 @@ public class PlayerListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onPlayerDeathHighest(PlayerDeathEvent event) {
|
public void onPlayerDeathHighest(PlayerDeathEvent event) {
|
||||||
String deathMessage = event.getDeathMessage();
|
String deathMessage = event.getDeathMessage();
|
||||||
deathMessage.replaceAll("(?:\\u00A7(?:[1-9a-fklmnor]){1}(?:[❤■]{1,10})){1,2}", "a mob");
|
deathMessage.replaceAll("(?:\\u00A7(?:[0-9A-FK-ORa-fk-or]){1}(?:[\\u2764\\u25A0]{1,10})){1,2}", "a mob");
|
||||||
event.setDeathMessage(deathMessage);
|
event.setDeathMessage(deathMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user