Skip to content

Commit

Permalink
java 21, gh workflow, config desc
Browse files Browse the repository at this point in the history
  • Loading branch information
ewof committed Apr 30, 2024
1 parent f386bc5 commit 7f87b56
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: shadowJar
arguments: assemble
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,39 @@ Default config:

```yaml
# This is the current version. Please do not edit.
version: '1.3'
version: '1.4'
# The language file you wish to use.
language: en_US.yml

waypoints:

############################################################
# +------------------------------------------------------+ #
# | Economy | #
# +------------------------------------------------------+ #
############################################################

economy:

# The percentage of the travel cost that gets added to the waypoints town bank, the rest goes to the nation (if it has no nation then 100% goes to the town). Set to -1 to disable (neither the town or nation bank gets any of the travel cost).

# The percentage of the travel cost that gets added to the waypoints town bank, the rest goes to the nation. If it has no nation then 100% goes to the town bank.
# Disabled with value of -1
split: '0.5'

############################################################
# +------------------------------------------------------+ #
# | Restrictions | #
# +------------------------------------------------------+ #
############################################################

restrictions:

# The maximum number of blocks a player can travel between waypoints.
# Disabled with value of -1
max_distance: '2700'

# The amount of seconds a player must wait between waypoint travels.
cooldown: '300'

# If true players can only teleport from one waypoint type to another.
peer_to_peer: 'true'

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
}

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public enum ConfigNodes {
"waypoints.economy.split",
"0.5",
"",
"# The percentage of the travel cost that gets added to the waypoints town bank, the rest goes to the nation (if it has no nation then 100% goes to the town). Set to -1 to disable (neither the town or nation bank gets any of the travel cost)."),
"# The percentage of the travel cost that gets added to the waypoints town bank, the rest goes to the nation. If it has no nation then 100% goes to the town bank.",
"# Disabled with value of -1"),
WAYPOINTS_RESTRICTIONS(
"waypoints.restrictions",
"",
Expand Down

0 comments on commit 7f87b56

Please sign in to comment.