InjectLib
PluginApache-2.0

InjectLib

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

61
Downloads
2
Followers
7 months ago
Updated
📦
4
Versions

📖About 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")

  • ItemMeta Extension

    • 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

Maven

<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 Kotlin DSL

repositories {
    maven("https://jitpack.io")
}
dependencies {
    implementation("com.github.notKolja:InjectLib:0.1.1")
}

Gradle Groovy DSL

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.notKolja:InjectLib:0.1.1'
}

📚 Requirements

  • Minecraft: Paper/Spigot 1.21+
  • Language: Kotlin
  • 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
  2. Contribute code: Pull requests welcome!

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