Skip to content

byteful/LevelTools

Repository files navigation

Java CI with Gradle Discord

Support/Help Server: https://discord.gg/G8BDgqsuyw

Logo

A plugin that adds a leveling system to tools, swords, and bows.

Features

  • Supports versions 1.8 - 1.21.
  • Supports Folia
  • No dependencies.
  • Super efficient, no lag.
  • Simple developer API.
  • Commands & enchants on level up.
  • Supports blacklisting for blocks and items for XP.
  • ActionBar notifications.
  • Item lore modification.

Developer API

Gradle:

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    compileOnly 'com.github.byteful:LevelTools:Tag' // Replace Tag with the version. (Ex: v1.4.0)
}

Maven:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.byteful</groupId>
    <artifactId>LevelTools</artifactId>
    <version>Tag</version> <!-- Replace Tag with the version. (Ex: v1.4.0) -->
</dependency>

Example Usage:

// Items

ItemStack hand = player.getInventory().getItemInMainHand();
LevelToolsItem tool = LevelToolsUtil.createLevelToolsItem(hand);
tool.setLevel(69);
tool.setXp(420);
player.getInventory().setItemInMainHand(tool.getItemStack());

// Events

@EventHandler
public void onLevelEvent(LevelToolsLevelIncreaseEvent event) {
  event.setNewLevel(69);
}

@EventHandler
public void onXPEvent(LevelToolsXPIncreaseEvent event) {
  event.setNewXp(420);
}

About

A Spigot/Bukkit plugin that adds a leveling system to tools, swords, and bows. https://discord.gg/G8BDgqsuyw

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages