InjectLib

A library that adds custom methods to commonly used Paper/Bukkit classes, such as Player.

66

Quick challenge

How far can you run before the mobs catch you?

InjectLib

InjectLib

A lightweight Kotlin library for Paper/Spigot 1.21+ that provides useful extensions and helper functions for plugin development. Perfect for reducing boilerplate and utilizing modern MiniMessage texts.

✨ Features

- MiniMessage Messaging - `Player.sendMiniMessage(text)` - `Player.sendMiniMessageWithPrefix(text)` - `Player.sendMiniMessageActionBar(text)` - `Player.sendMiniMessageActionBarWithPrefix(text)`

Default prefix: `<dark_gray>[<gold>Inject<green>Lib<dark_gray>]` Prefix settable via: `InjectLib.setPrefix("<red>Mini<dark_purple>Message")`

- Number Formatting (Euro) - `ItemMeta.setCustomModelData(float)` – sets Custom Model Data via a float value. - Number Formatting (Euro) - `Double.formatEuro()` → `10,000.00 €` - `Double.formatEuroWithoutSymbol()` → `10,000.00`

📦 Installation

Gradle Groovy DSL ```xml <repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.github.notKolja</groupId> <artifactId>InjectLib</artifactId> <version>0.1.1</version> </dependency> </dependencies> ``` Gradle Groovy DSL ```kotlin repositories { maven("https://jitpack.io") } dependencies { implementation("com.github.notKolja:InjectLib:0.1.1") } ``` Gradle Groovy DSL ```groovy repositories { maven { url 'https://jitpack.io' } } dependencies { implementation 'com.github.notKolja:InjectLib:0.1.1' } ```

📚 Requirements

- Minecraft: Paper/Spigot 21+ - Language: 21+ - Java Version: 21+

⚠️ Note (Alpha)

InjectLib is currently in Alpha: - API may change - Not recommended for production use - Tests and documentation are continuously being expanded

🤝 Contributing

1. Report issues: Issues 3. Contribute code: Pull requests welcome!

--- *Made with ❤️ for the Minecraft plugin community.* *Trusted by TransientRealm.de*

ADS