mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Add magical mod importer
Usage: Create a folder called 'import' inside /mcMMO/mods/. Place your latest Cauldron 1.7+ startup log in this folder and rename it to 'import.log'. It is worth noting that it's advisable to create a short log by starting and stopping the server once, or by manually editing the log file to only include material mapping in order to speed up the import process. When the server is running, use the command /mcimport. You will see the import progress in the console, once it is done the files are created in /mcMMO/mods/output/. Any item that wasn't recognised gets placed in a .unknown.yml config file. Durability detection only works if the mod is installed when importing (it should be).
This commit is contained in:
@ -7,6 +7,7 @@ import org.bukkit.command.PluginCommand;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.commands.KrakenCommand;
|
||||
import com.gmail.nossr50.commands.McImportCommand;
|
||||
import com.gmail.nossr50.commands.McabilityCommand;
|
||||
import com.gmail.nossr50.commands.McconvertCommand;
|
||||
import com.gmail.nossr50.commands.McgodCommand;
|
||||
@ -409,8 +410,18 @@ public final class CommandRegistrationManager {
|
||||
command.setExecutor(new KrakenCommand());
|
||||
}
|
||||
|
||||
private static void registerMcImportCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mcimport");
|
||||
command.setDescription("Import mod config files"); //TODO: Localize
|
||||
command.setPermission("mcmmo.commands.mcimport");
|
||||
command.setPermissionMessage(permissionsMessage);
|
||||
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mcimport"));
|
||||
command.setExecutor(new McImportCommand());
|
||||
}
|
||||
|
||||
public static void registerCommands() {
|
||||
// Generic Commands
|
||||
registerMcImportCommand();
|
||||
registerKrakenCommand();
|
||||
registerMcabilityCommand();
|
||||
registerMcgodCommand();
|
||||
|
Reference in New Issue
Block a user