From bace9ccf0ba5c71562336b41a5abbbede5bfa9eb Mon Sep 17 00:00:00 2001 From: Harrison Date: Fri, 24 Apr 2020 16:08:37 -0500 Subject: [PATCH] Changing this project to be a template bukkit plugin project. --- minecraftdiscordtether.code-workspace | 8 ---- pom.xml | 48 ++++++++++++++++--- src/main/java/ca/recrown/PACKAGENAME/App.java | 9 ++++ .../recrown/minecraftdiscordtether/App.java | 13 ----- src/main/resources/plugin.yml | 8 ++++ .../minecraftdiscordtether/AppTest.java | 38 --------------- test-server/load_latest_build.ps1 | 2 +- 7 files changed, 59 insertions(+), 67 deletions(-) delete mode 100644 minecraftdiscordtether.code-workspace create mode 100644 src/main/java/ca/recrown/PACKAGENAME/App.java delete mode 100644 src/main/java/ca/recrown/minecraftdiscordtether/App.java create mode 100644 src/main/resources/plugin.yml delete mode 100644 src/test/java/ca/recrown/minecraftdiscordtether/AppTest.java diff --git a/minecraftdiscordtether.code-workspace b/minecraftdiscordtether.code-workspace deleted file mode 100644 index 876a149..0000000 --- a/minecraftdiscordtether.code-workspace +++ /dev/null @@ -1,8 +0,0 @@ -{ - "folders": [ - { - "path": "." - } - ], - "settings": {} -} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0b9bc1d..11cb116 100644 --- a/pom.xml +++ b/pom.xml @@ -1,18 +1,52 @@ 4.0.0 - ca.recrown.minecraftdiscordtether - minecraftdiscordtether + ca.recrown.PLUGINNAME + PLUGINNAME jar 1.0.0 - minecraftdiscordtether + PLUGINNAME http://maven.apache.org + + + papermc + https://papermc.io/repo/repository/maven-public/ + + - junit - junit - 3.8.1 + org.junit.jupiter + junit-jupiter-engine + 5.6.2 test + + com.destroystokyo.paper + paper-api + 1.15.2-R0.1-SNAPSHOT + provided + - + + + + maven-compiler-plugin + 3.6.0 + + 11 + 11 + + + + maven-surefire-plugin + 2.22.2 + + + + + UTF-8 + 11 + 11 + 11 + + \ No newline at end of file diff --git a/src/main/java/ca/recrown/PACKAGENAME/App.java b/src/main/java/ca/recrown/PACKAGENAME/App.java new file mode 100644 index 0000000..3d3b95a --- /dev/null +++ b/src/main/java/ca/recrown/PACKAGENAME/App.java @@ -0,0 +1,9 @@ +package ca.recrown.PACKAGENAME; + +/** + * Hello world! + * + */ +public class App +{ +} diff --git a/src/main/java/ca/recrown/minecraftdiscordtether/App.java b/src/main/java/ca/recrown/minecraftdiscordtether/App.java deleted file mode 100644 index 6e8daa7..0000000 --- a/src/main/java/ca/recrown/minecraftdiscordtether/App.java +++ /dev/null @@ -1,13 +0,0 @@ -package ca.recrown.minecraftdiscordtether; - -/** - * Hello world! - * - */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } -} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..d4b346f --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,8 @@ +name: PLUGINNAME +main: ca.recrown.PACKAGENAME.PLUGINNAME +version: 1.0.0 +description: DESCRIPTION. +commands: +depend: [] +load: startup +api-version: 1.15 \ No newline at end of file diff --git a/src/test/java/ca/recrown/minecraftdiscordtether/AppTest.java b/src/test/java/ca/recrown/minecraftdiscordtether/AppTest.java deleted file mode 100644 index 208ff05..0000000 --- a/src/test/java/ca/recrown/minecraftdiscordtether/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package ca.recrown.minecraftdiscordtether; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/test-server/load_latest_build.ps1 b/test-server/load_latest_build.ps1 index 5d207d1..3af6fe3 100644 --- a/test-server/load_latest_build.ps1 +++ b/test-server/load_latest_build.ps1 @@ -1,4 +1,4 @@ write-Output "Deleting previous world if there was one..." remove-Item -Recurse world -Force -ErrorAction Ignore write-Output "Attempting to copy plugin jar to plugins folder..." -copy-Item -Path "..\target\MinecraftDiscordTether*.jar" -Destination "plugins\MinecraftDiscordTether.jar" +copy-Item -Path "..\target\PLUGINNAME*.jar" -Destination "plugins\PLUGINNAME.jar"