Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
89c370e
Merge pull request #1 from Iridium-Development/world
PeachesMLG Aug 7, 2021
2bc1fa4
Version 1.0.1
PeachesMLG Aug 31, 2021
ebe0b31
Fix issues with world name
MertUnverdi Sep 21, 2021
b711805
Version 1.0.2
PeachesMLG Nov 15, 2021
f801ac0
Merge remote-tracking branch 'origin/master'
PeachesMLG Nov 15, 2021
cc550f8
Fix database issues
daspositioned Nov 15, 2021
d00cc80
Fix dependency
daspositioned Nov 15, 2021
e9c0716
Merge pull request #2 from Iridium-Development/fix/ormlite-issues
PeachesMLG Nov 15, 2021
e484b5e
Update dependencies to make the plugin compile
daspositioned Nov 15, 2021
0c08e85
Merge pull request #3 from Iridium-Development/fix/dependencies
PeachesMLG Nov 15, 2021
bfcd56c
Fix dependency relocation & Update dependencies
daspositioned Jan 2, 2022
643b015
Merge pull request #4 from Iridium-Development/fix/relocation
daspositioned Jan 2, 2022
ef2989f
Add actions for mobcoins
MertUnverdi Jan 19, 2022
2086e6b
Bump Iridiumcore for 1.18
MertUnverdi Jan 25, 2022
2d8de86
Version increment
MertUnverdi Jan 25, 2022
c0f6c5d
Version Increment
PeachesMLG Feb 10, 2022
79a55c8
Bump iridiumcore
MertUnverdi Jul 9, 2022
1469c8f
Version Increment
MertUnverdi Aug 29, 2022
747b808
Boink
PeachesMLG Feb 19, 2024
f338b77
Bump IridiumCore
PeachesMLG Feb 19, 2024
1a4c976
Bumped Gradle to 8.6
PeachesMLG Mar 2, 2024
ea3d8c6
Version Increment
PeachesMLG Mar 2, 2024
dd87cd9
Added isOnline check
glenngenre Jun 10, 2024
3ce1f8d
Merge pull request #10 from Iridium-Development/has-played-before-fix
PeachesMLG Jun 10, 2024
99d95eb
Bump dependencies
daspositioned May 27, 2025
dd66584
Bump version
daspositioned May 27, 2025
23bf6b4
Fix GitHub Actions
daspositioned May 27, 2025
e939ca2
Merge pull request #11 from Iridium-Development/feature/1-21
PeachesMLG May 29, 2025
8ef64c4
Fix 1.21+ support
daspositioned Jun 21, 2025
3a4d580
Hide empty mobcoin receive messages
daspositioned Jun 21, 2025
3b60091
Change order of lines for better readability
daspositioned Jun 21, 2025
cdc2414
Merge pull request #12 from Iridium-Development/fix/1-21-support
PeachesMLG Jun 22, 2025
c4ab500
Merge pull request #13 from Iridium-Development/feature/hide-empty-me…
PeachesMLG Jun 22, 2025
6ef8035
Bump com.gradleup.shadow from 8.3.6 to 9.1.0
dependabot[bot] Aug 29, 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
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

patreon: Peaches_MLG
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"
29 changes: 29 additions & 0 deletions .github/workflows/dependabot-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Dependabot approve & merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
55 changes: 55 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle
on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: "IridiumMobCoins"
path: "build/libs/IridiumMobCoins-*.jar"
upload:
needs: build
runs-on: ubuntu-latest
if: "contains(github.event.commits[0].message, 'Version Increment')"
steps:
- uses: actions/checkout@v4.2.2
- uses: thecodemonkey/action-get-gradle-version@master
id: version
with:
file: "build.gradle.kts"
- uses: actions/download-artifact@v4
with:
name: "IridiumMobCoins"
path: "./"
- name: Publish to Nexus
uses: sonatype-nexus-community/nexus-repo-github-action@master
with:
serverUrl: "https://nexus.iridiumdevelopment.net/"
username: "${{ secrets.NEXUS_USERNAME }}"
password: "${{ secrets.NEXUS_PASSWORD }}"
format: "maven2"
repository: "maven-releases"
coordinates: "groupId=com.iridium artifactId=IridiumMobCoins version=${{steps.version.outputs.version}} generate-pom=on"
assets: "extension=jar"
filename: "IridiumMobCoins-*.jar"
58 changes: 32 additions & 26 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "6.1.0"
id("com.gradleup.shadow") version "9.1.0"
}

group = "com.iridium"
version = "1.0.0"
version = "1.0.6"
description = "IridiumMobCoins"

repositories {
maven("https://repo.mvdw-software.com/content/groups/public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
maven("https://repo.extendedclip.com/releases/")
maven("https://ci.ender.zone/plugin/repository/everything/")
maven("https://jitpack.io")
maven("https://nexus.savagelabs.net/repository/maven-releases/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://nexus.iridiumdevelopment.net/repository/maven-releases/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.rosewooddev.io/repository/public/")
maven("https://repo.jeff-media.de/maven2/")
maven("https://repo.jeff-media.com/public/")
}

dependencies {
// Dependencies that we want to shade in
implementation("org.jetbrains", "annotations", "16.0.1")
implementation("com.iridium", "IridiumCore", "1.2.5")
implementation("org.bstats", "bstats-bukkit", "2.2.1")
implementation("com.github.j256", "ormlite-core", "master-SNAPSHOT")
implementation("com.j256.ormlite", "ormlite-jdbc", "5.3")
implementation("de.jeff_media", "SpigotUpdateChecker", "1.2.4")
implementation("com.iridium", "IridiumCore", "2.0.9")
implementation("org.bstats", "bstats-bukkit", "3.1.0")
implementation("org.apache.commons", "commons-text", "1.13.1")
implementation("com.j256.ormlite", "ormlite-core", "6.1")
implementation("com.j256.ormlite", "ormlite-jdbc", "6.1")
implementation("de.jeff_media", "SpigotUpdateChecker", "1.3.2")

// Other dependencies that are not required or already available at runtime
compileOnly("org.projectlombok", "lombok", "1.18.20")
compileOnly("org.projectlombok", "lombok", "1.18.38")
compileOnly("org.spigotmc", "spigot-api", "1.17-R0.1-SNAPSHOT")
compileOnly("me.clip", "placeholderapi", "2.9.2")
compileOnly("me.clip", "placeholderapi", "2.11.6")
compileOnly("be.maximvdw", "MVdWPlaceholderAPI", "2.1.1-SNAPSHOT") {
exclude("org.spigotmc")
}

// Enable lombok annotation processing
annotationProcessor("org.projectlombok", "lombok", "1.18.20")
annotationProcessor("org.projectlombok", "lombok", "1.18.38")
}

tasks {
Expand All @@ -49,14 +49,25 @@ tasks {
}

shadowJar {
fun relocate(origin: String) =
relocate(origin, "com.iridium.iridiummobcoins.dependencies${origin.substring(origin.lastIndexOf('.'))}")

// Remove the archive classifier suffix
archiveClassifier.set("")

// Relocate dependencies
relocate("com.fasterxml.jackson", "com.iridium.iridiumskyblock.dependencies.fasterxml")
relocate("com.j256.ormlite", "com.iridium.iridiumskyblock.dependencies.ormlite")
relocate("org.bstats", "com.iridium.iridiumskyblock.dependencies.bstats")
relocate("de.jeff_media", "com.iridium.iridiumskyblock.dependencies")
relocate("com.iridium.iridiumcore")
relocate("com.j256.ormlite")
relocate("de.jeff_media")

// Relocate IridiumCore dependencies
relocate("de.tr7zw.changeme.nbtapi")
relocate("com.iridium.iridiumcolorapi")
relocate("org.yaml.snakeyaml")
relocate("io.papermc.lib")
relocate("com.cryptomorin.xseries")
relocate("com.fasterxml.jackson")
relocate("org.apache.commons")

// Remove unnecessary files from the jar
minimize()
Expand All @@ -65,6 +76,8 @@ tasks {
// Set UTF-8 as the encoding
compileJava {
options.encoding = "UTF-8"
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
}

// Process Placeholders for the plugin.yml
Expand All @@ -78,13 +91,6 @@ tasks {
}
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
vendor.set(JvmVendorSpec.ADOPTOPENJDK)
}
}

// Maven publishing
publishing {
publications.create<MavenPublication>("maven") {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading