InjectLib

InjectLib

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

140 downloads 2 followers

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

No gallery available for this project.

Version Minecraft Loader Download

InjectLib 0.1.3

0.1.3

1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
paper, spigot
Download

InjectLib 0.1.2

0.1.2

1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
paper, spigot
Download

InjectLib 0.1.1

0.1.1

1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
paper, spigot
Download

InjectLib 0.1.0

0.1.0

1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
paper, spigot
Download