Fix map name being compared instead of map-id. Fixes #51

This commit is contained in:
Blue (Lukas Rieger) 2020-07-02 17:14:16 +02:00
parent a2cefd78aa
commit 53093a43ff

View File

@ -255,7 +255,7 @@ private Optional<World> parseWorld(String worldName) {
private Optional<MapType> parseMap(String mapId) {
for (MapType map : plugin.getMapTypes()) {
if (map.getName().equalsIgnoreCase(mapId)) {
if (map.getId().equalsIgnoreCase(mapId)) {
return Optional.of(map);
}
}