mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Locale files now support &-code formatting used by many plugins
This commit is contained in:
parent
e8c8f8b6a1
commit
c728b233e6
@ -9,6 +9,7 @@ Key:
|
|||||||
|
|
||||||
Version 2.1.0
|
Version 2.1.0
|
||||||
+ mcMMO now features XP bars! Configurable in experience.yml
|
+ mcMMO now features XP bars! Configurable in experience.yml
|
||||||
|
+ Locale files now support & codes for colors and formatting!
|
||||||
+ Prevented exploits involving blocks made from entities (snowmen, etc..)
|
+ Prevented exploits involving blocks made from entities (snowmen, etc..)
|
||||||
+ Added JSON integration to all Skill Commands
|
+ Added JSON integration to all Skill Commands
|
||||||
+ Added config setting to enable or disable old mcMMO skill scaling (General.RetroMode) this is on by default for existing installs
|
+ Added config setting to enable or disable old mcMMO skill scaling (General.RetroMode) this is on by default for existing installs
|
||||||
|
@ -114,6 +114,29 @@ public final class LocaleLoader {
|
|||||||
input = input.replaceAll("\\Q[[MAGIC]]\\E", ChatColor.MAGIC.toString());
|
input = input.replaceAll("\\Q[[MAGIC]]\\E", ChatColor.MAGIC.toString());
|
||||||
input = input.replaceAll("\\Q[[RESET]]\\E", ChatColor.RESET.toString());
|
input = input.replaceAll("\\Q[[RESET]]\\E", ChatColor.RESET.toString());
|
||||||
|
|
||||||
|
input = input.replaceAll("\\Q&0\\E", ChatColor.BLACK.toString());
|
||||||
|
input = input.replaceAll("\\Q&1\\E", ChatColor.DARK_BLUE.toString());
|
||||||
|
input = input.replaceAll("\\Q&2\\E", ChatColor.DARK_GREEN.toString());
|
||||||
|
input = input.replaceAll("\\Q&3\\E", ChatColor.DARK_AQUA.toString());
|
||||||
|
input = input.replaceAll("\\Q&4\\E", ChatColor.DARK_RED.toString());
|
||||||
|
input = input.replaceAll("\\Q&5\\E", ChatColor.DARK_PURPLE.toString());
|
||||||
|
input = input.replaceAll("\\Q&6\\E", ChatColor.GOLD.toString());
|
||||||
|
input = input.replaceAll("\\Q&7\\E", ChatColor.GRAY.toString());
|
||||||
|
input = input.replaceAll("\\Q&8\\E", ChatColor.DARK_GRAY.toString());
|
||||||
|
input = input.replaceAll("\\Q&9\\E", ChatColor.BLUE.toString());
|
||||||
|
input = input.replaceAll("\\Q&a\\E", ChatColor.GREEN.toString());
|
||||||
|
input = input.replaceAll("\\Q&b\\E", ChatColor.AQUA.toString());
|
||||||
|
input = input.replaceAll("\\Q&c\\E", ChatColor.RED.toString());
|
||||||
|
input = input.replaceAll("\\Q&d\\E", ChatColor.LIGHT_PURPLE.toString());
|
||||||
|
input = input.replaceAll("\\Q&e\\E", ChatColor.YELLOW.toString());
|
||||||
|
input = input.replaceAll("\\Q&f\\E", ChatColor.WHITE.toString());
|
||||||
|
input = input.replaceAll("\\Q&l\\E", ChatColor.BOLD.toString());
|
||||||
|
input = input.replaceAll("\\Q&n\\E", ChatColor.UNDERLINE.toString());
|
||||||
|
input = input.replaceAll("\\Q&o\\E", ChatColor.ITALIC.toString());
|
||||||
|
input = input.replaceAll("\\Q&m\\E", ChatColor.STRIKETHROUGH.toString());
|
||||||
|
input = input.replaceAll("\\Q&?\\E", ChatColor.MAGIC.toString());
|
||||||
|
input = input.replaceAll("\\Q&r\\E", ChatColor.RESET.toString());
|
||||||
|
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ Acrobatics.SubSkill.GracefulRoll.Description=Twice as effective as a normal Roll
|
|||||||
Acrobatics.SubSkill.Dodge.Name=Dodge
|
Acrobatics.SubSkill.Dodge.Name=Dodge
|
||||||
Acrobatics.SubSkill.Dodge.Description=Reduce attack damage by half
|
Acrobatics.SubSkill.Dodge.Description=Reduce attack damage by half
|
||||||
Acrobatics.Listener=Acrobatics:
|
Acrobatics.Listener=Acrobatics:
|
||||||
Acrobatics.Roll.Text=**Rolled**
|
Acrobatics.Roll.Text=[[ITALIC]][[BOLD]]**Rolled**
|
||||||
Acrobatics.SkillName=ACROBATICS
|
Acrobatics.SkillName=ACROBATICS
|
||||||
#ALCHEMY
|
#ALCHEMY
|
||||||
Alchemy.SubSkill.Catalysis.Name=Catalysis
|
Alchemy.SubSkill.Catalysis.Name=Catalysis
|
||||||
|
Loading…
Reference in New Issue
Block a user