A common API for my plugins
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
License.txt
README.md
pom.xml
swornapi.iml

README.md

SwornAPI

SwornAPI is a collection of useful classes that I use in most of my projects. It contains APIs for configuration, commands, chat, GUIs, reflection, integration, I/O, and more.

Resources

Building

SwornAPI is built using Maven. It requires Spigot and the Spigot API, which can be obtained here.

License

SwornAPI is currently licensed under the GPL v3.

Utilizing SwornAPI

SwornAPI is best utilized as a Maven dependency:

<repositories>
  <repository>
    <id>dmulloy2-repo</id>
    <url>http://repo.dmulloy2.net/content/groups/public/</url>
  </repository>
  <!-- And so on -->
</repository>

<dependencies>
  <dependency>
    <groupId>net.dmulloy2</groupId>
    <artifactId>swornapi</artifactId>
    <version>1.1-SNAPSHOT</version>
  </dependency>
  <!-- And so on -->
</dependencies>

For the best results, SwornAPI should be shaded into your project:

<build>
  <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>net.dmulloy2:swornapi*</include>
                </includes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>net.dmulloy2</pattern>
                  <shadedPattern>net.dmulloy2.ultimatearena</shadedPattern>
                  <excludes>
                    <exclude>net.dmulloy2.ultimatearena*</exclude>
                  </excludes>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- And so on -->
    </plugins>
</build>