Skip to content

Commit

Permalink
Kill msg: Override vanilla click event
Browse files Browse the repository at this point in the history
  • Loading branch information
PainOchoco committed Apr 3, 2024
1 parent 692700f commit 71dee62
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ public void onPlayerDeath(PlayerDeathEvent event) {
return;

String killerName = event.getEntity().getKiller().getName();
Component obfuscatedKiller = Component.text("??????").decoration(TextDecoration.OBFUSCATED, true);
Component obfuscatedKiller = Component.text("??????").decoration(TextDecoration.OBFUSCATED, true)
.clickEvent(null);
TextReplacementConfig killerReplacement = TextReplacementConfig.builder().matchLiteral(killerName)
.replacement(obfuscatedKiller).build();

Expand Down

0 comments on commit 71dee62

Please sign in to comment.