-
-
Notifications
You must be signed in to change notification settings - Fork 41
Introduction
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.
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 example10d5h
(10 days and 5 hours), or6m40s
(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.
👋 If you're having trouble, need support, or just feel like chatting, feel free to hop by our Discord server!