mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-09-29 08:07:33 +02:00
Make world names case insensitive
https://github.com/BentoBoxWorld/Level/issues/59
This commit is contained in:
parent
6415efee28
commit
392e22e366
@ -1,7 +1,7 @@
|
|||||||
package world.bentobox.level.objects;
|
package world.bentobox.level.objects;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.TreeMap;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -20,12 +20,12 @@ public class LevelsData implements DataObject {
|
|||||||
* Map of world name and island level
|
* Map of world name and island level
|
||||||
*/
|
*/
|
||||||
@Expose
|
@Expose
|
||||||
private Map<String, Long> levels = new HashMap<>();
|
private Map<String, Long> levels = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||||
/**
|
/**
|
||||||
* Map of world name to island initial level
|
* Map of world name to island initial level
|
||||||
*/
|
*/
|
||||||
@Expose
|
@Expose
|
||||||
private Map<String, Long> initialLevel = new HashMap<>();
|
private Map<String, Long> initialLevel = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
|
||||||
|
|
||||||
public LevelsData() {} // For Bean loading
|
public LevelsData() {} // For Bean loading
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user