Creating Your First Plugin
It is very simple to create a plugin for Velocity. This section will teach you how to setup your IDE, your plugin identifiers, and give you an introduction to the basics of the Velocity API.
Before you continue...
You will need proficiency in the Java programming language. If you don't know Java yet, we strongly recommend you learn some basic Java before you continue.
Set up your environment
You're going to need the JDK and an IDE. If you don't have an IDE, IntelliJ IDEA is recommended.
Creating the project in your IDE
- Open your IDE
Create New Projector the equivalent
- Select either
- Make sure your Project JDK is Java 11 or later
- Finish the dialog and open the project.
Now we have created our project, we need configure our build system.
I know how to do this. Give me what I need!
|Group ID||Artifact ID||Version|
Javadocs are available at jd.papermc.io/velocity/3.0.0.
Set up your build system
You will need to setup a build system before you continue. While it is possible to write Velocity plugins without one, having a build system will make your life a lot less difficult.
Setting up the dependency
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
name = 'papermc'
url = 'https://repo.papermc.io/repository/maven-public/'