Skip to content

Commit 3e0b869

Browse files
committed
1.0.0
1 parent be1be2b commit 3e0b869

30 files changed

+4971
-0
lines changed

.circleci/config.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/openjdk:8-jdk-stretch
7+
8+
steps:
9+
- checkout
10+
11+
- restore_cache:
12+
keys:
13+
- v1-dependencies-{{ checksum "pom.xml" }}
14+
15+
- run:
16+
command: |
17+
mvn dependency:go-offline
18+
mvn clean package
19+
mkdir artifact
20+
cp target/*.jar artifact
21+
- save_cache:
22+
paths:
23+
- ~/.m2
24+
key: v1-dependencies-{{ checksum "pom.xml" }}
25+
26+
- store_artifacts:
27+
path: artifact

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
*.java text=auto eol=lf

.github/workflows/maven.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Java CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
12+
- name: Set up JDK 1.8
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 1.8
16+
17+
- name: Cache dependencies
18+
uses: actions/cache@v1
19+
with:
20+
path: ~/.m2/repository
21+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
22+
restore-keys: |
23+
${{ runner.os }}-maven-
24+
- name: Build with Maven
25+
run: mvn clean package
26+
27+
- name: Copy artifacts
28+
run: |
29+
mkdir artifact
30+
cp target/*.jar artifact
31+
- name: Archive artifacts
32+
uses: actions/upload-artifact@v1
33+
with:
34+
name: artifacts
35+
path: artifact

.gitignore

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

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: java
2+
3+
jdk:
4+
- openjdk8
5+
6+
install:
7+
- mvn clean package
8+
9+
cache:
10+
directories:
11+
- '$HOME/.m2/repository'

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Stronghold Populator
2+
[![Nukkit](https://img.shields.io/badge/Nukkit-1.0-green)](https://github.com/NukkitX/Nukkit)
3+
[![Build](https://img.shields.io/circleci/build/github/wode490390/StrongholdPopulator/master)](https://circleci.com/gh/wode490390/StrongholdPopulator/tree/master)
4+
[![Release](https://img.shields.io/github/v/release/wode490390/StrongholdPopulator)](https://github.com/wode490390/StrongholdPopulator/releases)
5+
[![Release date](https://img.shields.io/github/release-date/wode490390/StrongholdPopulator)](https://github.com/wode490390/StrongholdPopulator/releases)
6+
<!--[![MCBBS](https://img.shields.io/badge/-mcbbs-inactive)](https://www.mcbbs.net/thread-1056343-1-1.html "要塞生成器")
7+
[![Servers](https://img.shields.io/bstats/servers/7725)](https://bstats.org/plugin/bukkit/StrongholdPopulator/7725)
8+
[![Players](https://img.shields.io/bstats/players/7725)](https://bstats.org/plugin/bukkit/StrongholdPopulator/7725)-->
9+
10+
This is a plugin that implements the [stronghold](https://minecraft.gamepedia.com/Stronghold) feature for Nukkit servers.
11+
12+
![](https://i.loli.net/2020/06/03/JFinuNWUrk5v4HP.png)
13+
14+
If you found any bugs or have any suggestions, please open an issue on [GitHub Issues](https://github.com/wode490390/StrongholdPopulator/issues).
15+
16+
If you like this plugin, please star it on [GitHub](https://github.com/wode490390/StrongholdPopulator).
17+
18+
## Download
19+
- [Releases](https://github.com/wode490390/StrongholdPopulator/releases)
20+
- [Snapshots](https://circleci.com/gh/wode490390/StrongholdPopulator)
21+
22+
## Compiling
23+
1. Install [Maven](https://maven.apache.org/).
24+
2. Run `mvn clean package`. The compiled JAR can be found in the `target/` directory.
25+
26+
## Metrics Collection
27+
28+
This plugin uses [bStats](https://github.com/wode490390/bStats-Nukkit). You can opt out using the global bStats config; see the [official website](https://bstats.org/getting-started) for more details.
29+
30+
<!--[![Metrics](https://bstats.org/signatures/bukkit/StrongholdPopulator.svg)](https://bstats.org/plugin/bukkit/StrongholdPopulator/7725)-->
31+
32+
###### If I have any grammar and/or term errors, please correct them :)

0 commit comments

Comments
 (0)