package com.elmakers.mine.bukkit.api.maps;

import org.bukkit.inventory.ItemStack;

import java.util.List;

public interface MapController {
    List<URLMap> getAll();
    void loadMap(String world, short id, String url, String name, int x, int y, int width, int height, Integer priority);
    ItemStack getURLItem(String world, String url, String name, int x, int y, int width, int height, Integer priority);
    void forceReloadPlayerPortrait(String worldName, String playerName);
    ItemStack getPlayerPortrait(String worldName, String playerName, Integer priority, String photoName);
    ItemStack getMapItem(short id);
    boolean hasMap(short id);
    boolean remove(short id);
    void save();
}

@@ -695,10 +695,176 @@
 save();%0A
+    short getURLMapId(String world, String url, String name, int x, int y, int width, int height, Integer priority);%0A    short getURLMapId(String world, String url);%0A
 %7D%0A

Add some utility methods to load a map from a URL and get the map id generated