mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-11 02:47:52 +01:00
Fix playerlistname update when prefix/suffix option is disabled.
Fixes #2216
This commit is contained in:
parent
dfce4b31f3
commit
c578302d7c
@ -268,7 +268,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||
{
|
||||
final StringBuilder prefix = new StringBuilder();
|
||||
String nickname;
|
||||
String suffix = "§f";
|
||||
String suffix = "";
|
||||
final String nick = getNickname();
|
||||
if (ess.getSettings().isCommandDisabled("nick") || nick == null || nick.isEmpty() || nick.equals(getName()))
|
||||
{
|
||||
@ -287,6 +287,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||
if (opPrefix.length() > 0)
|
||||
{
|
||||
prefix.insert(0, opPrefix);
|
||||
suffix = "§f";
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -300,6 +301,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||
{
|
||||
final String ptext = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');
|
||||
prefix.insert(0, ptext);
|
||||
suffix = "§f";
|
||||
}
|
||||
if (!ess.getSettings().disableSuffix())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user