mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
Update chat formatting to use &r instead of &f
This commit is contained in:
@@ -295,7 +295,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
if (opPrefix != null && opPrefix.toString().length() > 0)
|
if (opPrefix != null && opPrefix.toString().length() > 0)
|
||||||
{
|
{
|
||||||
prefix.insert(0, opPrefix.toString());
|
prefix.insert(0, opPrefix.toString());
|
||||||
suffix = "§f";
|
suffix = "§r";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@@ -309,13 +309,13 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
|
|||||||
{
|
{
|
||||||
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 = "§f";
|
suffix = "§r";
|
||||||
}
|
}
|
||||||
if (!ess.getSettings().disableSuffix())
|
if (!ess.getSettings().disableSuffix())
|
||||||
{
|
{
|
||||||
final String stext = ess.getPermissionsHandler().getSuffix(base).replace('&', '§');
|
final String stext = ess.getPermissionsHandler().getSuffix(base).replace('&', '§');
|
||||||
suffix = stext + "§f";
|
suffix = stext + "§r";
|
||||||
suffix = suffix.replace("§f§f", "§f");
|
suffix = suffix.replace("§f§f", "§f").replace("§f§r", "§r").replace("§r§r", "§r");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String strPrefix = prefix.toString();
|
final String strPrefix = prefix.toString();
|
||||||
|
@@ -426,11 +426,11 @@ chat:
|
|||||||
# For more information of chat formatting, check out the wiki: http://ess.khhq.net/wiki/Chat_Formatting
|
# For more information of chat formatting, check out the wiki: http://ess.khhq.net/wiki/Chat_Formatting
|
||||||
|
|
||||||
format: '<{DISPLAYNAME}> {MESSAGE}'
|
format: '<{DISPLAYNAME}> {MESSAGE}'
|
||||||
#format: '&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}'
|
#format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
|
||||||
|
|
||||||
group-formats:
|
group-formats:
|
||||||
# Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}'
|
# Default: '{WORLDNAME} {DISPLAYNAME}&7:&r {MESSAGE}'
|
||||||
# Admins: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'
|
# Admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'
|
||||||
|
|
||||||
# If you are using group formats make sure to remove the '#' to allow the setting to be read.
|
# If you are using group formats make sure to remove the '#' to allow the setting to be read.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user