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!
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) <<<
One problem with that t3chguy is that it references the old WorldEdit commands in the help text (change those to //schematic save etc as well). EvilDevil59NL Link to the CommandHelper page, for convenience: http://dev.bukkit.org/server-mods/commandhelper/
You can rename the aliases the code provides to //schematic save etc I just prefer //save since its shorter
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.
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 .
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