mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-11-05 19:41:56 +00:00
Fix op colours, which KHobbits broke!
This commit is contained in:
parent
873c9880dd
commit
b512a243e7
1 changed files with 11 additions and 11 deletions
|
@ -262,19 +262,19 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
||||||
nickname.append(ess.getSettings().getNicknamePrefix()).append(nick);
|
nickname.append(ess.getSettings().getNicknamePrefix()).append(nick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isOp())
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
nickname.insert(0, ess.getSettings().getOperatorColor().toString());
|
||||||
|
nickname.append("§f");
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
if (addprefixsuffix && ess.getSettings().addPrefixSuffix())
|
if (addprefixsuffix && ess.getSettings().addPrefixSuffix())
|
||||||
{
|
{
|
||||||
if (isOp())
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
nickname.insert(0, ess.getSettings().getOperatorColor().toString());
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ess.getSettings().disablePrefix())
|
if (!ess.getSettings().disablePrefix())
|
||||||
{
|
{
|
||||||
final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');
|
final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');
|
||||||
|
|
Loading…
Reference in a new issue