fix underscore in biome_capitalized

This commit is contained in:
pegasis committed 2020-08-25 09:37:55 -04:00
1 parent fc4fe06fd5
commit f27e675ce1
1 file changed
+1 -1
@@ -205,7 +205,7 @@ public class PlayerExpansion extends PlaceholderExpansion implements Configurabl
case "biome":
return String.valueOf(p.getLocation().getBlock().getBiome());
case "biome_capitalized":
String biome = String.valueOf(p.getLocation().getBlock().getBiome());
String biome = String.valueOf(p.getLocation().getBlock().getBiome()).replace('_', ' ');
return biome.substring(0, 1).toUpperCase() + biome.substring(1).toLowerCase();
case "light_level":
return String.valueOf(p.getLocation().getBlock().getLightLevel());