Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d12ae85
api/Open up range field (#4231)
Intybyte Nov 9, 2024
9ce8955
[CI skip] Add simple BlockPosition based BlockStorage helpers. (#4244)
ProfElements Jan 11, 2025
1a4ddc5
Fix message (#4263)
Seggan Jan 11, 2025
ee349a5
[CI skip] Update dependency me.clip:placeholderapi to v2.11.6
renovate[bot] Jan 11, 2025
bbf7830
[CI skip] Update dependency org.slf4j:slf4j-simple to v2.0.16
renovate[bot] Jan 11, 2025
c85175d
[CI skip] Update actions/checkout action to v4.2.2
renovate[bot] Jan 11, 2025
2317d1e
[CI skip] Update dependency org.sonarsource.scanner.maven:sonar-maven…
renovate[bot] Jan 11, 2025
c145027
[CI skip] Update dependency com.gmail.nossr50.mcMMO:mcMMO to v2.2.029
renovate[bot] Jan 11, 2025
7d0b12b
[CI skip] Update dependency org.mockito:mockito-core to v5.15.2
renovate[bot] Jan 11, 2025
4e00aad
[CI skip] Update dependency com.sk89q.worldedit:worldedit-core to v7.3.9
renovate[bot] Jan 11, 2025
af260b2
[CI skip] Update dependency com.sk89q.worldedit:worldedit-bukkit to v…
renovate[bot] Jan 11, 2025
b027af3
[CI skip] Update actions/setup-java action to v4.6.0
renovate[bot] Jan 11, 2025
0dcc33e
[CI skip] Update dependency org.apache.maven.plugins:maven-shade-plug…
renovate[bot] Jan 11, 2025
d90e2dc
[CI skip] Update dependency org.jacoco:jacoco-maven-plugin to v0.8.12
renovate[bot] Jan 11, 2025
11cea2d
[CI skip] Update pascalgn/automerge-action action to v0.16.4
renovate[bot] Jan 11, 2025
755a7eb
Refactor ticker task to use a thread-safe Set implementation for tick…
md5sha256 Jan 11, 2025
66c69b3
[CI skip] Update dependency org.apache.maven.plugins:maven-javadoc-pl…
renovate[bot] Jan 11, 2025
1ffcb46
[CI skip] Update dependency org.sonarsource.scanner.maven:sonar-maven…
renovate[bot] Jan 12, 2025
6e9cd72
[CI skip] Update dependency org.apache.maven.plugins:maven-surefire-p…
renovate[bot] Jan 12, 2025
02b00af
[CI skip] Update dependency org.junit:junit-bom to v5.11.4
renovate[bot] Jan 12, 2025
bf53c34
[CI skip] New locale updates from Crowdin
TheBusyBot Jan 12, 2025
a1a2abb
[CI skip] Update WalshyDev/blob-builds digest to ea9ecd9
renovate[bot] Jan 12, 2025
01137f9
[ci skip] Implement experimental branch
WalshyDev Mar 9, 2025
3544459
Update to 1.21 (#4248)
WalshyDev Mar 9, 2025
bb38e5d
Support 1.21-1.21.2
Intybyte Mar 9, 2025
3ea21da
Fix tests in 1.21
WalshyDev Mar 9, 2025
5374034
[CI skip] Migrate config .github/renovate.json (#4314)
renovate[bot] May 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"config:base"
"config:recommended"
]
}
4 changes: 2 additions & 2 deletions .github/workflows/auto-squash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Auto squash
uses: pascalgn/automerge-action@v0.16.2
uses: pascalgn/automerge-action@v0.16.4
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
UPDATE_RETRIES: 0
Expand All @@ -42,7 +42,7 @@ jobs:

steps:
- name: Auto squash
uses: pascalgn/automerge-action@v0.16.2
uses: pascalgn/automerge-action@v0.16.4
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
UPDATE_RETRIES: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/discord-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.2.2

- name: Set up Java JDK 21
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: temurin
java-version: ${{ matrix.javaVersion }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/javadocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand Down
30 changes: 26 additions & 4 deletions .github/workflows/publish-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- stable
- experimental

jobs:
publish:
Expand All @@ -16,7 +17,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand All @@ -26,11 +27,32 @@ jobs:
- name: Build with Maven
run: mvn clean package

- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@f3da5ce7b7e2b70eb963e0c0014677b3d78c10fa
- name: Upload Dev build
uses: WalshyDev/blob-builds/gh-action@ea9ecd9266c902c6627f884e657560d0fa6b61dd
if: github.ref == 'refs/heads/master'
with:
project: Slimefun4
releaseChannel: ${{ github.ref == 'refs/heads/master' && 'Dev' || 'RC' }}
releaseChannel: Dev
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ github.event.head_commit.message }}

- name: Upload RC build
uses: WalshyDev/blob-builds/gh-action@ea9ecd9266c902c6627f884e657560d0fa6b61dd
if: github.ref == 'refs/heads/stable'
with:
project: Slimefun4
releaseChannel: 'RC'
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ github.event.head_commit.message }}

- name: Upload Experimental build
uses: WalshyDev/blob-builds/gh-action@ea9ecd9266c902c6627f884e657560d0fa6b61dd
if: github.ref == 'refs/heads/experimental'
with:
project: Slimefun4
releaseChannel: 'Experimental'
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ github.event.head_commit.message }}
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0

- name: Set up JDK 21
uses: actions/setup-java@v4.0.0
uses: actions/setup-java@v4.6.0
with:
distribution: 'adopt'
java-version: '21'
Expand Down
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
default: help

.PHONY: help
help:
@echo " * gen-biomes version=<version> - Generate biomes for the given version"

.PHONY: gen-biomes
gen-biomes:
@echo "Generating biomes for $(version)"
@curl "https://raw.githubusercontent.com/MockBukkit/MockBukkit/refs/heads/v$(version)/src/main/resources/keyed/worldgen/biome.json" -s \
| jq '[ .values[].key]' \
> "src/test/resources/biomes/$(version).x.json"
70 changes: 36 additions & 34 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<packaging>jar</packaging>

<!-- Project Info -->
<description>Slimefun is a Spigot/Paper plugin that simulates a modpack-like atmosphere by adding over 500 new items and recipes to your Minecraft Server.</description>
<description>Slimefun is a Paper plugin that simulates a modpack-like atmosphere by adding over 500 new items and recipes to your Minecraft Server.</description>
<url>https://github.com/Slimefun/Slimefun4</url>

<properties>
Expand All @@ -29,8 +29,8 @@
<maven.compiler.testTarget>21</maven.compiler.testTarget>

<!-- Spigot properties -->
<spigot.version>1.20.6</spigot.version>
<spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs>
<paper.version>1.21.1</paper.version>
<paper.javadocs>https://hub.spigotmc.org/javadocs/spigot/</paper.javadocs>

<!-- Default settings for sonarcloud.io -->
<sonar.projectKey>Slimefun_Slimefun4</sonar.projectKey>
Expand Down Expand Up @@ -149,7 +149,7 @@
<!-- Plugin for Unit Tests -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.1</version>
<version>3.5.2</version>

<configuration>
<junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName>
Expand All @@ -161,14 +161,14 @@
<!-- Sonarcloud Scanner -->
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.10.0.2594</version>
<version>5.0.0.4389</version>
</plugin>

<plugin>
<!-- Code Coverage Reports -->
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.11</version>
<version>0.8.12</version>

<executions>
<execution>
Expand All @@ -194,7 +194,7 @@
<!-- Dependency shading -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<version>3.6.0</version>

<configuration>
<!-- Relocate these to avoid clashes and conflicts -->
Expand Down Expand Up @@ -238,7 +238,7 @@
<!-- Javadocs -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<version>3.11.2</version>

<configuration>
<reportOutputDirectory>${project.basedir}</reportOutputDirectory>
Expand All @@ -251,7 +251,7 @@

<links>
<!-- We can reference the Spigot API in our Javadocs -->
<link>${spigot.javadocs}</link>
<link>${paper.javadocs}</link>
</links>

<!-- We can group packages together in our Javadocs -->
Expand Down Expand Up @@ -337,7 +337,7 @@
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.10.3</version>
<version>5.11.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -354,10 +354,17 @@
</dependency>

<!-- Shaded packages -->

<dependency>
<groupId>com.github.Slimefun.dough</groupId>
<artifactId>dough-api</artifactId>
<version>cb22e71335</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.baked-libs.dough</groupId>
<groupId>com.github.Slimefun.dough</groupId>
<artifactId>dough-api</artifactId>
<version>f8ff25187d</version>
<version>cb22e71335</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -367,6 +374,14 @@
<scope>compile</scope>
</dependency>

<!-- Paper -->
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>${paper.version}-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<!-- Testing dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -376,20 +391,20 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.10.0</version>
<version>5.15.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.9</version>
<version>2.0.16</version>
<scope>test</scope>
</dependency>
<!-- This needs to be before Spigot because MockBukkit will fail otherwise. -->
<dependency>
<groupId>com.github.MockBukkit</groupId>
<artifactId>MockBukkit</artifactId>
<version>c7cc678834</version>
<groupId>com.github.seeseemelk</groupId>
<artifactId>MockBukkit-v1.21</artifactId>
<version>3.133.2</version>
<scope>test</scope>

<exclusions>
Expand All @@ -401,19 +416,12 @@
</exclusion>
</exclusions>
</dependency>
<!-- Override Spigot with Paper tests as a CommandMap ctor which MockBukkit uses only exists on Paper but not in Spigot -->
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.6-R0.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>

<!-- Third party plugin integrations / soft dependencies -->
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.2.19</version>
<version>7.3.9</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -427,7 +435,7 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.19</version>
<version>7.3.9</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -441,7 +449,7 @@
<dependency>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.230</version>
<version>2.2.029</version>
<scope>provided</scope>

<exclusions>
Expand All @@ -455,7 +463,7 @@
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.5</version>
<version>2.11.6</version>
<scope>provided</scope>

<exclusions>
Expand Down Expand Up @@ -515,12 +523,6 @@
<version>2.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot.version}-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mojang</groupId>
<artifactId>authlib</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public enum MinecraftVersion {
*/
MINECRAFT_1_20_5(20, 5, "1.20.5+"),

/**
* This constant represents Minecraft (Java Edition) Version 1.21
* ("Tricky Trials")
*/
MINECRAFT_1_21(21, 0, "1.21.x"),

/**
* This constant represents an exceptional state in which we were unable
* to identify the Minecraft Version we are using
Expand Down
Loading