Darrionat Plugins
  • Welcome
  • Plugins
    • Bans+
      • Commands & Permissions
      • Configuration Files
      • GUIs
      • MySQL
      • Trivia
    • Command Cooldown
      • Commands & Permissions
      • Configuration Files
        • cooldowns.yml
        • config.yml
        • messages.yml
      • MySQL
      • Trivia
    • Custom Enchants+
      • API
      • Commands & Permissions
      • Configuration Files
        • config.yml
        • enchants.yml
        • lores.yml
        • messages.yml
      • Custom Blocks
      • Dependencies
      • Enchantments
      • GUIs
      • Scrolls
      • Wands
      • Trivia
    • PrisonPick
      • Autosell
      • Commands & Permissions
      • Configuration Files
        • autosell.yml
        • config.yml
        • enchants.yml
        • messages.yml
      • Dependencies
      • Enchantments
      • GUIs
      • Inventory Management
      • Placeholders
      • Saving Data
  • Libraries
    • PluginLib
      • Creating Your Plugin
      • Commands
      • Configs
      • ErrorHandler
      • Gui
  • Discord Bot
    • SpigotMC Bot
      • Commands
  • Links
    • Discord
    • GitHub
    • SpigotMC
  • Support Me
    • Patreon
Powered by GitBook
On this page
  • Maven
  • Documentation

Was this helpful?

  1. Libraries

PluginLib

A library for making the creation of plugins easier

A project that aims to make the creation of plugins a faster and easier process. This project supports Minecraft 1.8.8-1.16.x.

Maven

To add the library to your local Maven project, add the following to your pom.xml

Repository

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

Dependency

<dependency>
  <groupId>com.github.darrionat</groupId>
	<artifactId>PluginLib</artifactId>
	<version>version</version>
</dependency>

Shading

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
                <relocations>
                    <relocation>
                        <pattern>me.darrionat.pluginlib</pattern>
                        <!-- Make sure to change the package below -->
                        <shadedPattern>my.plugin.utils</shadedPattern>
                    </relocation>
                </relocations>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Documentation

The JavaDocs also contain plenty of information, make sure to read them before using a method!

todo: page links

PreviousSaving DataNextCreating Your Plugin

Last updated 8 months ago

Was this helpful?