[ci skip] Add a test plugin (#6133)
This commit is contained in:
parent
416ec98982
commit
20ff0b058c
6 changed files with 53 additions and 3 deletions
17
test-plugin/build.gradle.kts
Normal file
17
test-plugin/build.gradle.kts
Normal file
|
@ -0,0 +1,17 @@
|
|||
version = "1.0.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
maven("https://libraries.minecraft.net")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly(project(":Paper-API"))
|
||||
compileOnly(project(":Paper-MojangAPI"))
|
||||
}
|
||||
|
||||
tasks.processResources {
|
||||
inputs.property("version", project.version)
|
||||
filesMatching("plugin.yml") {
|
||||
expand("version" to project.version)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package io.papermc.paper.testplugin;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public final class TestPlugin extends JavaPlugin implements Listener {
|
||||
@Override
|
||||
public void onEnable() {
|
||||
this.getServer().getPluginManager().registerEvents(this, this);
|
||||
}
|
||||
}
|
7
test-plugin/src/main/resources/plugin.yml
Normal file
7
test-plugin/src/main/resources/plugin.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
name: Paper-Test-Plugin
|
||||
version: ${version}
|
||||
main: io.papermc.paper.testplugin.TestPlugin
|
||||
description: Paper Test Plugin
|
||||
author: PaperMC
|
||||
api-version: 1.17
|
||||
load: STARTUP
|
Loading…
Add table
Add a link
Reference in a new issue