Forces blueprint names to be lower case

https://github.com/BentoBoxWorld/BentoBox/issues/865
This commit is contained in:
tastybento 2019-07-28 14:05:39 -07:00
parent c267f5ef84
commit a8578b5658

View File

@ -2,6 +2,7 @@ package world.bentobox.bentobox.blueprints;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Locale;
import java.util.Map; import java.util.Map;
import org.bukkit.Material; import org.bukkit.Material;
@ -49,7 +50,8 @@ public class Blueprint {
* @return the name * @return the name
*/ */
public String getName() { public String getName() {
return name; // Force lower case
return name.toLowerCase(Locale.ENGLISH);
} }
/** /**
* @param name the name to set * @param name the name to set