From d545b09f5f5bd3fb61490f189b76fbb3d5130164 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sat, 28 Nov 2015 18:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=8F=90=E4=BA=A4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .classpath | 31 +++++++ .gitignore | 38 +++++++++ .project | 23 +++++ pom.xml | 85 +++++++++++++++++++ .../cn/citycraft/DataStorage/DataStorage.java | 25 ++++++ 5 files changed, 202 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project create mode 100644 pom.xml create mode 100644 src/main/java/cn/citycraft/DataStorage/DataStorage.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..bea39b1 --- /dev/null +++ b/.classpath @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..043fc2a --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# Eclipse stuff +/.settings + +# netbeans +/nbproject + +# we use maven! +/build.xml + +# maven +/target +/repo + +# vim +.*.sw[a-p] + +# various other potential build files +/build +/bin +/dist +/manifest.mf + +/world + +# Mac filesystem dust +*.DS_Store + +# intellij +*.iml +*.ipr +*.iws +.idea/ + +# Project Stuff +/src/main/resources/Soulbound + +# Atlassian Stuff +/atlassian-ide-plugin.xml \ No newline at end of file diff --git a/.project b/.project new file mode 100644 index 0000000..27333f3 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + DataStorage + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8d382c5 --- /dev/null +++ b/pom.xml @@ -0,0 +1,85 @@ + + 4.0.0 + cn.citycraft + DataStorage + 1.0 + DataStorage + + ${project.name} + + + src/main/resources + true + + + + + maven-compiler-plugin + 3.1 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-shade-plugin + 2.3 + + false + true + + + cn.citycraft:PluginHelper + + + + + cn.citycraft.PluginHelper + ${project.groupId}.${project.artifactId} + + + + + + package + + shade + + + + + + + + http://ci.citycraft.cn:8080 + + 1 + UTF-8 + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/groups/public/ + + + citycraft-repo + ${jenkins.url}/plugin/repository/everything/ + + + + + org.spigotmc + spigot-api + jar + 1.8.8-R0.1-SNAPSHOT + + + cn.citycraft + PluginHelper + jar + 1.0 + + + \ No newline at end of file diff --git a/src/main/java/cn/citycraft/DataStorage/DataStorage.java b/src/main/java/cn/citycraft/DataStorage/DataStorage.java new file mode 100644 index 0000000..c8fd019 --- /dev/null +++ b/src/main/java/cn/citycraft/DataStorage/DataStorage.java @@ -0,0 +1,25 @@ +package cn.citycraft.DataStorage; + +import org.bukkit.plugin.java.JavaPlugin; + +import cn.citycraft.PluginHelper.config.FileConfig; +import cn.citycraft.PluginHelper.sql.DataBase; + +public class DataStorage extends JavaPlugin { + FileConfig config; + DataBase db; + + @Override + public void onDisable() { + } + + @Override + public void onEnable() { + + } + + @Override + public void onLoad() { + config = new FileConfig(this); + } +}