-
Notifications
You must be signed in to change notification settings - Fork 4
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 69577cc
Showing
13 changed files
with
1,651 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,29 @@ | ||
name: Build Folia-Expansion | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
if: "github.actor != 'dependabot[bot]'" | ||
steps: | ||
- uses: actions/checkout@main | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build | ||
run: ./gradlew clean build | ||
|
||
- name: Upload Folia-Expansion Nightly | ||
uses: actions/upload-artifact@main | ||
with: | ||
name: Folia-Expansion-Nightly | ||
path: build/libs/*.jar |
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,5 @@ | ||
.idea | ||
*.iml | ||
|
||
.gradle | ||
build |
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,70 @@ | ||
# Folia-Expansion | ||
![GitHub Actions](https://img.shields.io/github/actions/workflow/status/Winds-Studio/Folia-Expansion/build.yml?style=flat-square) | ||
|
||
Add server health related placeholders for Folia. | ||
|
||
e.g. global tps and region tps | ||
|
||
## Placeholders | ||
|
||
Global placeholders | ||
|
||
``` | ||
%folia_global_tps% | ||
%folia_global_tps_5s% | ||
%folia_global_tps_15s% | ||
%folia_global_tps_1m% | ||
%folia_global_tps_5m% | ||
%folia_global_tps_15m% | ||
%folia_global_tps_5s_colored% | ||
%folia_global_tps_15s_colored% | ||
%folia_global_tps_1m_colored% | ||
%folia_global_tps_5m_colored% | ||
%folia_global_tps_15m_colored% | ||
%folia_global_mspt% | ||
%folia_global_mspt_5s% | ||
%folia_global_mspt_15s% | ||
%folia_global_mspt_1m% | ||
%folia_global_mspt_5m% | ||
%folia_global_mspt_15m% | ||
%folia_global_mspt_5s_colored% | ||
%folia_global_mspt_15s_colored% | ||
%folia_global_mspt_1m_colored% | ||
%folia_global_mspt_5m_colored% | ||
%folia_global_mspt_15m_colored% | ||
%folia_global_util% | ||
%folia_global_util_colored% | ||
``` | ||
|
||
Region placeholders | ||
|
||
``` | ||
%folia_tps% | ||
%folia_tps_5s% | ||
%folia_tps_15s% | ||
%folia_tps_1m% | ||
%folia_tps_5m% | ||
%folia_tps_15m% | ||
%folia_tps_5s_colored% | ||
%folia_tps_15s_colored% | ||
%folia_tps_1m_colored% | ||
%folia_tps_5m_colored% | ||
%folia_tps_15m_colored% | ||
%folia_mspt% | ||
%folia_mspt_5s% | ||
%folia_mspt_15s% | ||
%folia_mspt_1m% | ||
%folia_mspt_5m% | ||
%folia_mspt_15m% | ||
%folia_mspt_5s_colored% | ||
%folia_mspt_15s_colored% | ||
%folia_mspt_1m_colored% | ||
%folia_mspt_5m_colored% | ||
%folia_mspt_15m_colored% | ||
%folia_util% | ||
%folia_util_colored% | ||
``` |
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,40 @@ | ||
plugins { | ||
`java-library` | ||
id("io.papermc.paperweight.userdev") version "1.5.11" | ||
} | ||
|
||
group = "org.dreeam.expansion.folia" | ||
version = "1.0.0" | ||
description = "PlaceholderAPI expansion for Folia" | ||
|
||
repositories { | ||
mavenCentral() | ||
|
||
maven { | ||
name = "paper-repo" | ||
url = uri("https://repo.papermc.io/repository/maven-public/") | ||
} | ||
|
||
maven { | ||
name = "placeholderapi" | ||
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/") | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT") | ||
compileOnly("me.clip:placeholderapi:2.11.5") { | ||
exclude(group = "org.bstats") | ||
} | ||
|
||
paperweight.foliaDevBundle("1.19.4-R0.1-SNAPSHOT") | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
configure<JavaPluginExtension> { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} |
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,3 @@ | ||
org.gradle.caching=true | ||
org.gradle.parallel=true | ||
org.gradle.vfs.watch=false |
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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.