mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 20:10:29 +01:00
Fix broken add-prefix-in-playerlist behavior
This commit is contained in:
parent
5f83766dc1
commit
198d852995
@ -306,12 +306,12 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||||||
|
|
||||||
if (ess.getSettings().addPrefixSuffix()) {
|
if (ess.getSettings().addPrefixSuffix()) {
|
||||||
//These two extra toggles are not documented, because they are mostly redundant #EasterEgg
|
//These two extra toggles are not documented, because they are mostly redundant #EasterEgg
|
||||||
if (withPrefix || !ess.getSettings().disablePrefix()) {
|
if (withPrefix && !ess.getSettings().disablePrefix()) {
|
||||||
final String ptext = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');
|
final String ptext = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');
|
||||||
prefix.insert(0, ptext);
|
prefix.insert(0, ptext);
|
||||||
suffix = "§r";
|
suffix = "§r";
|
||||||
}
|
}
|
||||||
if (withSuffix || !ess.getSettings().disableSuffix()) {
|
if (withSuffix && !ess.getSettings().disableSuffix()) {
|
||||||
final String stext = ess.getPermissionsHandler().getSuffix(base).replace('&', '§');
|
final String stext = ess.getPermissionsHandler().getSuffix(base).replace('&', '§');
|
||||||
suffix = stext + "§r";
|
suffix = stext + "§r";
|
||||||
suffix = suffix.replace("§f§f", "§f").replace("§f§r", "§r").replace("§r§r", "§r");
|
suffix = suffix.replace("§f§f", "§f").replace("§f§r", "§r").replace("§r§r", "§r");
|
||||||
|
Loading…
Reference in New Issue
Block a user