Skip to content

Introduction

Ali edited this page Nov 22, 2023 · 3 revisions

Lamp Cookbook

Welcome to Lamp! This tutorial aims to demonstrate the core concepts in the Lamp framework, from creating basic commands to building our own annotations with their functionality.

To do this, we will create a punishment plugin for Bukkit. Because this tutorial focuses on showcasing Lamp, we will not go into the hairy details of anything outside the scope of Lamp (such as the database system, actual punishments, etc.).

This tutorial assumes familiarity with the Java programming language. Knowledge of Gradle is a bonus.

If you already have a running project, you can skip the setup process in the next couple tutorials. However, make sure you add the necessary setup.

Final result

We will be building the following commands:

  • /ban <player> <reason> [duration]
    • [duration] will be the ban duration in the syntax of [days]d[hours]h[minutes]m[seconds]s, for example 10d5h (10 days and 5 hours), or 6m40s (6 minutes and 40 seconds).
  • /naughty <player> <punishment type> <reason>
    • <punishment type> is the type of punishment. It will accept the following values:
      • jail
      • nausea
      • blindness

So, what are you waiting for? Head for the next tutorial to get started.