Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Death: fix message display
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 18, 2023
1 parent dbae3c4 commit 8b73e09
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ public void onPlayerDeathEvent(@NotNull PlayerDeathEvent event) {

if (hasNoPermission(player)) return;
if (IntegrationsModule.isVanished(player) || lastDamageEvent == null) return;
if (!config.getVaultBoolean(player, getModule() + ".enable")) return;

String typeDeath = getDeathConfigMessage(player, lastDamageEvent);
String configMessage = locale.getVaultString(player, getModule() + typeDeath);
if (configMessage.isEmpty()) return;

if (!config.getVaultBoolean(player, getModule() + ".enable")) {
if (!config.getVaultBoolean(player, getModule() + ".visible")) {
event.setDeathMessage("");
return;
}
Expand Down

0 comments on commit 8b73e09

Please sign in to comment.