Worldedit user-based schematics

Discussion in 'Archived: Plugin Requests' started by EvilDevil59NL, Nov 23, 2012.

  1. Offline

    EvilDevil59NL

    Hi there!

    Currently i'm working on a new server, specially for redstone 'freaks'. This of course means that players will use worldedit very often, and all have their personal schematics. It there a possibility to create a plugin that, for example, create maps inside the schematics folder from worldedit, user based? Is there already a plugin like this? Or should i ask in the worldedit section? Many thanks!
     
  2. Offline

    t3chguy

    The Redstone Development Foundation have something like this, but its written in CommandHelper;
    #Schematic saving and loading override. This prevents users from saving into other users folders, and insures file system integrity.
    *://save [$filename='null'] = >>>
    _checkpermission('all',player())
    assign(@realfilename, $filename)
    assign(@username, player())
    assign(@fileformat, 'mcedit')
    assign(@command, concat('//schematic save ', @fileformat, ' ', username, '/', @realfilename))
    if(equals_ic(@realfilename, null), die('A file name is required. type //save <filename>'))
    run(@command)
    <<<
    #need to add ability to load from another user's folder, if permissions requirements are met
    *://load [$filename='null'] = >>>
    _checkpermission('all',player())
    assign(@realfilename, $filename)
    assign(@username, player())
    assign(@fileformat, 'mcedit')
    assign(@command, concat('//schematic load ', @fileformat, ' ', username, '/', @realfilename))
    if(equals_ic(@realfilename, null), die('A file name is required. Type //load <filename>'))
    run(@command)
    <<<
     
  3. Offline

    leiger

  4. Offline

    t3chguy

    You can rename the aliases the code provides to //schematic save etc
    I just prefer //save since its shorter
     
  5. Offline

    EvilDevil59NL

    Okay than, thanks for all of the reply's, and i'll give commandhelper a try :)
     
  6. Offline

    Kiakaha

    i did this in a less neat but more simple way by having a "/save xxx" command (an alias) that adds the players name so for example
    "/save xxx" = "//schematic save mce kiakahaxxx"
    all in one folder but no chance of overwriting somone elses work.
     
  7. Offline

    EvilDevil59NL

    Thats a interesting way as well. However, i just checked the commandhelper link that leiger gave in his reply, and unfortunate the plugin isn't updates to the current version of bukkit yet. So i hope to see a updates version coming soon :).
     
  8. Offline

    Kiakaha

    Using
    http://dev.bukkit.org/server-mods/betteralias/ (which will work fine even if you don't match the version perfectly)

    my aliases are like this

    save:
    0: you need a [schemename] # this will tell users they forgot to name the scheme
    1:
    - /copy
    - /schematic save mce !name!1 # this will save it as "playernamechosenname"
    load:
    0: /schematic list # "/load" will just show the schematic list
    1:
    - /schematic load mce !name!1 # "/load chosenname" will work for each players saves
    - /paste
    2:
    - /schematic load mce !name!1
    - /paste !2 # for -a etc flags
     
  9. Offline

    leiger

    Use a CommandHelper dev build. Currently running it fine on my CB 1.4.5 beta server :)
     
  10. Offline

    EvilDevil59NL

    Thanks for the tip!
     

Share This Page