[API] MapManager 1.7.3-SNAPSHOT

API to display custom images on item frames & maps

  1. inventivetalent
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    Source Code:
    https://github.com/InventivetalentDev/MapManager
    This API allows you to display custom images on maps and to send individual maps to players.
    Its main feature is the support for rapid map updates (as in AnimatedFrames), since the map data can be sent to players and you can later change the map displayed in an item frame or in the player's inventory.



    Usage
    Code (Java):

    try {
        //Get the MapManager instance
        MapManager mapManager = ((MapManagerPlugin) Bukkit.getPluginManager().getPlugin("MapManager")).getMapManager();

        //Wrap the local file "myImage.png"
        MapWrapper mapWrapper = mapManager.wrapImage(ImageIO.read(new File("myImage.png")));
        MapController mapController = mapWrapper.getController();

        //Add "inventivetalent" as a viewer and send the content
        mapController.addViewer(Bukkit.getPlayer("inventivetalent"));
        mapController.sendContent(Bukkit.getPlayer("inventivetalent"));

        //At this point, the player is able to see the image
        //So we can show we can show it in ItemFrames
        mapController.showInFrame(Bukkit.getPlayer("inventivetalent"), null /* <Item Frame Object > */);
        //or just as an Item
        mapController.showInHand(Bukkit.getPlayer("inventivetalent"));
    } catch (IOException e) {
        e.printStackTrace();
    }
     
    For more details, check out the Javadocs.

    Depends on PacketListenerAPI!




    Commands

    /mapmanager reload - Reloads the configuration

    Permissions
    mapmanager.reload - Permission to reload the config


    Config
    Code (YAML):

    # If vanilla maps should be allowed to be sent to the players (less efficient, since we need to check the id of every sent map)
    allowVanilla
    : true

    # Change this to a higher number to "preserve" a number of map IDs that won't be used by MapManager plugins
    # Please note that increasing this too much limits the amount of maps that plugins can create
    forcedOffset
    : 0

    # If the plugin checks for duplicate images before creating a new one (Less efficient when first creating a image, but more efficient overall)
    checkDuplicates
    : true

    # Cache the packet data in the image object (less CPU intensive for a lot of players, but probably a bit more memory intensive depending on the image size)
    cacheData
    : true

    sender
    :
     # Delay between map packets (ticks)
      delay
    : 2

      # Maximum amount of map packets sent at once
      amount
    : 10

      # Allow immediate sending of map data
      allowQueueBypass
    : true

    # Enable this if you are using PaperSpigot (and/or you get this error: http://paste.inventivetalent.org/damuhonebu)
    paperSpigot
    : false
     

    Maven
    [​IMG]





    Code (spiget-meta (Unknown Language)):
    SlZOd2EkUm9kI1J3YW1GeUooVWtXa2QzZFdGPk4rSmFWelV3WVZoYWJHUiNSbk5hVnpVdytHMDVlVnAzUCswa0okUk1NMEp6WkZka2NHSnBPRDBrSiRSalIzZypXakpzZFZ7Vk1XaGpSK0ZvWW0xR2JscFkkVzFrYlZaNVl6SnNkbUpxTUcqa2JWWjVZekpzZG1KcFYrMGtSMlYwSlE9PQ==
    Links

Recent Updates

  1. fix
  2. 1.14 support
  3. Forced Offset for Map IDs

Recent Reviews

  1. Govindas
    Govindas
    5/5,
    Version: 1.7.3-SNAPSHOT
    This is a great API. the 1.7.0 version works well on 1.12.2 paper if anyone is having issues on 1.12.2
  2. noemi1998_
    noemi1998_
    1/5,
    Version: 1.7.3-SNAPSHOT
    What the Fuck is this? Cancerous download and wrong version? wtf? stop that shit
  3. rmellis
    rmellis
    5/5,
    Version: 1.7.3-SNAPSHOT
    Working great in 1.13 without issue
    Deffently recomend giveing this a try! Especialy alongside AnimatedFrames
  4. aiaiioi
    aiaiioi
    1/5,
    Version: 1.7.2-SNAPSHOT
    [20:20:03 ERROR]: Error occurred while enabling MapManager v1.7.2-SNAPSHOT (Is it up to date?)
    java.lang.NoSuchFieldError: SEM_VER_SNAPSHOT
    at org.inventivetalent.mapmanager.MapManagerPlugin.onEnable(MapManagerPlugin.java:101) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:254) ~[patched_1.13.2.jar:git-Paper-500]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:326) ~[patched_1.13.2.jar:git-Paper-500]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) ~[patched_1.13.2.jar:git-Paper-500]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:441) ~[patched_1.13.2.jar:git-Paper-500]
    at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:355) ~[patched_1.13.2.jar:git-Paper-500]
    at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:608) ~[patched_1.13.2.jar:git-Paper-500]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:570) ~[patched_1.13.2.jar:git-Paper-500]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:431) ~[patched_1.13.2.jar:git-Paper-500]
    at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:316) ~[patched_1.13.2.jar:git-Paper-500]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:786) ~[patched_1.13.2.jar:git-Paper-500]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
  5. thebbduf33
    thebbduf33
    1/5,
    Version: 1.5.1-SNAPSHOT
    Please fix. Not working in 1.8. Need that support for this plugin. Thank you.
    80 ----------
  6. soliman
    soliman
    1/5,
    Version: 1.4.1-SNAPSHOT
    Not Work In 1.8.8
    -_- :( =[








































































    []
  7. Septogeddon
    Septogeddon
    4/5,
    Version: 1.4.1-SNAPSHOT
    the plugin overriding vanilla maps :( ( MC1.11.2 )
    im using the latest one, still not working.
  8. SmartTV
    SmartTV
    3/5,
    Version: 1.4.0-SNAPSHOT
    Great plugin love the fact you can have any image or gif on items frames thanks to animated frames, however it does interfere with vanilla maps so I'm probably going to have to get rid of it :(
  9. Bodyash
    Bodyash
    5/5,
    Version: 1.1.6
    Very nice plugin, but can u change command from mm to MapManager, cause i`m using MythicMobs and it will be cool, to not write full plugin name every time (/mythicmobs instead /mm)
  10. gronnmann
    gronnmann
    5/5,
    Version: 1.0.0
    I havent tested it yet, but knowing the developer and what he does for the community, it's awesome. The config looks nice.