GithubHelp home page GithubHelp logo

yatopiaplugintemplate's Introduction

YatopiaPluginTemplate

EasySpigotAPI

EasySpigotAPI を使って簡単にプラグインを作ることができます。

TODO

変更が必要なところがあります。

パッケージ名を設定しましょう。 ドメインを逆さにするのが定石になります。もしも自分のドメインを持っていない時は GitHub のアカウントを使いましょう。

Main.kt

package sample // TODO 固有のパッケージ名を設定する

e.g. GitHub のユーザー名が abcdef で、作るプラグインの名前が Sample だったら

package com.github.abcdef.sample

build.gradle.kts

configure<BukkitPluginDescription> {
    // ...
    main = "sample.Main" // TODO JavaPlugin を継承したクラスとパッケージを入力する
    // ...
}

e.g. GitHub のユーザー名が abcdef で、作るプラグインの名前が Sample だったら

configure<BukkitPluginDescription> {
    // ...
    main = "com.github.abcdef.sample.Main"
    // ...
}

plugin.yml

build.gradle.kts の中で設定できます。必要であれば設定しましょう。

configure<BukkitPluginDescription> {
    // plugin.yml の中身
}

Gradle Task

ktlintFormat

gradle ktlintFormat

ソースコードを綺麗にすることができます。

addKtlintFormatGitPreCommitHook

gradle addKtlintFormatGitPreCommitHook

Git Commit する時に ktlintFormat を実行します。やっておくことで必ずフォーマットしてくれるようになるので忘れがちな人にオススメです。

shadowJar

gradle shadowJar

Jar ファイルを生成します。build/libs フォルダの中に生成されます。

yatopiaplugintemplate's People

Contributors

dependabot[bot] avatar sya-ri avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.