import { Server } from "./../../../library/Minecraft.js";
import { registerCommand } from "../register_commands.js";
import config from "config.js";
const registerInformation = {
    name: "kit",
    permission: "worldedit.kit",
    description: "commands.wedit:kit.description",
};
registerCommand(registerInformation, function (session, builder) {
    const items = [
        // HOTBAR ITEMS
        config.wandItem,
        "wedit:selection_fill",
        "wedit:pattern_picker",
        "wedit:copy_button",
        "wedit:cut_button",
        "wedit:paste_button",
        "wedit:undo_button",
        "wedit:draw_line",
        "wedit:config_button",
        // INVENTORY ITEMS
        "wedit:redo_button",
        "wedit:mask_picker",
        "wedit:spawn_glass",
    ];
    for (const item of items) {
        if (Server.player.getItemCount(builder, item).length == 0) {
            Server.runCommand(`give @s ${item}`, builder);
        }
    }
    session.bindTool("selection_wand", config.wandItem);
    return "commands.wedit:kit.explain";
});
