Collection of classes useful for Bukkit/Spigot/Paper/BungeeCord/Waterfall plugins
GPL-3.0 License
A library for Bukkit, Spigot, Paper and BungeeCord, that provides commonly used functions and provides cross version support for a lot of Minecraft features (some of which are no longer supported or support for them has been added later by Bukkit/Spigot/Paper).
The library can be added in two ways to your plugin.
<repository>
<id>pcgf-repo</id>
<url>https://repo.pcgamingfreaks.at/repository/maven-everything</url>
</repository>
<dependency>
<groupId>at.pcgamingfreaks.pcgf_pluginlib</groupId>
<artifactId>PluginLib</artifactId>
<version>1.0.39.4-SNAPSHOT</version><!-- Check version shield for newest version -->
</dependency>
Add PCGF_PluginLib
as a dependency for your Bukkit/Spigot or BungeeCord plugin.
The users will have to install the library as a plugin. Download: https://ci.pcgamingfreaks.at/job/PluginLib/
By adding the library to your plugin through shading it will require more memory (if multiple plugins using the library are installed) and some features (DB connection sharing, translation sharing) will not be available. The recommended shading settings:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>false</minimizeJar><!-- Do not minimize or some of the utils will not work on Bukkit -->
<artifactSet>
<includes>
<include>at.pcgamingfreaks:PluginLib</include>
</includes>
</artifactSet>
<relocations>
<!-- Relocate the lib to prevent conflicts with other plugins using it -->
<relocation>
<pattern>at.pcgamingfreaks</pattern>
<shadedPattern>your_package.libs.at.pcgamingfreaks</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
Replace your_package
with the package of your plugin.
Do not shade this library into your plugin without relocation!!!
git clone https://github.com/GeorgH93/PCGF_PluginLib
cd PCGF_PluginLib
mvn package