Coder Social home page Coder Social logo

sapphiremc / sapphire Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 1.0 810 KB

Another Pufferfish fork

License: GNU General Public License v3.0

Shell 100.00%
java minecraft bukkit paper sapphire minecraft-server minecraft-api craftbukkit paper-fork sapphire-api sapphiremc gradle pufferfish pufferfish-fork

sapphire's Introduction

Sapphire

Another pufferfish fork

Downloads - wiki (coming soon)

License

GPL-3.0-only License

Plugin development

  • We recommend using gradle with kotlin dsl as the build system for your plugin.

API

repositories {
    maven("https://repo.activmine.ru/public/")
    // Other repositories
}
dependencies {
    compileOnly("io.sapphiremc.sapphire:sapphire-api:1.20.4-R0.1-SNAPSHOT")
    // Other dependencies
}

Dev bundle

plugins {
    `java-library`
    id("io.papermc.paperweight.userdev") version "1.5.15"
    // Other plugins
}
repositories {
    maven("https://repo.activmine.ru/public")
    // Other repositories
}
dependencies {
    paperweight.devBundle("io.sapphiremc.sapphire", "1.20.4-R0.1-SNAPSHOT")
    // Other dependencies
}

Setting up and building

Initial setup

  • Run ./gradlew applyPatches in the root directory

Creating a patch

  • Patches are effectively just commits in either sapphire-api or sapphire-server.
  • To create one, just add a commit to either repo and run ./gradlew rebuildPatches, and a patch will be placed in the patches folder.
  • Modifying commits will also modify its corresponding patch file.

See CONTRIBUTING.md for more detailed information.

Compiling

  • Use the command ./gradlew build to build the API and server.

Compiled JARs will be placed under sapphire-api/build/libs and sapphire-server/build/libs.

  • To get a Paperclip jar, run ./gradlew renamedReobfPaperclipJar.
  • To get a Bundler jar, run ./gradlew createReobfBundlerJar

Compiled JAR (Paperclip or Bundler) will be placed under build/libs/

  • To install the sapphire-api and dev-bundle dependencies to your local Maven repo, run ./gradlew publishToMavenLocal

sapphire's People

Contributors

denarydev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pancaksee

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.