Setting up
This page describes how you can add Lamp to your own projects, using Gradle or Maven.
Last updated
Was this helpful?
This page describes how you can add Lamp to your own projects, using Gradle or Maven.
Last updated
Was this helpful?
To add Lamp to your project, add the following (depending on your project structure):
Latest version:
Where [PLATFORM]
is any of the following:
bukkit
: Contains integrations for the Bukkit platform
bungee
: Contains integrations for the BungeeCord API
brigadier
: Contains integrations for Mojang's Brigadier API
sponge
: Contains integrations for the Sponge platform (version 8+)
paper
: Contains extra features for the PaperMC API
velocity
: Contains integrations for the VelocityPowered API
minestom
: Contains integrations for the Minestom platform
fabric
: Contains integrations for the Fabric modding API
jda
: Contains integrations for the Java Discord API
cli
: A minimal implementation of the Lamp APIs for command-line applications
Lamp identifies parameters by their names and uses them to generate relevant command metadata. By default, Java does not preserve parameter names reflectively. You need to add the following to your project:
Here’s how you can set the Kotlin compiler option javaParameters = true
in three different build systems, using the tab format you specified: