Sponge
This page describes how to integrate Lamp with Sponge 8+, as well as what to expect out of it.
Setting up
Adding Lamp dependency
To add Lamp to your project, add the following (depending on your project structure):
Optional: Preserve parameter names
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:
Sponge-specific annotations
@CommandPermission
@CommandPermission
Adds a command permission for the given command
Supported Sponge types
org.spongepowered.api.command.CommandCause
and its subclasses in place of CommandActornet.kyori.adventure.audience.Audience
and its subclasses in place of CommandActororg.spongepowered.api.service.permission.Subject
and its subclasses in place of CommandActororg.spongepowered.api.world.server.ServerWorld
org.spongepowered.api.entity.living.player.server.ServerPlayer
org.spongepowered.api.command.selector.Selector
Example
Last updated
Was this helpful?