Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.62 KB

File metadata and controls

50 lines (35 loc) · 1.62 KB

Guira

Guira is a lightweight Java library designed to help you implement flexible and robust setup processes for games, minigames or any other custom features on a Minestom server. Rather than enforcing a fixed setup structure, Guira empowers you to define exactly what your setup should contain, such as maps, teams, rules or any other configuration by letting you design your own setup data types and logic. The library provides a solid and extensible foundation for storing, tracking and managing this setup data, making it easy to build tailored setup flows for a wide range of server scenarios.

Installation

Add the following to your build.gradle.kts:

dependencies {
    compileOnly("net.onelitefeather:guira:<version>")
}

Usage Example

// Create a new SetupDataService instance
SetupDataService<MySetupData> service = SetupDataService.create();

// Add setup data
UUID uuid = UUID.randomUUID();
MySetupData data = new MySetupData(uuid, ...);

service.add(uuid, data);

// Retrieve setup data
Optional<MySetupData> retrieved = service.get(uuid);

// Remove setup data
service.remove(uuid);

Event Handling

Guira provides events such as SetupCreateEvent and SetupFinishEvent for managing the setup process lifecycle.

Note

Guira does NOT automatically fire any of the provided events (SetupCreateEvent, SetupFinishEvent, etc). You are responsible for triggering and handling these events in your own code/context (e.g., your Minestom server plugin or application).

License

This project is licensed under the Apache License 2.0.