Skip to content

About

Official example addon for PulsePrison Core (Paper / Folia 1.20.4+).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PulsePrison Addon Example

An example add-on for PulsePrison demonstrating how to use its Developer API. This guide will serve as a foundation for creating your own extensions, custom enchantments, currencies, and integrations.

Features included in this example

  1. Obtaining the API: Safely using PulsePrisonProvider.get() inside onEnable.
  2. Events (Listeners): Listening to and modifying or cancelling PulsePrison's custom events, such as PlayerRebirthEvent, MineResetEvent, MarketPriceChangeEvent, and PlayerLevelUpEvent.
  3. Custom Actions: Registering a custom action tag (e.g., [heal]) that can be used in any GUI menu or leveling reward in the core plugin.
  4. Custom Enchantments: Creating a Java-based enchantment (BaseEnchant) that hooks directly into the mining pipeline, utilizing per-level probability rates.
  5. Live Data Command: The /prisonaddon command demonstrates how to fetch dynamic market data, custom currency balances, and player progression statistics in real-time.

How to build this project

  1. Clone this repository.
  2. Create a folder named libs in the root directory.
  3. Place your PulsePrison (v2.0+) .jar file inside the libs folder.
  4. Run ./gradlew build to compile the project.
  5. The generated .jar file will be located in build/libs/.

Documentation

https://mode-development.gitbook.io/pulseprison

About

Official example addon for PulsePrison Core (Paper / Folia 1.20.4+).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages