CraftKit | Spigot 1.2.4.2

Utility kit for Spigot and Bungeecord plugins | GUI, NPC, NBT, Skin and more

  1. anhcraft
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.9
    • 1.12
    • 1.15
    • 1.16
    • 1.17
    Source Code:
    https://github.com/anhcraft/CraftKit
    What is this? CraftKit is a utility kit that aims to speed up the development time. With this library, the developers don't have to write duplicated codes or concerns about multi-version support.

    #Manual


    If you are a server owner:
    Simply put this library into your server's plugin folder. Your server must have an Internet connection to allow the library to download internal modules.
    Command: /ck (or /craftkit)

    For servers running on Java 9+, please add the following parameter to your server startup command:
    Code (Text):
    --add-opens java.base/java.net=ALL-UNNAMED
    If you are a developer and want to use this library:

    Repo:

    HTML:
    <repositories>
       <repository>
           <id>jitpack.io</id>
           <url>https://jitpack.io</url>
       </repository>
    </repositories>
    Spigot side:
    HTML:

    <dependency>
       <groupId>com.github.anhcraft.CraftKit</groupId>
       <artifactId>craftkit.spigot</artifactId>
       <version>VERSION</version>
    </dependency>
    Bungeecord side:
    HTML:

    <dependency>
       <groupId>com.github.anhcraft.CraftKit</groupId>
       <artifactId>craftkit.bungee</artifactId>
       <version>VERSION</version>
    </dependency>
    Example:
    You can look here to know the basic usages of this library.
    Code (Java):
    var itemStack = new ItemBuilder(Material.PAPER).name("&aVoucher").lore("&aRight-click to receive &b10 coins").build();
    Code (Java):
    var gameProfile = new GameProfileBuilder("anhcraft");
    NPC.spawn(gameProfile, location).addViewer(player);
    Code (Java):
    ItemNBTHelper helper = ItemNBTHelper.of(skull);
    helper.setSkin(Skin.MHF_CAKE);
    skull = helper.save();
    Code (Java):
    BungeeUtil.changeSkin("anhcraft", new Skin(value, signature));
    Code (Java):
    @EventHandler
    private void jump(PlayerJumpEvent event){
        if(JUMP_COUNT.containsKey(event.getPlayer())) JUMP_COUNT.get(event.getPlayer()).incrementAndGet();
        else JUMP_COUNT.put(event.getPlayer(), new AtomicInteger(1));
    }
    Code (Java):
    SpigetApiUtil.getResourceLatestVersion("39007");
    Code (Java):
    var root = CompoundTag.of(itemStack);
    var tag = root.getOrCreateDefault("tag", CompoundTag.class);
    tag.put("custom_tag", new IntTag(1));
    root.put("tag", tag);
    itemStack = root.save(itemStack);
    Code (Java):
    // init the extension here!
    // CraftExtension.of(<YOUR PLUGIN'S MAIN CLASS>)
    private CraftExtension extension;

    public void open(Player player){
        CustomGUI cg = extension.createCustomGUI(null, 45, ChatUtil.formatColorCodes("&aRainbow &fInventory"));
        InventoryUtil.fillAll(cg, new ItemBuilder(Material.APPLE)
                .name("&a")
                .build());
        cg.addContentCallback(SlotCallback.PREVENT_MODIFY);
        cg.addContentCallback(new SlotCallback() {
            @Override
            public void click(InventoryClickEvent event, Player player, BaseGUI gui) {
                InventoryUtil.fillAll(cg, new ItemBuilder(RandomUtil.pickRandom(MaterialUtil.getStainedGlassPaneTypes())).name("&a").build());
                player.damage(0.0001);
            }
        });
        player.openInventory(cg);
        // another_player.openInventory(cg);
    }
    Code (Java):
    // init the extension here!
    // CraftExtension.of(<YOUR PLUGIN'S MAIN CLASS>)
    CraftExtension extension;
    AnvilGUI ag = extension.createAnvilGUI(player, "Title");
    ag.setItem(AnvilSlot.INPUT_LEFT, new ItemStack(Material.EMERALD, 1), SlotCallback.PREVENT_MODIFY);
    ag.setItem(AnvilSlot.OUTPUT, new ItemStack(Material.EMERALD, 1), SlotCallback.PREVENT_MODIFY, new SlotCallback() {
        @Override
        public void click(InventoryClickEvent event, Player player, BaseGUI gui) {
            System.out.println(((AnvilGUI) gui).getInputText());
        }
    });
    // the GUI is opened automatically! (only for one player)
    Code (Java):
    // init the extension here!
    // CraftExtension.of(<YOUR PLUGIN'S MAIN CLASS>)
    CraftExtension extension;
    ArmorStand as = ArmorStand.spawn(player.getLocation());
    as.setArms(true);
    as.setEquipment(EquipmentSlot.HEAD, new ItemStack(Material.IRON_HELMET, 1));
    as.setEquipment(EquipmentSlot.HAND, new ItemStack(Material.DIAMOND_AXE, 1));
    TrackedEntity<ArmorStand> te = extension.trackEntity(as);
    te.setViewDistance(5);
    te.addViewer(player);
    BioMine, ChaoSKiz, ANDREI923 and 11 others like this.

Recent Updates

  1. CraftKit v1.2.4.2
  2. CK v1.2.3
  3. CK v1.2.2

Recent Reviews

  1. GlitchHop
    GlitchHop
    1/5,
    Version: 1.2.3
    Doesn't work at all. The owner deleted his Discord server and account so I can't even reach him for help. I've tried this plugin two times now and it never worked, always says [17:13:11 ERROR]: Error occurred while disabling CraftKit v1.2.3 (Is it up to date?). AdvancedKeep doesn't work either.
  2. Long
    Long
    5/5,
    Version: 1.1.7
    Thank This Help Me Save A lot Of Time :)
    Lib Tiet Kiem Nhieu Thoi gian viet code Tiec la Trinh Viet Code cua Toi kem qua' Gioi Tre Gio Gioi that
  3. EnityStaller
    EnityStaller
    5/5,
    Version: 1.0.7
    Good api to make the plugins
    Tks for your plugins
    Nice library
    5 star
    =========================
  4. Roy7885
    Roy7885
    5/5,
    Version: 1.0.5
    Great! Great! Great! Great! Great! Great! Great! Great! Great! Great! Great! Great!
    Vietnamese:
    hmm tui kia gat' vc
  5. CaoTrongThang
    CaoTrongThang
    5/5,
    Version: 1.0.4
    Best plugin i very used, hope rainbow siege six plugin will coming soon..................
    1. anhcraft
  6. kingred123
    kingred123
    2/5,
    Version: 1.0.3
    this is awesome
    ----------------------------------------------------
    VN: API như cc eo sai dc gì
    1. anhcraft
      Author's Response
      ngu thi s biet xai :')
  7. Thitz
    Thitz
    5/5,
    Version: 1.0.0-SNAPSHOT
    this is awesome
    ------------------------------------------------------------------------
    VN: plugin nhu con cac tao, xoa me di
    1. anhcraft
  8. hitsu
    hitsu
    5/5,
    Version: 1.8.3
    this is awesome
    ------------------------------------------------------------------------
  9. PinUsagii
    PinUsagii
    5/5,
    Version: 1.8.0
    vn: plugin nhu cac vay, xoa di
    english: this plugin very good for my project. It help me alot, thank you for creating amazing plugin.
    100 charts
    1. anhcraft
  10. XinxCode
    XinxCode
    5/5,
    Version: 1.7.7
    This save my project....
    Thanks mate
    hope you will keep it up.
    +++++++++ 10/10 +++++++++++
    1. anhcraft