commit c89f3df7ca97f10ea68fbc79fad2422d360441cb Author: 502647092 Date: Sat Jun 4 18:39:05 2016 +0800 init: 初始化项目 Signed-off-by: 502647092 diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..67659a0 --- /dev/null +++ b/.classpath @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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..aa4ff7f --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + MiaoBoard + + + + + + 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..c866bee --- /dev/null +++ b/pom.xml @@ -0,0 +1,92 @@ + + 4.0.0 + pw.yumc + MiaoBoard + 1.0 + MiaoBoard + + ${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 + + + + + + + + Jenkins + http://ci.yumc.pw/job/${project.artifactId}/ + + + + + DEBUG + UTF-8 + + + + yumc-repo + http://repo.yumc.pw/content/groups/public/ + + + + + jtb + YUMC + http://repo.yumc.pw/content/repositories/yumcenter/ + + + + + org.spigotmc + spigot-api + jar + 1.9-R0.1-SNAPSHOT + + + cn.citycraft + PluginHelper + jar + 1.0 + + + \ No newline at end of file diff --git a/src/main/java/pw/yumc/MiaoBoard/MiaoBoard.java b/src/main/java/pw/yumc/MiaoBoard/MiaoBoard.java new file mode 100644 index 0000000..5eaabb9 --- /dev/null +++ b/src/main/java/pw/yumc/MiaoBoard/MiaoBoard.java @@ -0,0 +1,25 @@ +package pw.yumc.MiaoBoard; + +import org.bukkit.plugin.java.JavaPlugin; + +import cn.citycraft.PluginHelper.config.FileConfig; + +/** + * 喵式记分板主类 + * + * @since 2016年6月4日 上午9:08:13 + * @author 喵♂呜 + */ +public class MiaoBoard extends JavaPlugin { + private FileConfig config; + + @Override + public FileConfig getConfig() { + return config; + } + + @Override + public void onLoad() { + config = new FileConfig(this); + } +} diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml new file mode 100644 index 0000000..e69de29 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..a3a2870 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,18 @@ +name: ${project.artifactId} +description: ${project.description} +main: ${project.groupId}.${project.artifactId}.${project.artifactId} +version: ${project.version}-git-${env.GIT_COMMIT} +author: 喵♂呜 +website: ${ciManagement.url} +commands: + ${project.artifactId}: + description: ${project.artifactId} - ${project.description} + aliases: + - mb + usage: §b使用/${project.artifactId} help 查看帮助! + permission: ${project.artifactId}.reload + permission-message: §c你没有 的权限来执行此命令! +permissions: + ${project.artifactId}.reload: + description: 重新载入插件! + default: op \ No newline at end of file