Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 1.89 KB

README.md

File metadata and controls

62 lines (38 loc) · 1.89 KB

CivModCore

CivModCore is derived from Humbug.


Versions

  • 1.8.2 - Spigot 1.16.4

  • 1.8.0 - Spigot 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.


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>vg.civcraft.mc.civmodcore</groupId>
    <artifactId>CivModCore</artifactId>
    <version>1.8.2</version>
    <scope>provided</scope>
</dependency>