PlotMe Plot Downloader

Discussion in 'Archived: Plugin Requests' started by Vaact, Jul 20, 2014.

  1. Offline


    Plugin category: I don't know what category this would go in.

    Suggested name: PlotMeDownloader

    What I want:

    What I want is a PlotMe addon, Where users can download schematics of PlotMe plots.

    When preforming the command /Download, the user will get a link to his / her plot's schematic.

    This would be partially web-based, as their needs to be a way to upload / download the schematic files to a configured web-server.

    An example of a plugin like this is found on the ShotBow Network Creative Server.

    Ideas for configuration:

    - Configure weather or not users can download other plots, or just his own.
    - Configurable cool-down time of the /Download command, to prevent people spamming uploads.
    - Configurable web-server details, upload directory, etc.
    - Configurable plugin prefix of messages sent the the player.

    Ideas for commands:

    - /Download - Uploads the PlotMe plot to the configured web-server. Then sends the user a download link.

    Ideas for permissions:

    - PlotMeDownloader.Download - Allows a user to use the /Download command.

    When I'd like it by: Whenever possible
  2. Offline


    Easiest would be making a php script server-side and require a certain GET variable to make sure it is the server (a API key alike system) and then upload it to there using Java (example usage) and then either make the plugin predict the location or make the php script return it on upload.

    Don't think I will have time to fully make this but if someone can make the schematic system (so it only needs to be uploaded) then I can definitely make the rest.
  3. Online

    timtower Administrator Administrator Moderator

    wesley009 WorldEdit has a nice api for schematics I believe
  4. I was thinking about this idea for a bit. If I were to do this, I'd use the WorldEdit API to save a schematic of the plot, like timtower suggested. Then, I'd upload the file to Dropbox and send the player a link to download the file. I really like this idea. Not sure whether or not I'd do it though :( Might play around with the concept :)
  5. Offline


    That's cool, I might start looking into developing this; but this is a little to advanced for me, and help would be nice :)
  6. Offline


    Can this be done?
    Culaccino likes this.
  7. Offline


    I would love to work on a plugin like this but I think it is just a little too advanced for what I am capable of.
    • Linking into the PlotMe API.
    • Getting the users current Plot & saving it as a Schematic to a Directory on the Host Server.
    • Uploading the file to a Web / FTP Server.
    • Sending the player the link to Download the .Schematic
    • Deleting the file off of the Main (Minecraft) Host server.
    I could probably learn the WorldEdit API but learning the DropBox API or other ways to upload files to a Remote Server just seems like a little too much unfortunately :/

    Maybe someone with allot of time could fill this :)
  8. Online

    timtower Administrator Administrator Moderator

    Culaccino mcexpertvideos, I am semi working on this. Trying to make an easy to use ( for me at least ) ftp tool.
    The only thing that needs some looking is getting the right link to share for the user.
    @Caluccino, if you want then I can provide a semi-easy to use FTP uploader.
  9. Offline


    If it could just save to a selected folder that would be great (I can put it on my webserver.)
  10. Offline


    Just letting you guys know. If you want an example of this. has a version of this.
  11. Online

    timtower Administrator Administrator Moderator

    I made sure that it was able to do that.
  12. Offline


  13. Online

    timtower Administrator Administrator Moderator

    Not really, just made the FTP uploader for it.
  14. Offline


    As I said in the original post.. :p
  15. Offline


    yeah, is they a way for it? i would also like to use it for my private plot server (i do not mind if it has a cooldown or not)
  16. Offline


    I'll give you the code to get the plot coordinates :p

    API is subject to change in a near future.

    2. import com.worldcretornica.plotme.PlotManager;
    3. [...]
    4. String id = PlotManager.getPlotId(location);
    5. Location bottom = PlotManager.getPlotBottomLoc(location.getWorld(), id);
    6. Location top = PlotManager.getPlotTopLoc(location.getWorld(), id);

    This will return the lowest x,y,z (y = 1) and max x,y,z (y=255). You can easily do a schematic from that after. If no plot is found at that location, id will be empty string.
  17. Offline


    How would one do a schematic from that?
  18. Online

    timtower Administrator Administrator Moderator

    You make a hook into WorldEdit for that

Share This Page