From 86d63bfee5e632c5253bd7f1ec3d2da09235c7b0 Mon Sep 17 00:00:00 2001 From: Harrison Date: Sat, 18 Apr 2020 00:08:05 -0500 Subject: [PATCH] Created template bukkit plugin. Generated using maven. --- .gitignore | 123 ++++++++++++++++++ .vscode/settings.json | 3 + plugin.yml | 6 + pom.xml | 45 +++++++ .../IslandSurvivalCraftPlugin.java | 21 +++ .../recrown/islandsurvivalcraft/AppTest.java | 38 ++++++ 6 files changed, 236 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 plugin.yml create mode 100644 pom.xml create mode 100644 src/main/java/ca/recrown/islandsurvivalcraft/IslandSurvivalCraftPlugin.java create mode 100644 src/test/java/ca/recrown/islandsurvivalcraft/AppTest.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e031b20 --- /dev/null +++ b/.gitignore @@ -0,0 +1,123 @@ + +# Created by https://www.gitignore.io/api/java,maven,eclipse,visualstudiocode +# Edit at https://www.gitignore.io/?templates=java,maven,eclipse,visualstudiocode + +### Eclipse ### +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +### Eclipse Patch ### +# Eclipse Core +.project + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Annotation Processing +.apt_generated + +.sts4-cache/ + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +### Maven ### +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +.mvn/wrapper/maven-wrapper.jar +.flattened-pom.xml + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history + +# End of https://www.gitignore.io/api/java,maven,eclipse,visualstudiocode \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e0f15db --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic" +} \ No newline at end of file diff --git a/plugin.yml b/plugin.yml new file mode 100644 index 0000000..33d73c6 --- /dev/null +++ b/plugin.yml @@ -0,0 +1,6 @@ +name: IslandSurvivalCraft +main: ca.recrown.IslandSurvivalCraft +version: 1.0.0 +description: Adds the gamemode IslandSurvivalCraft. +commands: +depend: [WorldGuard] \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..64c93cf --- /dev/null +++ b/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + ca.recrown.islandsurvivalcraft + IslandSurvivalCraft + jar + 1.0.0 + IslandSurvivalCraft + http://maven.apache.org + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + sk89q-repo + https://maven.enginehub.org/repo/ + + + + + junit + junit + 3.8.1 + test + + + org.spigotmc + spigot-api + 1.15.2-R0.1-SNAPSHOT + provided + + + com.sk89q.worldguard + worldguard-bukkit + 7.0.2 + provided + + + + UTF-8 + 8 + 8 + + \ No newline at end of file diff --git a/src/main/java/ca/recrown/islandsurvivalcraft/IslandSurvivalCraftPlugin.java b/src/main/java/ca/recrown/islandsurvivalcraft/IslandSurvivalCraftPlugin.java new file mode 100644 index 0000000..4a3fe77 --- /dev/null +++ b/src/main/java/ca/recrown/islandsurvivalcraft/IslandSurvivalCraftPlugin.java @@ -0,0 +1,21 @@ +package ca.recrown.islandsurvivalcraft; + +import org.bukkit.plugin.java.JavaPlugin; + +/** + * Hello world! + * + */ +public class IslandSurvivalCraftPlugin extends JavaPlugin { + @Override + public void onEnable() { + // TODO Auto-generated method stub + super.onEnable(); + } + + @Override + public void onDisable() { + // TODO Auto-generated method stub + super.onDisable(); + } +} diff --git a/src/test/java/ca/recrown/islandsurvivalcraft/AppTest.java b/src/test/java/ca/recrown/islandsurvivalcraft/AppTest.java new file mode 100644 index 0000000..abec6b8 --- /dev/null +++ b/src/test/java/ca/recrown/islandsurvivalcraft/AppTest.java @@ -0,0 +1,38 @@ +package ca.recrown.islandsurvivalcraft; + +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 ); + } +}