-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically added to development server
- Loading branch information
Showing
5 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
group = "dev.booky" | ||
version = "1.0.0" | ||
|
||
repositories { | ||
maven("https://libraries.minecraft.net/") | ||
} | ||
|
||
dependencies { | ||
implementation(project(":CloudPlane-API")) | ||
} | ||
|
||
tasks.processResources { | ||
val properties = mapOf( | ||
"version" to project.version, | ||
"api_version" to rootProject.providers.gradleProperty("mcVersion").get() | ||
.split(".", "-").take(2).joinToString(".") | ||
) | ||
|
||
inputs.properties(properties) | ||
filesMatching("paper-plugin.yml") { | ||
expand(properties) | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
test-plugin/src/main/java/dev/booky/cloudplane/testplugin/TestBootstrap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.booky.cloudplane.testplugin; | ||
|
||
import io.papermc.paper.plugin.bootstrap.BootstrapContext; | ||
import io.papermc.paper.plugin.bootstrap.PluginBootstrap; | ||
import io.papermc.paper.plugin.bootstrap.PluginProviderContext; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class TestBootstrap implements PluginBootstrap { | ||
|
||
@Override | ||
public void bootstrap(@NotNull BootstrapContext context) { | ||
} | ||
|
||
@Override | ||
public @NotNull JavaPlugin createPlugin(@NotNull PluginProviderContext context) { | ||
return new TestPlugin(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test-plugin/src/main/java/dev/booky/cloudplane/testplugin/TestLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package dev.booky.cloudplane.testplugin; | ||
|
||
import io.papermc.paper.plugin.loader.PluginClasspathBuilder; | ||
import io.papermc.paper.plugin.loader.PluginLoader; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class TestLoader implements PluginLoader { | ||
|
||
@Override | ||
public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) { | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
test-plugin/src/main/java/dev/booky/cloudplane/testplugin/TestPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package dev.booky.cloudplane.testplugin; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.event.Listener; | ||
import org.bukkit.plugin.java.JavaPlugin; | ||
|
||
public class TestPlugin extends JavaPlugin implements Listener { | ||
|
||
@Override | ||
public void onEnable() { | ||
Bukkit.getPluginManager().registerEvents(this, this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: CloudPlane-Test-Plugin | ||
version: ${version} | ||
main: dev.booky.cloudplane.testplugin.TestPlugin | ||
description: CloudPlane Test Plugin | ||
author: booky10 | ||
api-version: '${api_version}' | ||
load: STARTUP | ||
bootstrapper: dev.booky.cloudplane.testplugin.TestBootstrap | ||
loader: dev.booky.cloudplane.testplugin.TestLoader | ||
defaultPerm: FALSE | ||
permissions: | ||
dependencies: |