mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Forces blueprint names to be lower case
https://github.com/BentoBoxWorld/BentoBox/issues/865
This commit is contained in:
parent
c267f5ef84
commit
a8578b5658
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user