Create an Extension Project
A full guide on creating an extension for the plugin.
To get started, create a barebones Java project and add the Civilization Royale plugin's dependency to your build tool.
Refer to the guide below for instructions on including the Civilization Royale plugin dependency in your project.
Maven Tutorial
In your pom.xml file add this section:
SOONGradle Tutorial
In your build.gradle file add this section:
SOONAdding Necessary Files
After going through first step now you need to create extension.yml file in your project's resources folder.
Here is an example extension.yml file with all available fields included.
# Unique identifier of the Extension.
extension-id: dragon-extension
# Display name of the Extension.
extension-name: "Example Extension"
# Description of the Extension.
description: "Adds extra features to Civilization Royale"
# Path to main class of the Extension.
main-class: net.matrixcreations.civilizationessentials.Essentials
# Author of the Extension.
author: "ItsHarshXD"
# Version of the Extension.
version: 1.0Here is the deep explanation of every fields available as of right now in the v1.0 of Extension API.
This field is mandatory. The Extension ID enables the plugin to identify and communicate with the extension, retrieving its details.
This field is mandatory and represents the display name of the extension. You can set it to any name you prefer.
This field is optional and provides a description of what your extension does.
This field is mandatory. It specifies the fully qualified name of the main class for the extension, which serves as the entry point for its functionality.
This field is mandatory. It specifies the version of the extension, helping to track updates and ensure compatibility.
The Civilization Essentials Extension is open source. You can review its code to gain a deeper understanding of the Extension API.
Last updated