Coder Social home page Coder Social logo

specificlanguage / civmodcore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from civmc/civmodcore

0.0 0.0 0.0 1.88 MB

Plugin Core and general purpose API for Civ Plugins - Updated for Paper 1.16.5

License: BSD 3-Clause "New" or "Revised" License

Java 99.61% Kotlin 0.39%

civmodcore's Introduction

CivModCore

CivModCore is derived from Humbug.


Versions

  • 2.0.0 - Paper 1.18.1 - This version onwards requires gradle

  • 1.9.0 - Paper 1.17.1

  • 1.8.4 - Paper 1.16.5

  • 1.8.0 - Paper 1.16.1

  • 1.7.9 - Spigot 1.14.4

  • 1.6.1 - Spigot 1.12.2 (Mercury Removed -- incompatible with plugins that rely on Mercury hooks)

  • 1.5.11 - Spigot 1.11.x

  • 1.5.9 - Spigot 1.10.x

No explicit backwards support is offered to any previous version, whether it be major, minor, or patch.


##How to compile with Gradle

To compile CivModCore, you need JDK 17.

Clone this repo, run ./gradlew reobfJar to create your jar, You can find the compiled jar in the paper build/libs directory.

To get a full list of tasks, run ./gradlew tasks.


Usage

To take full advantage of CivModCore, you should have your plugin class extend ACivMod, like such:

public class MyNewPlugin extends ACivMod {

    @Override
    public void onEnable() {
        // Always have this at the top of the function
        super.onEnable();
        
        // Then do your stuff here that you need to do.
    }

    @Override
    public void onDisable() {
        // Do whatever you need to do here
    
        // Try to keep this at the bottom of the function
        super.onDisable();
    }

}

For more information, look through the CivTemplate plugin.


Dependency

Include the following in your dependency list in your plugin's POM file:

<dependency>
    <groupId>net.civmc</groupId>
    <artifactId>CivModCore</artifactId>
    <version>2.0.0-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>

For Gradle include the following line inside your dependencies code block:

implementation("net.civmc:civmodcore:2.0.0-SNAPSHOT:dev-all")

civmodcore's People

Contributors

aleksey-terzi avatar angrysoundtech avatar caucow avatar christianarnold avatar deadbeef-enc0de avatar diet-cola avatar erocs avatar goeppes avatar maxopoly avatar mindless728 avatar okx-code avatar programmerdan avatar protonull avatar rourke750 avatar squareblob avatar tealnerd avatar ttk2 avatar tym17 avatar valadian avatar wingzero54 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.