Skip to content

Commit 173c2f0

Browse files
committed
feat: 允许使用配置文件控制插件的生效范围与生效形式
chore: 将逆向后的产物转为Java项目的形式进行管理 chore: 新增配置文件 docs(README): 初始化README
1 parent f9ef3f7 commit 173c2f0

13 files changed

+774
-22
lines changed

.gitignore

+215
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
2+
# Created by https://www.gitignore.io/api/java,maven,eclipse,intellij+iml
3+
# Edit at https://www.gitignore.io/?templates=java,maven,eclipse,intellij+iml
4+
5+
### Eclipse ###
6+
.metadata
7+
bin/
8+
tmp/
9+
*.tmp
10+
*.bak
11+
*.swp
12+
*~.nib
13+
local.properties
14+
.settings/
15+
.loadpath
16+
.recommenders
17+
18+
# External tool builders
19+
.externalToolBuilders/
20+
21+
# Locally stored "Eclipse launch configurations"
22+
*.launch
23+
24+
# PyDev specific (Python IDE for Eclipse)
25+
*.pydevproject
26+
27+
# CDT-specific (C/C++ Development Tooling)
28+
.cproject
29+
30+
# CDT- autotools
31+
.autotools
32+
33+
# Java annotation processor (APT)
34+
.factorypath
35+
36+
# PDT-specific (PHP Development Tools)
37+
.buildpath
38+
39+
# sbteclipse plugin
40+
.target
41+
42+
# Tern plugin
43+
.tern-project
44+
45+
# TeXlipse plugin
46+
.texlipse
47+
48+
# STS (Spring Tool Suite)
49+
.springBeans
50+
51+
# Code Recommenders
52+
.recommenders/
53+
54+
# Annotation Processing
55+
.apt_generated/
56+
57+
# Scala IDE specific (Scala & Java development for Eclipse)
58+
.cache-main
59+
.scala_dependencies
60+
.worksheet
61+
62+
### Eclipse Patch ###
63+
# Eclipse Core
64+
.project
65+
66+
# JDT-specific (Eclipse Java Development Tools)
67+
.classpath
68+
69+
# Annotation Processing
70+
.apt_generated
71+
72+
.sts4-cache/
73+
74+
### Intellij+iml ###
75+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
76+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
77+
78+
# User-specific stuff
79+
.idea/**/workspace.xml
80+
.idea/**/tasks.xml
81+
.idea/**/usage.statistics.xml
82+
.idea/**/dictionaries
83+
.idea/**/shelf
84+
85+
# Generated files
86+
.idea/**/contentModel.xml
87+
88+
# Sensitive or high-churn files
89+
.idea/**/dataSources/
90+
.idea/**/dataSources.ids
91+
.idea/**/dataSources.local.xml
92+
.idea/**/sqlDataSources.xml
93+
.idea/**/dynamic.xml
94+
.idea/**/uiDesigner.xml
95+
.idea/**/dbnavigator.xml
96+
97+
# Gradle
98+
.idea/**/gradle.xml
99+
.idea/**/libraries
100+
101+
# Gradle and Maven with auto-import
102+
# When using Gradle or Maven with auto-import, you should exclude module files,
103+
# since they will be recreated, and may cause churn. Uncomment if using
104+
# auto-import.
105+
# .idea/modules.xml
106+
# .idea/*.iml
107+
# .idea/modules
108+
# *.iml
109+
# *.ipr
110+
111+
# CMake
112+
cmake-build-*/
113+
114+
# Mongo Explorer plugin
115+
.idea/**/mongoSettings.xml
116+
117+
# File-based project format
118+
*.iws
119+
120+
# IntelliJ
121+
out/
122+
123+
# IntelliJ IDEA fix
124+
.idea
125+
126+
# mpeltonen/sbt-idea plugin
127+
.idea_modules/
128+
129+
# JIRA plugin
130+
atlassian-ide-plugin.xml
131+
132+
# Cursive Clojure plugin
133+
.idea/replstate.xml
134+
135+
# Crashlytics plugin (for Android Studio and IntelliJ)
136+
com_crashlytics_export_strings.xml
137+
crashlytics.properties
138+
crashlytics-build.properties
139+
fabric.properties
140+
141+
# Editor-based Rest Client
142+
.idea/httpRequests
143+
144+
# Android studio 3.1+ serialized cache file
145+
.idea/caches/build_file_checksums.ser
146+
147+
### Intellij+iml Patch ###
148+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
149+
150+
*.iml
151+
modules.xml
152+
.idea/misc.xml
153+
*.ipr
154+
155+
### Java ###
156+
# Compiled class file
157+
*.class
158+
159+
# Log file
160+
*.log
161+
162+
# BlueJ files
163+
*.ctxt
164+
165+
# Mobile Tools for Java (J2ME)
166+
.mtj.tmp/
167+
168+
# Package Files #
169+
*.jar
170+
*.war
171+
*.nar
172+
*.ear
173+
*.zip
174+
*.tar.gz
175+
*.rar
176+
177+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
178+
hs_err_pid*
179+
180+
### Maven ###
181+
target/
182+
pom.xml.tag
183+
pom.xml.releaseBackup
184+
pom.xml.versionsBackup
185+
pom.xml.next
186+
release.properties
187+
dependency-reduced-pom.xml
188+
buildNumber.properties
189+
.mvn/timing.properties
190+
.mvn/wrapper/maven-wrapper.jar
191+
.flattened-pom.xml
192+
193+
### Ant ###
194+
build.xml
195+
196+
### Git ###
197+
# Created by git for backups. To disable backups in Git:
198+
# $ git config --global mergetool.keepBackup false
199+
*.orig
200+
201+
# Created by git when using merge tools for conflicts
202+
*.BACKUP.*
203+
*.BASE.*
204+
*.LOCAL.*
205+
*.REMOTE.*
206+
*_BACKUP_*.txt
207+
*_BASE_*.txt
208+
*_LOCAL_*.txt
209+
*_REMOTE_*.txt
210+
211+
### Github ###
212+
.github
213+
LICENSE
214+
215+
# End of https://www.gitignore.io/api/java,maven,eclipse,intellij+iml,git

README.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# AntiExplosion
2+
3+
这是一个Minecraft防爆插件, 允许保留爆炸伤害的同时阻止破坏方块
4+
5+
## 目录
6+
7+
- [AntiExplosion](#antiexplosion)
8+
- [目录](#目录)
9+
- [说明](#说明)
10+
- [项目背景](#项目背景)
11+
- [我们修改了什么?](#我们修改了什么)
12+
- [相关仓库与引用](#相关仓库与引用)
13+
- [贡献者](#贡献者)
14+
- [如何贡献](#如何贡献)
15+
- [特别鸣谢](#特别鸣谢)
16+
- [展望未来](#展望未来)
17+
18+
## 说明
19+
20+
### 项目背景
21+
22+
该项目fork自由 Sanityko 与 RaycusMX 开发的爆炸保护模组, 该项目由 MCZLF 团队在原项目的基础上进行了一些修改与拓展以适应本服的需求.
23+
24+
本项目的初始源代码是在由 Sanityko 授权后逆向而来, 可能初代构建物会与原项目发行的二进制文件hash有所不同, 但行为我们确保是一致的.
25+
26+
点击查看[原始插件发布页](https://www.mcbbs.net/forum.php?mod=viewthread&tid=501794 "点击查看")
27+
28+
## 我们修改了什么?
29+
30+
- 允许使用配置文件控制插件的生效范围与生效形式
31+
- 新增了配置文件, 允许自由的打开或关闭相关功能
32+
- 允许控制爆炸保护的范围, 允许设置某区域中本插件的行为
33+
34+
## 相关仓库与引用
35+
36+
- [bukkit](https://dev.bukkit.org) - 一个优秀的支持插件的Minecraft服务端
37+
- [原始插件发布页](https://www.mcbbs.net/forum.php?mod=viewthread&tid=501794 "点击查看") - 本项目的原始发布地址
38+
39+
## 贡献者
40+
41+
[![Contributors](https://contrib.rocks/image?repo=MCZLF/plugin-AntiExplosion)](https://github.com/MCZLF/plugin-AntiExplosion/graphs/contributors)
42+
43+
### 如何贡献
44+
45+
非常欢迎你的加入![提一个 Issue](https://github.com/MCZLF/plugin-AntiExplosion/issues/new) 或者提交一个 Pull Request。
46+
47+
标准 Readme 遵循 [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) 行为规范。
48+
49+
### 特别鸣谢
50+
51+
感谢[Sanityko](https://www.mcbbs.net/?577462)[RaycusMX](https://www.mcbbs.net/?681175) 编写了本插件的第一个版本
52+
53+
## 展望未来
54+
55+
- [ ] 优化爆炸点搜索算法

net/saralab/AntiExplosion.java

-18
This file was deleted.

plugin.yml

-4
This file was deleted.

pom.xml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>net.saralab.AntiExplosion</groupId>
8+
<artifactId>antiexplosion</artifactId>
9+
<version>1.0.2</version>
10+
<packaging>jar</packaging>
11+
12+
<name>AntiExplosion</name>
13+
14+
<properties>
15+
<java.version>1.8</java.version>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
</properties>
18+
<url>https://github.com/MCZLF/plugin-AntiExplosion/</url>
19+
20+
<build>
21+
<defaultGoal>clean package</defaultGoal>
22+
<plugins>
23+
<plugin>
24+
<groupId>org.apache.maven.plugins</groupId>
25+
<artifactId>maven-compiler-plugin</artifactId>
26+
<version>3.7.0</version>
27+
<configuration>
28+
<source>${java.version}</source>
29+
<target>${java.version}</target>
30+
</configuration>
31+
</plugin>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-shade-plugin</artifactId>
35+
<version>3.1.0</version>
36+
<executions>
37+
<execution>
38+
<phase>package</phase>
39+
<goals>
40+
<goal>shade</goal>
41+
</goals>
42+
<configuration>
43+
<createDependencyReducedPom>false</createDependencyReducedPom>
44+
</configuration>
45+
</execution>
46+
</executions>
47+
</plugin>
48+
</plugins>
49+
<resources>
50+
<resource>
51+
<directory>src/resources</directory>
52+
<filtering>true</filtering>
53+
</resource>
54+
</resources>
55+
</build>
56+
57+
<repositories>
58+
<repository>
59+
<id>spigotmc-repo</id>
60+
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
61+
</repository>
62+
<repository>
63+
<id>sonatype</id>
64+
<url>https://oss.sonatype.org/content/groups/public/</url>
65+
</repository>
66+
</repositories>
67+
68+
<dependencies>
69+
<dependency>
70+
<groupId>org.spigotmc</groupId>
71+
<artifactId>spigot-api</artifactId>
72+
<version>1.8.8-R0.1-SNAPSHOT</version>
73+
<scope>provided</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.projectlombok</groupId>
77+
<artifactId>lombok</artifactId>
78+
<version>1.18.22</version>
79+
<scope>compile</scope>
80+
</dependency>
81+
</dependencies>
82+
</project>

0 commit comments

Comments
 (0)