Menerbitkan pengisian anda

Sponge's plugin resmi / moda repositori, Ore, adalah suatu projek gratis open-source yang mana semua orang boleh mempublikasikan Sponge plugin mereka atau menambahkan moda pada.

Kemasan plugin anda

Ore requires any projects to be packaged with a mcmod.info descriptor file in the top-level of your JAR file. This file is used to automatically infer some important details about your project to make the upload process easier. Ore will reject your plugin if this file is missing from the JAR. Luckily, SpongeAPI has a built-in annotation processor that creates this file for you automatically, on compile, using the @Plugin annotation that you have likely already created in your plugin's main class.

Catatan

Untuk informasi lebih lanjut tentang cara membuat dan menyusun pertama anda plugin, lihat /plugin/plugin-kelas

Untuk acuan, ini adalah contoh mcmod.info file:

[
    {
        "modid": "my-plugin",
        "name": "MyPlugin",
        "version": "1.0.0",
        "description": "My first plugin!",
        "url": "https://spongepowered.org",
        "authorList": [
            "windy",
            "Zidane",
            "gabizou"
        ],
        "requiredMods": [
            "[email protected]",
            "[email protected]",
            "[email protected]"
        ],
        "dependencies": [
            "[email protected]",
            "[email protected]",
            "[email protected]"
        ]
    }
]

Pada bagian akhir, setiap projek Ore harus memilik modid, nama dan, versi bidang yang dilengkapi.

Mengunggah pengisian anda

Once your plugin's JAR file is packaged with an mcmod.info descriptor file in the top-level, it is ready for uploading! To create a project on Ore, you must have an active Sponge account. Hitting the "Sign up" button in the top-right corner will take you to the appropriate page to create one. If you already have an account, just hit the "Log in" button in the top-right corner to log into Ore.

Setelah masuk, Arahkan ke avatar anda dan pilih opsi "baru" dalam menu tarik yang muncul, atau tekan saja tombol "C".

Saat mengupload, wizard pembuatan pertama-tama akan meminta file upload utama Anda dan kemudian untuk tanda tangan terpisah Anda.

Menyiapkan Proyek Anda di Bijih

Setelah mengunggah plugin Anda, kamu akan diberi beberapa pengaturan untuk mengonfigurasi proyek Anda sesuka Anda. Jangan khawatir, semua ini bisa diganti nanti di panel setting. Setelah menyiapkan proyek Anda, kamu dapat mengundang pengguna Sponge untuk menjadi bagian dari proyek Anda. Setiap pengguna yang terdaftar di forum dapat diundang ke sebuah proyek bahkan jika mereka tidak pernah masuk ke Ore. Setelah membuat proyek Anda, pengguna yang Anda undang akan menerima pemberitahuan dan akan dapat menerima atau menolak undangan Anda. Anggota proyek tidak akan terlihat oleh publik sampai undangan diterima.

Saat ini terdapat tiga kelompok yang dapat anda tetapkan untuk anggota proyek: 'Developer ', "Editor', dan 'Dukungan'. Proyek yang dibuat pengguna akan diberikan 'Pemilik' yang telah memiliki akses untuk proyek. Disini adalah jalannya cepat dari apa yang masing-masing grup dapat melakukan dalam proyek anda.

Pemilik

Ada maksimum satu pemilik untuk sebuah proyek, tidak dapat dipindahtangankan (untuk saat ini), dan merupakan satu-satunya kelompok yang dapat menetapkan peran kepada anggota lainnya.

Para pengembang

Pengembang dapat membuat/mengedit saluran rilis, halaman dan membuat/sunting versi.

Penyunting

Editor bisa mengedit halaman.

Dukungan

Dukungan tidak melakukan apa-apa, hanya sebuah cara untuk menunjukkan bahwa anggota adalah bagian dari proyek.

Documenting Your Project With Pages

To document your plugin Ore offers the creation of pages. By default, you get a 'Home' page when you create your new Project. To add new pages, you can click on the '+' icon in the Pages bar on the right of the screen; doing so will open a pop-up where you can choose a name and the parent page (adding a page on the Home page is not possible). If you choose the '<None>' option the page will become a root page where you can later add child pages on. If you choose to add it to another page the page will only show when the parent page is expanded. To document your pages, you can use CommonMark.

Linking Pages

If you have the following tree structure in your pages:

  • Home

  • Perintah
    • Pengguna

    • Admin

  • Pengaturan
    • Config

    • Hak akses

And you want to add a link from the home page to the Config page in Setup you can use WikiLinks. To add a WikiLink use the format [[Link]] so on the home page you can add [[Setup/Config]] and this will get be converted to a link that is guaranteed to work.

Catatan

You can also specify a title for the link and separate it with a Pipe symbol so [[Title|Link]] will become a link with the title

Catatan

WikiLinks are only supported in Ore so if you use them on the Home-page they will not be displayed correctly on the forums. However, we still recommend using WikiLinks instead of normal links to guarantee the future working of your wiki.

Project States

When creating a new project, a banner will appear telling you your project is in a 'new' state. The new state is intended to indicated to users and admins you are still working on the setup of your project. If you have finished documenting your plugin to make it comply with the guidelines, click the 'publish' button to complete the process. However, if you don't publish it yourself then the project will be published automatically 24 hours after its creation.

Needs Changes

Ore staff can hide your project and request changes; the changes in question will be listed in the banner. This state will hide your project from the public; if you are done you can send your project for approval.

Needs Approval

In this state your project is still hidden from the public while waiting for a staff member to review and validate the changes that were requested. Please be patient, the staff members might be busy with other tasks. If the project gets approved it will automatically become visible again. Please make sure to actually fix the points that require changes.