Skip to content

Commit

Permalink
Fix translation of color codes for greeting/farewell messages
Browse files Browse the repository at this point in the history
  • Loading branch information
NLthijs48 committed Feb 11, 2015
1 parent 4e5061b commit 779d340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nl/evolutioncoding/areashop/regions/GeneralRegion.java
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,10 @@ protected boolean setRegionFlags(ConfigurationSection flags) {
String flagName = it.next();
String value = flags.getString(flagName);
value = applyAllReplacements(value);
value = translateBukkitToWorldGuardColors(value);
// In the config normal Bukkit color codes are used, those only need to be translated on 5.X WorldGuard versions
if(plugin.getWorldGuard().getDescription().getVersion().startsWith("5.")) {
value = translateBukkitToWorldGuardColors(value);
}
if(flagName.equalsIgnoreCase("members")) {
// Split the string and parse all values
String[] names = value.split(", ");
Expand Down

0 comments on commit 779d340

Please sign in to comment.