Merge pull request #6 from Articdive/master

Fixed TownyChat trying to add it's own title.
This commit is contained in:
LlmDl authored and GitHub committed 2018-02-18 06:18:34 -06:00
commit 970ef71242
2 files changed
+14 -14

No files matched your search

@@ -19,31 +19,31 @@ public enum ChatConfigNodes {
"# | ChatConfig.yml | #", "# | ChatConfig.yml | #",
"# +------------------------------------------------------+ #", "# +------------------------------------------------------+ #",
"############################################################", "############################################################",
"", "#",
"# The formats below will specify the changes made to the player chat when talking.", "# The formats below will specify the changes made to the player chat when talking.",
"", "#",
"# {worldname} - Displays the world the player is currently in.", "# {worldname} - Displays the world the player is currently in.",
"# {town} - Displays town name if a member of a town.", "# {town} - Displays town name if a member of a town.",
"# {townformatted} - Displays town name (if a member of a town) using tag_format.town.", "# {townformatted} - Displays town name (if a member of a town) using tag_format.town.",
"# {towntag} - Displays the formated town tag (if a member of a town) using modify_chat.tag_format.town.", "# {towntag} - Displays the formated town tag (if a member of a town) using modify_chat.tag_format.town.",
"# {towntagoverride} - Displays the formated town tag (if a member of a town and present) or falls back to the full name (using modify_chat.tag_format.town).", "# {towntagoverride} - Displays the formated town tag (if a member of a town and present) or falls back to the full name (using modify_chat.tag_format.town).",
"", "#",
"# {nation} - Displays nation name if a member of a nation.", "# {nation} - Displays nation name if a member of a nation.",
"# {nationformatted} - Displays nation name (if a member of a nation) using tag_format.town.", "# {nationformatted} - Displays nation name (if a member of a nation) using tag_format.town.",
"# {nationtag} - Displays the formated nation tag (if a member of a nation) using modify_chat.tag_format.nation.", "# {nationtag} - Displays the formated nation tag (if a member of a nation) using modify_chat.tag_format.nation.",
"# {nationtagoverride} - Displays the formated nation tag (if a member of a nation and present) or falls back to the full name (using modify_chat.tag_format.nation).", "# {nationtagoverride} - Displays the formated nation tag (if a member of a nation and present) or falls back to the full name (using modify_chat.tag_format.nation).",
"", "#",
"# {townytag} - Displays the formated town/nation tag as specified in modify_chat.tag_format.both.", "# {townytag} - Displays the formated town/nation tag as specified in modify_chat.tag_format.both.",
"# {townyformatted} - Displays the formated full town/nation names as specified in modify_chat.tag_format.both.", "# {townyformatted} - Displays the formated full town/nation names as specified in modify_chat.tag_format.both.",
"# {townytagoverride} - Displays the formated town/nation tag (if present) or falls back to the full names (using modify_chat.tag_format.both).", "# {townytagoverride} - Displays the formated town/nation tag (if present) or falls back to the full names (using modify_chat.tag_format.both).",
"", "#",
"# {title} - Towny resident Title.", "# {title} - Towny resident Title.",
"# {surname} - Towny resident Surname.", "# {surname} - Towny resident Surname.",
"# {townynameprefix} - Towny name prefix taken from the townLevel/nationLevels.", "# {townynameprefix} - Towny name prefix taken from the townLevel/nationLevels.",
"# {townynamepostfix} - Towny name postfix taken from the townLevel/nationLevels.", "# {townynamepostfix} - Towny name postfix taken from the townLevel/nationLevels.",
"# {townyprefix} - Towny resident title, or townynameprefix if no title exists.", "# {townyprefix} - Towny resident title, or townynameprefix if no title exists.",
"# {townypostfix} - Towny resident surname, or townynamepostfix if no surname exists", "# {townypostfix} - Towny resident surname, or townynamepostfix if no surname exists",
"", "#",
"# {townycolor} - Towny name colour for king/mayor/resident.", "# {townycolor} - Towny name colour for king/mayor/resident.",
"# {group} - Players group name pulled from your permissions plugin.", "# {group} - Players group name pulled from your permissions plugin.",
"# {permuserprefix} - Permission user prefix.", "# {permuserprefix} - Permission user prefix.",
@@ -52,21 +52,21 @@ public enum ChatConfigNodes {
"# {permgroupsuffix} - Permission group suffix.", "# {permgroupsuffix} - Permission group suffix.",
"# {permprefix} - Permission group and user prefix.", "# {permprefix} - Permission group and user prefix.",
"# {permsuffix} - Permission group and user suffix.", "# {permsuffix} - Permission group and user suffix.",
"", "#",
"# {playername} - Default player name.", "# {playername} - Default player name.",
"# {modplayername} - Modified player name (use if Towny is over writing some other plugins changes).", "# {modplayername} - Modified player name (use if Towny is over writing some other plugins changes).",
"# {msg} - The message sent.", "# {msg} - The message sent.",
"", "#",
"# {channelTag} - Defined in the channels entry in Channels.yml.", "# {channelTag} - Defined in the channels entry in Channels.yml.",
"# {msgcolour} - Defined in the channels entry in Channels.yml.", "# {msgcolour} - Defined in the channels entry in Channels.yml.",
"", "#",
"# Text colouring", "# Text colouring",
"# --------------", "# --------------",
"# Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4", "# Black = &0, Navy = &1, Green = &2, Blue = &3, Red = &4",
"# Purple = &5, Gold = &6, LightGray = &7, Gray = &8", "# Purple = &5, Gold = &6, LightGray = &7, Gray = &8",
"# DarkPurple = &9, LightGreen = &a, LightBlue = &b", "# DarkPurple = &9, LightGreen = &a, LightBlue = &b",
"# Rose = &c, LightPurple = &d, Yellow = &e, White = &f", "# Rose = &c, LightPurple = &d, Yellow = &e, White = &f",
"", "#",
"# Text altering", "# Text altering",
"# -------------", "# -------------",
"# Bold = &l, Italics = &o, Underlined = &n,", "# Bold = &l, Italics = &o, Underlined = &n,",
@@ -125,7 +125,8 @@ public enum ChatConfigNodes {
TAG_FORMATS_BOTH( TAG_FORMATS_BOTH(
"tag_formats.both", "tag_formats.both",
"&f[&6%s&f|&3%s&f] ", "&f[&6%s&f|&3%s&f] ",
"# First %s is the nation tag, second is the town tag."), "# First %s is the nation tag, second is the town tag.",
"# You may also use %t for the town tag and %n for the nation tag!"),
COLOUR( COLOUR(
"colour", "colour",
"", "",
@@ -162,7 +163,7 @@ public enum ChatConfigNodes {
"# that player will see a message saying they cannot be heard."), "# that player will see a message saying they cannot be heard."),
MODIFY_CHAT_ALONE_MESSAGE_STRING( MODIFY_CHAT_ALONE_MESSAGE_STRING(
"modify_chat.alone_message_string", "modify_chat.alone_message_string",
"'No one in range can hear you or you are alone in this channel.'", "No one in range can hear you or you are alone in this channel.",
"# This allows you to set your alone message."), "# This allows you to set your alone message."),
WORLDS("worlds","",""); WORLDS("worlds","","");
@@ -262,7 +262,6 @@ public class CommentedConfiguration extends YamlConfiguration {
yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); yamlRepresenter.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
String header = buildHeader();
String dump = yaml.dump(getValues(false)); String dump = yaml.dump(getValues(false));
@@ -270,7 +269,7 @@ public class CommentedConfiguration extends YamlConfiguration {
dump = ""; dump = "";
} }
return header + dump; return dump;
} }
} }