forked from Edenor-Minecraft/NerfPhantoms-Folia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get github short hash | ||
id: github_short_hash | ||
run: echo "::set-output name=result::$(git rev-parse --short "${{ github.sha }}")" | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
.gradle | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle.kts') }} | ||
- name: Build with Gradle | ||
run: | | ||
chmod +x gradlew | ||
./gradlew build | ||
timeout-minutes: 10 | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bcnp | ||
path: ${{ github.workspace }}/build/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
name: nerfphantoms-folia | ||
name: bcnp-folia | ||
version: '${version}' | ||
main: org.altronmaxx.nerfphantomsfolia.Nerfphantoms_folia | ||
api-version: 1.20 | ||
folia-supported: true | ||
commands: | ||
nerfphantoms: | ||
usage: /nerfphantoms <help | togglespawn | kill | reload> | ||
permission-message: You don't have permission. | ||
usage: /cnp <help | toggle | kill | reload> | ||
permission-message: §7|§6系統§7|§f飯娘:§7你沒權限。 | ||
permissions: | ||
nerfphantoms.*: | ||
bcnp.*: | ||
description: Gives access to all NerfPhantoms commands | ||
default: op | ||
children: | ||
nerfphantoms.all: true | ||
nerfphantoms.all: | ||
bcnp.all: true | ||
bcnp.all: | ||
description: Gives access to all NerfPhantoms commands | ||
children: | ||
nerfphantoms.reload: true | ||
nerfphantoms.kill: true | ||
nerfphantoms.disablespawn.self: true | ||
nerfphantoms.disablespawn.others: true | ||
nerfphantoms.reload: | ||
bcnp.reload: true | ||
bcnp.kill: true | ||
bcnp.disablespawn.self: true | ||
bcnp.disablespawn.others: true | ||
bcnp.reload: | ||
description: Reload plugin config | ||
default: false | ||
nerfphantoms.kill: | ||
default: op | ||
bcnp.kill: | ||
description: Kill all phantoms in current world | ||
default: false | ||
nerfphantoms.disablespawn.self: | ||
default: op | ||
bcnp.disablespawn.self: | ||
description: Command to disable phantom spawning for self | ||
default: op | ||
nerfphantoms.disablespawn.others: | ||
bcnp.disablespawn.others: | ||
description: Command to disable phantom spawning for other players | ||
default: op | ||
nerfphantoms.disablespawn.auto: | ||
bcnp.disablespawn.auto: | ||
description: Phantom spawn disable active by default for player | ||
default: false | ||
default: op |