From 61012954503c1cc40c609d046dcdedd9c079cfed Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 29 Jan 2016 20:55:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E6=AC=A1=E6=8F=90=E4=BA=A4...?= 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 +++++++++++++++++++ .../citycraft/VbariableAPI/VariableHook.java | 14 +++ .../VbariableAPI/VariableReplaceEvent.java | 27 ++++++ .../citycraft/VbariableAPI/VbariableAPI.java | 14 +++ 7 files changed, 232 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/VbariableAPI/VariableHook.java create mode 100644 src/main/java/cn/citycraft/VbariableAPI/VariableReplaceEvent.java create mode 100644 src/main/java/cn/citycraft/VbariableAPI/VbariableAPI.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..7876f5f --- /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..428541e --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + VbariableAPI + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.jdt.core.javanature + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..7bbb532 --- /dev/null +++ b/pom.xml @@ -0,0 +1,85 @@ + + 4.0.0 + cn.citycraft + VbariableAPI + 1.0 + VbariableAPI + + ${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 + + + 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/VbariableAPI/VariableHook.java b/src/main/java/cn/citycraft/VbariableAPI/VariableHook.java new file mode 100644 index 0000000..85dcac5 --- /dev/null +++ b/src/main/java/cn/citycraft/VbariableAPI/VariableHook.java @@ -0,0 +1,14 @@ +/** + * + */ +package cn.citycraft.VbariableAPI; + +/** + * 变量Hook处理类 + * + * @since 2016年1月29日 上午9:49:04 + * @author 喵♂呜 + */ +public interface VariableHook { + public String onVariableReplace(); +} diff --git a/src/main/java/cn/citycraft/VbariableAPI/VariableReplaceEvent.java b/src/main/java/cn/citycraft/VbariableAPI/VariableReplaceEvent.java new file mode 100644 index 0000000..dc7cf63 --- /dev/null +++ b/src/main/java/cn/citycraft/VbariableAPI/VariableReplaceEvent.java @@ -0,0 +1,27 @@ +/** + * + */ +package cn.citycraft.VbariableAPI; + +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; + +/** + * + * @since 2016年1月29日 上午10:35:20 + * @author 喵♂呜 + */ +public class VariableReplaceEvent extends Event { + + private static final HandlerList handlers = new HandlerList(); + + public static HandlerList getHandlerList() { + return handlers; + } + + @Override + public HandlerList getHandlers() { + return handlers; + } + +} diff --git a/src/main/java/cn/citycraft/VbariableAPI/VbariableAPI.java b/src/main/java/cn/citycraft/VbariableAPI/VbariableAPI.java new file mode 100644 index 0000000..4395c17 --- /dev/null +++ b/src/main/java/cn/citycraft/VbariableAPI/VbariableAPI.java @@ -0,0 +1,14 @@ +/** + * + */ +package cn.citycraft.VbariableAPI; + +/** + * VbariableAPI核心 + * + * @since 2016年1月29日 上午9:25:31 + * @author 喵♂呜 + */ +public class VbariableAPI { + +}