-
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
0 parents
commit 540dca0
Showing
29 changed files
with
2,223 additions
and
0 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,14 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: battleplugins | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
polar: # Replace with a single Polar username | ||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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,26 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: gradle | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Publish to Modrinth | ||
if: ${{ success() && github.repository == 'BattlePlugins/ArenaParkour' && github.ref_name == 'master' }} | ||
env: | ||
CHANGELOG: ${{ github.event.head_commit.message }} | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
run: ./gradlew modrinth |
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,42 @@ | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
Large diffs are not rendered by default.
Oops, something went wrong.
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,32 @@ | ||
# ArenaParkour | ||
|
||
A parkour plugin using [BattleArena](https://github.com/BattlePlugins/BattleArena) | ||
|
||
ArenaParkour is a parkour plugin using BattleArena, allowing you to create your own parkour courses with configurable checkpoints. Supports creating parkour minigames, or integrating into existing areas (i.e. lobby parkours). | ||
|
||
## Parkour Templates | ||
|
||
ArenaParkour includes a couple templates for pre-made parkour games. These are the parkour minigame, which act as a standard minigame for parkour, and the lobby parkour which is less of a minigame but sits in an existing lobby. | ||
|
||
For examples configurations of these modes, check out the [templates](https://github.com/BattlePlugins/ArenaParkour/tree/master/templates) folder. | ||
|
||
## Documentation | ||
Full documentation for ArenaParkour can be found on the [BattleDocs](https://docs.battleplugins.org/books/additional-gamemodes/chapter/parkour) website. | ||
|
||
## Commands | ||
| Command | Description | | ||
|------------------------------------------|--------------------------------------------------| | ||
| /parkour checkpoint add <map> | Adds a checkpoint to a parkour arena. | | ||
| /parkour checkpoint remove <map> <index> | Removes a checkpoint from a parkour arena. | | ||
| /parkour checkpoint clear <map> | Clears all the checkpoints from a parkour arena. | | ||
| /parkour checkpoint index <from> <to> | Changes the index of a checkpoint. | | ||
| /parkour checkpoint list <map> | Lists all the checkpoints in a parkour arena. | | ||
|
||
## Permissions | ||
| Permission | Command | | ||
|-----------------------------------------------|----------------------------| | ||
| battlearena.command.parkour.checkpoint.add | /parkour checkpoint add | | ||
| battlearena.command.parkour.checkpoint.remove | /parkour checkpoint remove | | ||
| battlearena.command.parkour.checkpoint.clear | /parkour checkpoint clear | | ||
| battlearena.command.parkour.checkpoint.index | /parkour checkpoint index | | ||
| battlearena.command.parkour.checkpoint.list | /parkour checkpoint list | |
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,72 @@ | ||
plugins { | ||
id("java") | ||
id("java-library") | ||
id("xyz.jpenilla.run-paper") version "2.3.0" | ||
id("com.modrinth.minotaur") version "2.+" | ||
} | ||
|
||
group = "org.battleplugins.arena" | ||
version = "2.0.0-SNAPSHOT" | ||
|
||
val supportedVersions = listOf( | ||
"1.19.4", | ||
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6", | ||
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4" | ||
) | ||
|
||
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17)) | ||
|
||
repositories { | ||
mavenCentral() | ||
|
||
maven("https://repo.papermc.io/repository/maven-public/") | ||
maven("https://repo.battleplugins.org/releases/") | ||
maven("https://repo.battleplugins.org/snapshots/") | ||
} | ||
|
||
dependencies { | ||
api("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT") | ||
api("org.battleplugins:arena:4.0.0-SNAPSHOT") | ||
} | ||
|
||
tasks { | ||
runServer { | ||
minecraftVersion("1.20.6") | ||
|
||
// Set Java 21 (1.20.6 requires Java 21) | ||
javaLauncher = project.javaToolchains.launcherFor { | ||
languageVersion = JavaLanguageVersion.of(21) | ||
} | ||
} | ||
|
||
jar { | ||
from("src/main/java/resources") { | ||
include("*") | ||
} | ||
|
||
archiveFileName.set("ArenaParkour.jar") | ||
archiveClassifier.set("") | ||
} | ||
|
||
processResources { | ||
filesMatching("plugin.yml") { | ||
expand("version" to rootProject.version) | ||
} | ||
} | ||
} | ||
|
||
modrinth { | ||
val snapshot = "SNAPSHOT" in rootProject.version.toString() | ||
|
||
token.set(System.getenv("MODRINTH_TOKEN") ?: "") | ||
projectId.set("arenaparkour") | ||
versionNumber.set(rootProject.version as String + if (snapshot) "-" + System.getenv("BUILD_NUMBER") else "") | ||
versionType.set(if (snapshot) "beta" else "release") | ||
changelog.set(System.getenv("CHANGELOG") ?: "") | ||
uploadFile.set(tasks.jar) | ||
gameVersions.set(supportedVersions) | ||
|
||
dependencies { | ||
required.project("battlearena") | ||
} | ||
} |
Binary file not shown.
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,6 @@ | ||
#Sat Dec 14 17:50:26 GMT 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.