πŸŽ‡ lightweight JDA command library

Overview

? LightDrop

LightDrop is a lightweight library that allows you to create decorator-based commands with JDA.

Features

  • Creating commands in a method.
  • Adding permissions and permission message.
  • Catch exceptions from commands.
  • Adding global filters to the command's middleware.

Installation

With maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>me.neiizun</groupId>
        <artifactId>LightDrop</artifactId>
        <version>latest</version> <!--Replace with the latest version.-->
    </dependency>
</dependencies>

With gradle

repositories {
    maven { url 'https://jitpack.io' }
}
repositories {
    dependencies {
        implementation 'com.github.NeiiZun:LightDrop:latest' // Replace with the latest version.
    }
}

Usage

Hook LightDrop

JDA jda = JDABuilder.createDefault("your token").build();
        
new LightDrop().hook(jda);

Create your first command

public class MyCommand {
    @Command(name = "mycommand")
    public void myCommand(CommandContext context) {
        context.getChannel().sendMessage("Hello " + context.getAuthor().getName()).complete();
    }
}
JDA jda = JDABuilder.createDefault("your token").build();
        
new LightDrop().hook(jda)
    .map(new MyCommand());

Full documentation available here

You might also like...

A lightweight but powerful hologram plugin with many features and configuration options.

Decent Holograms A lightweight but powerful hologram plugin with many features and configuration options. Spigot: https://www.spigotmc.org/resources/9

Dec 29, 2022

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan), audio (OpenAL), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR) applications.

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan), audio (OpenAL), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR) applications.

LWJGL - Lightweight Java Game Library 3 LWJGL (https://www.lwjgl.org) is a Java library that enables cross-platform access to popular native APIs usef

Dec 29, 2022

Java / JavaFX / Kotlin Game Library (Engine)

Java / JavaFX / Kotlin Game Library (Engine)

About JavaFX Game Development Framework Why FXGL? No installation or setup required "Out of the box": Java 8-15, Win/Mac/Linux/Android 8+/iOS 11.0+/We

Jan 2, 2023

A library that provide informations for minecraft servers (players, maxplayers and motd)

MinecraftServerInformations MinecraftServerInformation is a java library for retrieving informations about Minecraft Servers. Installation Download th

Sep 11, 2022

A Java user-interface library with support for Minecraft.

interfaces Building interfaces since 2021. interfaces is a builder-style user interface library designed to make creation of flexible user interfaces

Dec 24, 2022

Java mod library

Java mod library

GasLirary GasLirary is a Mindustry java mod library for making new content type: Gas. Usage/Examples Gas creating Gas is created in the same way as It

Jan 2, 2023

Java mod library

Java mod library

AdvancedContentInfo AdvancedContentInfo is a Mindustry java mod library for making out stats and stats categories. Usage/Examples You can initialize y

May 28, 2022

πŸš€Small java eventing library created to developer familiar with Bukkit,Nukkit and PowerNukkit...

FestivalKit πŸ‡ΊπŸ‡Έ Small event library for developers familiar with Bukkit,PowerNukkit and Nukkit πŸ‡§πŸ‡· Pequena libraria de eventos para desenvolvedores

Jan 2, 2022

Arnicalib-mcmod - Shared library for AH's Minecraft mods.

ArnicaLib Shared library for AH's Minecraft mods. For Developers There are two ways to use this mod in your workspace: GitHub Package (Recommended) Ad

Dec 15, 2022
Owner
NeiiZun
BE developer
NeiiZun
Lightweight reflection based tab library supporting 1.7 - 1.17 servers and clients.

Lightweight reflection based tab library supporting 1.7 - 1.17 servers and clients.

Gleeming 2 Aug 23, 2022
Lightweight animation library

Blaze Lightweight animation library made mainly for OpenGL usage Installation Maven: <repository> <id>jitpack.io</id> <url>https://jitpack.io<

null 10 Dec 5, 2022
Essentials - Minecraft server command mod - Adds over 100 commands for use in-game to help manage a server

Essentials Development Readme The official repository is at: https://github.com/essentials/Essentials We use NetBeans 7.3 for development. Recommended

Essentials 811 Jan 7, 2023
A word game inspired by the original Wordle to run in the command line.

Wordle This is a word game inspired by the original Wordle to run in the command line. It can be played in english or in spanish. How to run it Open a

null 37 Dec 17, 2022
resetchunks is a tiny fabric mod that re-adds the /resetchunks command, allowing you to regenerate one or more chunks

resetchunks is a tiny fabric mod that enables the /resetchunks command, allowing you to regenerate one or more chunks.

Potassium 5 Jul 25, 2022
This minecraft plugin adds @a, @p, and @r to EssentialsX Commands! Works with command block and console aswell!

EssentialsX-Target-Selectors This minecraft plugin adds @a, @p, and @r to EssentialsX Commands! Works with command block and console aswell! Usage: Ju

null 6 Dec 7, 2022
Duck Library is a library for developers who don't want to spend their time to write same library consistently.

Duck Library is a library for developers who don't want to spend their time to write same library consistently. It has almost every useful feature to

null 5 Jul 28, 2022
Squaremap is a minimalistic and lightweight world map viewer for Minecraft servers, using the vanilla map rendering style

squaremap squaremap (formerly known as Pl3xMap) is a minimalistic and lightweight live world map viewer for Minecraft servers. What is squaremap If, l

Jason 204 Jan 3, 2023
πŸƒ A lightweight, multiarena, complex Parkour Spigot/Bukkit plugin for Minecraft Server

?? A lightweight, multiarena, multilanguage, completely configurable and complex Parkour Spigot/Bukkit plugin for Minecraft Server

Victor Rodrigues 6 Oct 17, 2022
A simple, lightweight, safe way to show your user's Spotify now playing in game

Spigotify A simple, lightweight, safe way to show your user's Spotify now playing in game! Installation Install PlaceholderAPI. Install Spigotify Add

Mufin 2 Mar 14, 2022