Changing this project to be a template bukkit plugin project.
This commit is contained in:
		| @@ -1,8 +0,0 @@ | |||||||
| { |  | ||||||
| 	"folders": [ |  | ||||||
| 		{ |  | ||||||
| 			"path": "." |  | ||||||
| 		} |  | ||||||
| 	], |  | ||||||
| 	"settings": {} |  | ||||||
| } |  | ||||||
							
								
								
									
										48
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -1,18 +1,52 @@ | |||||||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||||
|   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||||||
|   <modelVersion>4.0.0</modelVersion> |   <modelVersion>4.0.0</modelVersion> | ||||||
|   <groupId>ca.recrown.minecraftdiscordtether</groupId> |   <groupId>ca.recrown.PLUGINNAME</groupId> | ||||||
|   <artifactId>minecraftdiscordtether</artifactId> |   <artifactId>PLUGINNAME</artifactId> | ||||||
|   <packaging>jar</packaging> |   <packaging>jar</packaging> | ||||||
|   <version>1.0.0</version> |   <version>1.0.0</version> | ||||||
|   <name>minecraftdiscordtether</name> |   <name>PLUGINNAME</name> | ||||||
|   <url>http://maven.apache.org</url> |   <url>http://maven.apache.org</url> | ||||||
|  |   <repositories> | ||||||
|  |     <repository> | ||||||
|  |       <id>papermc</id> | ||||||
|  |       <url>https://papermc.io/repo/repository/maven-public/</url> | ||||||
|  |   </repository> | ||||||
|  |   </repositories> | ||||||
|   <dependencies> |   <dependencies> | ||||||
|     <dependency> |     <dependency> | ||||||
|       <groupId>junit</groupId> |       <groupId>org.junit.jupiter</groupId> | ||||||
|       <artifactId>junit</artifactId> |       <artifactId>junit-jupiter-engine</artifactId> | ||||||
|       <version>3.8.1</version> |       <version>5.6.2</version> | ||||||
|       <scope>test</scope> |       <scope>test</scope> | ||||||
|     </dependency> |     </dependency> | ||||||
|  |     <dependency> | ||||||
|  |       <groupId>com.destroystokyo.paper</groupId> | ||||||
|  |       <artifactId>paper-api</artifactId> | ||||||
|  |       <version>1.15.2-R0.1-SNAPSHOT</version> | ||||||
|  |       <scope>provided</scope> | ||||||
|  |    </dependency> | ||||||
|   </dependencies> |   </dependencies> | ||||||
| </project> |   <build> | ||||||
|  |     <plugins> | ||||||
|  |       <plugin> | ||||||
|  |         <artifactId>maven-compiler-plugin</artifactId> | ||||||
|  |         <version>3.6.0</version> | ||||||
|  |         <configuration> | ||||||
|  |           <source>11</source> | ||||||
|  |           <target>11</target> | ||||||
|  |         </configuration> | ||||||
|  |       </plugin> | ||||||
|  |       <plugin> | ||||||
|  |         <artifactId>maven-surefire-plugin</artifactId> | ||||||
|  |         <version>2.22.2</version> | ||||||
|  |       </plugin> | ||||||
|  |     </plugins> | ||||||
|  |   </build> | ||||||
|  |   <properties> | ||||||
|  |     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||||
|  |     <maven.compiler.source>11</maven.compiler.source> | ||||||
|  |     <maven.compiler.target>11</maven.compiler.target> | ||||||
|  |     <maven.compiler.release>11</maven.compiler.release> | ||||||
|  |   </properties> | ||||||
|  | </project> | ||||||
							
								
								
									
										9
									
								
								src/main/java/ca/recrown/PACKAGENAME/App.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/main/java/ca/recrown/PACKAGENAME/App.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | |||||||
|  | package ca.recrown.PACKAGENAME; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * Hello world! | ||||||
|  |  * | ||||||
|  |  */ | ||||||
|  | public class App | ||||||
|  | { | ||||||
|  | } | ||||||
| @@ -1,13 +0,0 @@ | |||||||
| package ca.recrown.minecraftdiscordtether; |  | ||||||
|  |  | ||||||
| /** |  | ||||||
|  * Hello world! |  | ||||||
|  * |  | ||||||
|  */ |  | ||||||
| public class App  |  | ||||||
| { |  | ||||||
|     public static void main( String[] args ) |  | ||||||
|     { |  | ||||||
|         System.out.println( "Hello World!" ); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
							
								
								
									
										8
									
								
								src/main/resources/plugin.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/main/resources/plugin.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||||
| @@ -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 ); |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @@ -1,4 +1,4 @@ | |||||||
| write-Output "Deleting previous world if there was one..." | write-Output "Deleting previous world if there was one..." | ||||||
| remove-Item -Recurse world -Force -ErrorAction Ignore | remove-Item -Recurse world -Force -ErrorAction Ignore | ||||||
| write-Output "Attempting to copy plugin jar to plugins folder..." | 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" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user