square-terminalUsing the API

Step 1. Connect the plugin to your project.

// Maven
<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

<dependency>
    <groupId>com.github.Enc0urager</groupId>
    <artifactId>GreatCombat</artifactId>
    <version>{version}</version>
    <scope>provided</scope>
</dependency>

// Gradle
dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		mavenCentral()
		maven { url 'https://jitpack.io' }
	}
}

dependencies {
        implementation 'com.github.Enc0urager:GreatCombat:{version}'
}

You can check the current version here - arrow-up-righthttps://jitpack.io/#Enc0urager/GreatCombatarrow-up-right

Step 2. Add the plugin to the dependencies in plugin.yml

Step 3. Using the API.

Brief explanations of functionality are present above all classes and methods. Below are several examples of working with the plugin's key functionality.

Example 1. Using CombatManager and User

Step 1. Get an instance of CombatManager

Step 2. Main methods of CombatManager

Step 3. Main methods of User

Example 2: Implementing your own ServerManager

Step 1. Create a class that implements the ServerManager interface

Step 2. Initialize our implementation

Need more examples, have questions? Write in the resource discussions.

Last updated