PineLib for Developers
Welcome to the PineLib documentation! This guide will help you get started with PineLib, a powerful library for building Minecraft plugins. Whether you’re a seasoned developer or new to plugin development, PineLib provides a robust set of tools and features to make your development process easier and more efficient.
Dependency
Section titled “Dependency”repositories { maven { url = 'https://jitpack.io' }}
dependencies { compileOnly 'dev.piny:PineLib:vX.X.X'}repositories { maven { url = uri("https://jitpack.io") }}
dependencies { compileOnly("dev.piny:PineLib:vX.X.X")}I don't personally use Maven, so this is a bit of a guess,but it should be something like this.
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository></repositories>
<dependencies> <dependency> <groupId>dev.piny</groupId> <artifactId>PineLib</artifactId> <version>vX.X.X</version> <scope>provided</scope> </dependency></dependencies>name: ExamplePluginprefix: ExamplePluginversion: '${version}'
main: dev.piny.example.ExamplePluginapi-version: '1.21'name: ExamplePluginprefix: ExamplePluginversion: '${version}'
main: dev.piny.example.ExamplePluginbootstrapper: dev.piny.example.ExampleBootstrapperloader: dev.piny.example.ExampleLoaderapi-version: '26.1.2'load: POSTWORLD
authors: [ Ember <piny.dev> ]website: https://modrinth.com/plugin/exampleplugindependencies: server: PineLib: load: BEFOREBasic Usage
Section titled “Basic Usage”First you need to get an instance of the PineLib class. You can do this by calling the static getInstance() method:
PineLib pineLib = PineLib.getInstance();