- Clone repository to your local machine
- Open, load both Gradle and Maven projects in your IDE
- Run
gradle build
to build the project. Probably will fail due to missing dependencies. - Run
mvn clean install
to install to your local maven repository. - Run
mvn package
to build the plugin jar file. Will be located intarget/CoreProtect-23.1.jar
- Define local maven repository in your IDE to use the local maven repository for the dependencies:
~/.m2/repository
- Add this to your build.gradle:
compileOnly('net.coreprotect:CoreProtect:23.1')
- Custom method for abilities logging. Works well with
/co lookup action:ability
- Custom method for logging block changes brought by abilities. Works well with
/co lookup action:ability-block
- Custom changes by abilities have identifier and player name, as well as the ability name.
- Custom changes by abilities are rollbackable. Batch size for saving is zero, each changes is saved separately.
- Add the JitPack repository to your build.gradle:
repositories {
maven { url 'https://jitpack.io' }
}
- Add the dependency to your build.gradle:
dependencies {
compileOnly 'com.github.mc-uaproject:uaproject-core-protect:v23.1'
}
- Replace
{version}
with the version you want to use. Some versions may not be available as modifications are made to the project.
CoreProtect is an open source project, and gladly accepts community contributions.
If you'd like to contribute, please read our contributing guidelines here: CONTRIBUTING.md