Paper Plugins (#8108)
This commit is contained in:
parent
f9dc371fd8
commit
841da90501
671 changed files with 9861 additions and 719 deletions
|
@ -13,7 +13,7 @@ tasks.processResources {
|
|||
"apiversion" to apiVersion,
|
||||
)
|
||||
inputs.properties(props)
|
||||
filesMatching("plugin.yml") {
|
||||
filesMatching("paper-plugin.yml") {
|
||||
expand(props)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package io.papermc.paper.testplugin;
|
||||
package io.papermc.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);
|
|
@ -0,0 +1,13 @@
|
|||
package io.papermc.testplugin;
|
||||
|
||||
import io.papermc.paper.plugin.bootstrap.PluginBootstrap;
|
||||
import io.papermc.paper.plugin.bootstrap.PluginProviderContext;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class TestPluginBootstrap implements PluginBootstrap {
|
||||
|
||||
@Override
|
||||
public void bootstrap(@NotNull PluginProviderContext context) {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package io.papermc.testplugin;
|
||||
|
||||
import io.papermc.paper.plugin.loader.PluginClasspathBuilder;
|
||||
import io.papermc.paper.plugin.loader.PluginLoader;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class TestPluginLoader implements PluginLoader {
|
||||
@Override
|
||||
public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) {
|
||||
}
|
||||
}
|
12
test-plugin/src/main/resources/paper-plugin.yml
Normal file
12
test-plugin/src/main/resources/paper-plugin.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
name: Paper-Test-Plugin
|
||||
version: ${version}
|
||||
main: io.papermc.testplugin.TestPlugin
|
||||
description: Paper Test Plugin
|
||||
author: PaperMC
|
||||
api-version: ${apiversion}
|
||||
load: STARTUP
|
||||
bootstrapper: io.papermc.testplugin.TestPluginBootstrap
|
||||
loader: io.papermc.testplugin.TestPluginLoader
|
||||
defaultPerm: FALSE
|
||||
permissions:
|
||||
dependencies:
|
|
@ -1,7 +0,0 @@
|
|||
name: Paper-Test-Plugin
|
||||
version: ${version}
|
||||
main: io.papermc.paper.testplugin.TestPlugin
|
||||
description: Paper Test Plugin
|
||||
author: PaperMC
|
||||
api-version: ${apiversion}
|
||||
load: STARTUP
|
Loading…
Add table
Add a link
Reference in a new issue