mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-08-05 20:13:03 +00:00
Fix messages having a prefix even when disabled
This commit is contained in:
parent
91e1e81ccd
commit
ee5b9ba7f1
1 changed files with 10 additions and 2 deletions
|
@ -128,7 +128,11 @@ public class LocaleManager extends Manager {
|
|||
if (!Setting.MESSAGES_ENABLED.getBoolean())
|
||||
return;
|
||||
|
||||
this.sendParsedMessage(sender, this.getLocaleMessage("prefix") + this.getLocaleMessage(messageKey, stringPlaceholders));
|
||||
String prefix = "";
|
||||
if (Setting.USE_MESSAGE_PREFIX.getBoolean())
|
||||
prefix = this.getLocaleMessage("prefix");
|
||||
|
||||
this.sendParsedMessage(sender, prefix + this.getLocaleMessage(messageKey, stringPlaceholders));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -142,7 +146,11 @@ public class LocaleManager extends Manager {
|
|||
if (!Setting.MESSAGES_ENABLED.getBoolean())
|
||||
return;
|
||||
|
||||
this.sendParsedMessage(pplayer.getUnderlyingExecutor(), this.getLocaleMessage("prefix") + this.getLocaleMessage(messageKey, stringPlaceholders));
|
||||
String prefix = "";
|
||||
if (Setting.USE_MESSAGE_PREFIX.getBoolean())
|
||||
prefix = this.getLocaleMessage("prefix");
|
||||
|
||||
this.sendParsedMessage(pplayer.getUnderlyingExecutor(), prefix + this.getLocaleMessage(messageKey, stringPlaceholders));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue