Developer API/Maven Repository

Setting the Dependency

To begin, you need to determine if Flags will be required or optional. If your creating a module, you probably want Flags to be required. If optional, you can track the status of Flags using the PluginManager class in Bukkit, however be sure to add Flags as either a dependency or soft dependency in your plugin.yml!

Flags is a Maven project with a supported repository. You can still include the jar file directly in your compiler, however if you wish to take advantage of the feature Maven has to offer you may use the following repositories.

Repository

<repository>
       	<id>flags-repo</id>
       	<url>http://pages.suddenlink.net/alshain01/flags/repository</url>
</repository>

Dependency

Required (includes Bukkit):

<dependency>
	<groupId>io.github.alshain01.flags</groupId>
	<artifactId>Flags</artifactId>
	<version>RELEASE</version>
</dependency>

Optional:

<dependency>
	<groupId>io.github.alshain01.flags</groupId>
	<artifactId>Flags</artifactId>
	<version>RELEASE</version>
        <optional>true</optional>
	<exclusions>
		<exclusion>
			<groupId>org.bukkit</groupId>
			<artifactId>bukkit</artifactId>
	        </exclusion>
        </exclusions>
</dependency>

Comments

Posts Quoted:
Reply
Clear All Quotes