Skip to content

Commit 540dca0

Browse files
committed
Initial commit
0 parents  commit 540dca0

29 files changed

+2223
-0
lines changed

.github/FUNDING.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: battleplugins
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v2
14+
with:
15+
java-version: '17'
16+
distribution: 'adopt'
17+
cache: gradle
18+
- name: Build with Gradle
19+
run: ./gradlew build
20+
- name: Publish to Modrinth
21+
if: ${{ success() && github.repository == 'BattlePlugins/ArenaParkour' && github.ref_name == 'master' }}
22+
env:
23+
CHANGELOG: ${{ github.event.head_commit.message }}
24+
BUILD_NUMBER: ${{ github.run_number }}
25+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
26+
run: ./gradlew modrinth

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea/modules.xml
9+
.idea/jarRepositories.xml
10+
.idea/compiler.xml
11+
.idea/libraries/
12+
*.iws
13+
*.iml
14+
*.ipr
15+
out/
16+
!**/src/main/**/out/
17+
!**/src/test/**/out/
18+
19+
### Eclipse ###
20+
.apt_generated
21+
.classpath
22+
.factorypath
23+
.project
24+
.settings
25+
.springBeans
26+
.sts4-cache
27+
bin/
28+
!**/src/main/**/bin/
29+
!**/src/test/**/bin/
30+
31+
### NetBeans ###
32+
/nbproject/private/
33+
/nbbuild/
34+
/dist/
35+
/nbdist/
36+
/.nb-gradle/
37+
38+
### VS Code ###
39+
.vscode/
40+
41+
### Mac OS ###
42+
.DS_Store

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ArenaParkour
2+
3+
A parkour plugin using [BattleArena](https://github.com/BattlePlugins/BattleArena)
4+
5+
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).
6+
7+
## Parkour Templates
8+
9+
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.
10+
11+
For examples configurations of these modes, check out the [templates](https://github.com/BattlePlugins/ArenaParkour/tree/master/templates) folder.
12+
13+
## Documentation
14+
Full documentation for ArenaParkour can be found on the [BattleDocs](https://docs.battleplugins.org/books/additional-gamemodes/chapter/parkour) website.
15+
16+
## Commands
17+
| Command | Description |
18+
|------------------------------------------|--------------------------------------------------|
19+
| /parkour checkpoint add <map> | Adds a checkpoint to a parkour arena. |
20+
| /parkour checkpoint remove <map> <index> | Removes a checkpoint from a parkour arena. |
21+
| /parkour checkpoint clear <map> | Clears all the checkpoints from a parkour arena. |
22+
| /parkour checkpoint index <from> <to> | Changes the index of a checkpoint. |
23+
| /parkour checkpoint list <map> | Lists all the checkpoints in a parkour arena. |
24+
25+
## Permissions
26+
| Permission | Command |
27+
|-----------------------------------------------|----------------------------|
28+
| battlearena.command.parkour.checkpoint.add | /parkour checkpoint add |
29+
| battlearena.command.parkour.checkpoint.remove | /parkour checkpoint remove |
30+
| battlearena.command.parkour.checkpoint.clear | /parkour checkpoint clear |
31+
| battlearena.command.parkour.checkpoint.index | /parkour checkpoint index |
32+
| battlearena.command.parkour.checkpoint.list | /parkour checkpoint list |

build.gradle.kts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
plugins {
2+
id("java")
3+
id("java-library")
4+
id("xyz.jpenilla.run-paper") version "2.3.0"
5+
id("com.modrinth.minotaur") version "2.+"
6+
}
7+
8+
group = "org.battleplugins.arena"
9+
version = "2.0.0-SNAPSHOT"
10+
11+
val supportedVersions = listOf(
12+
"1.19.4",
13+
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6",
14+
"1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4"
15+
)
16+
17+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
18+
19+
repositories {
20+
mavenCentral()
21+
22+
maven("https://repo.papermc.io/repository/maven-public/")
23+
maven("https://repo.battleplugins.org/releases/")
24+
maven("https://repo.battleplugins.org/snapshots/")
25+
}
26+
27+
dependencies {
28+
api("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT")
29+
api("org.battleplugins:arena:4.0.0-SNAPSHOT")
30+
}
31+
32+
tasks {
33+
runServer {
34+
minecraftVersion("1.20.6")
35+
36+
// Set Java 21 (1.20.6 requires Java 21)
37+
javaLauncher = project.javaToolchains.launcherFor {
38+
languageVersion = JavaLanguageVersion.of(21)
39+
}
40+
}
41+
42+
jar {
43+
from("src/main/java/resources") {
44+
include("*")
45+
}
46+
47+
archiveFileName.set("ArenaParkour.jar")
48+
archiveClassifier.set("")
49+
}
50+
51+
processResources {
52+
filesMatching("plugin.yml") {
53+
expand("version" to rootProject.version)
54+
}
55+
}
56+
}
57+
58+
modrinth {
59+
val snapshot = "SNAPSHOT" in rootProject.version.toString()
60+
61+
token.set(System.getenv("MODRINTH_TOKEN") ?: "")
62+
projectId.set("arenaparkour")
63+
versionNumber.set(rootProject.version as String + if (snapshot) "-" + System.getenv("BUILD_NUMBER") else "")
64+
versionType.set(if (snapshot) "beta" else "release")
65+
changelog.set(System.getenv("CHANGELOG") ?: "")
66+
uploadFile.set(tasks.jar)
67+
gameVersions.set(supportedVersions)
68+
69+
dependencies {
70+
required.project("battlearena")
71+
}
72+
}

gradle/wrapper/gradle-wrapper.jar

59.3 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Sat Dec 14 17:50:26 GMT 2024
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)