Skip to content

Plugin Core and general purpose API for Civ Plugins - Updated for Spigot 1.14.4

License

Notifications You must be signed in to change notification settings

Diet-Cola/CivModCore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Plugin Core and general purpose API for Civ Plugins - Updated for Spigot 1.14.4

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%