From a8578b565834b9e54bac328031c6840baa469e3f Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 28 Jul 2019 14:05:39 -0700 Subject: [PATCH] Forces blueprint names to be lower case https://github.com/BentoBoxWorld/BentoBox/issues/865 --- .../java/world/bentobox/bentobox/blueprints/Blueprint.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/blueprints/Blueprint.java b/src/main/java/world/bentobox/bentobox/blueprints/Blueprint.java index 6f9d77b7a..9fe98787c 100644 --- a/src/main/java/world/bentobox/bentobox/blueprints/Blueprint.java +++ b/src/main/java/world/bentobox/bentobox/blueprints/Blueprint.java @@ -2,6 +2,7 @@ package world.bentobox.bentobox.blueprints; import java.util.ArrayList; import java.util.List; +import java.util.Locale; import java.util.Map; import org.bukkit.Material; @@ -49,7 +50,8 @@ public class Blueprint { * @return the name */ public String getName() { - return name; + // Force lower case + return name.toLowerCase(Locale.ENGLISH); } /** * @param name the name to set