diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..9f97e26
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,68 @@
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+ - name: Upload a Build Artifact
+ uses: actions/upload-artifact@v2
+ with:
+ # Artifact name
+ name: Jar_Snapshot_Build # optional
+ # A file, directory or wildcard pattern that describes what to upload
+ path: target/scoreboard-*.jar
+ - name: Upload to Repo
+ run: |
+ echo "Deploying to the Github..."
+ git clone --depth=1 https://${{ secrets.REPO_KEY }}@github.com/jingwenMC/MavenRepo.git /home/runner/MavenRepo
+ mvn deploy -DaltDeploymentRepository=maven-repo::default::file:/home/runner/MavenRepo
+ git config --global user.email "actions@github.com"
+ git config --global user.name "Github Actions User"
+ cd /home/runner/MavenRepo
+ git add .
+ echo "Committing..."
+ git commit -m "Auto update by Github Actions"
+ echo "Pushing..."
+ git push --force
+ - name: Auto Release
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
+ with:
+ tag_name: build-${{ github.run_number }}
+ release_name: ScoreboardLib Snapshot Build ${{ github.run_number }}
+ body: |
+ 提交代码自动发布的Release
+ 构建编号: build-${{ github.run_number }}
+ draft: false
+ prerelease: true
+ - name: Create zip Asset
+ run: |
+ zip -v Released_File_Build_${{ github.run_number }}.zip ./target/*.jar
+ - name: Upload Release Asset
+ id: upload-release-asset
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./Released_File_Build_${{ github.run_number }}.zip
+ asset_name: Released_File_Build_${{ github.run_number }}.zip
+ asset_content_type: application/zip
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index f579132..fd019c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
-.idea/
-output/
-target/
-ScoreboardLib.iml
\ No newline at end of file
+.idea/**
+output/**
+target/**
+/scoreboard.iml
diff --git a/README.md b/README.md
index 0a254e7..021b952 100644
--- a/README.md
+++ b/README.md
@@ -26,15 +26,17 @@ How do I add it to my project?
--------------
Simply add the following to your `pom.xml`.
-
- tiger-repo
- http://repo.tigerhix.me/content/repositories/snapshots/
-
+
+
+ jingwenmc-repo
+ https://raw.githubusercontent.com/jingwenMC/MavenRepo/master
+
+
- me.tigerhix.lib
- scoreboard
- 1.0.1-SNAPSHOT
+ me.tigerhix.lib
+ scoreboard
+ 1.0.1-SNAPSHOT
Now you are able to create your own pretty scoreboards.
diff --git a/pom.xml b/pom.xml
index 295a251..323b2e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,46 +18,75 @@
- tiger-repo
- http://repo.tigerhix.me/content/groups/public/
+ spigotmc-repo
+ https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
+
+ sonatype
+ https://oss.sonatype.org/content/groups/public/
-
-
- nexus
- http://repo.tigerhix.me/content/repositories/snapshots
-
-
-
-
-
- src/main/resources
- true
-
- **/*.yml
- **/*.properties
-
-
-
org.apache.maven.plugins
maven-compiler-plugin
- 3.0
+ 3.8.1
- 1.7
- 1.7
-
- -Xlint:all
- -Xlint:-path
-
- true
- true
+ ${java.version}
+ ${java.version}
+
+
+ org.projectlombok
+ lombok
+ 1.18.24
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 3.2.4
+
+
+ package
+
+ shade
+
+
+ false
+
+
+
+
+
+
+ src/main/resources
+ true
+
+
-
+
+
+ org.spigotmc
+ spigot-api
+ 1.13.2-R0.1-SNAPSHOT
+ provided
+
+
+ org.jetbrains
+ annotations
+ 23.0.0
+ provided
+
+
+ org.projectlombok
+ lombok
+ 1.18.24
+ provided
+
+
diff --git a/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java b/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
index b864c1b..cc281ca 100755
--- a/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
+++ b/src/main/java/me/tigerhix/lib/scoreboard/type/SimpleScoreboard.java
@@ -269,10 +269,6 @@ public boolean isBanned() {
return false;
}
- @Override
- public void setBanned(boolean banned) {
- }
-
@Override
public boolean isWhitelisted() {
return false;