Croissant
Lightweight yet useful library for Bukkit/Spigot/Paper plugins.
Introduction
Croissant is a lightweight Java library that provides a command framework and a GUI framework for Bukkit/Spigot/Paper plugins.
Here is a short summary of its features:
Command framework
- No need to declare commands in your plugin's plugin.yml file
- Automated argument parsing and tab-completion
- Arguments are inferred from method parameters
- Arguments can be either required or optional, and optional arguments can have default values
- Built-in argument types + ability to create your own argument types
- Subcommands
GUI framework
- Create interactive GUIs from fake chest inventories
- Supports both single-page GUIs and multi-page GUIs with navigation buttons (referred to as "scrollable GUIs")
Croissant is currently written against the Paper 1.14.4 API, but supports Bukkit/Spigot/Paper 1.8.x to 1.14.x.
Installation
Releases of Croissant are published to a Maven repository on Bintray , which is synced with JCenter and Maven Central.
If your project is built with Maven or a supported build tool such as Gradle, you can easily add Croissant as a dependency for your project:
Maven
<dependency >
<groupId > com.github.overmighty </groupId >
<artifactId > croissant </artifactId >
<version > 1.0.0 </version >
</dependency >
Gradle (Groovy DSL)
repositories {
jcenter ( ) // or mavenCentral()
}
dependencies {
implementation 'com.github.overmighty:croissant:1.0.0'
}
Usage
The Croissant Javadoc can be browsed online here .
You can also look at the example Bukkit plugin to get started with Croissant.
Support
If you need help with Croissant, you can join my Discord server .
Building
JDK 8 or later is required.
Croissant uses Gradle and a Gradle wrapper is included in this repository.
The following command can be run on Unix-like systems to build Croissant using the Gradle wrapper included in this repository:
$ ./gradlew clean build
On Windows, the `gradlew.bat` batch script can be used instead of the `gradlew` POSIX shell script.
---
This project is licensed under the MIT license.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta