diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3c036b..80828e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,8 +13,8 @@ jobs: build: runs-on: ubuntu-latest env: - NEMESIS_VERSION_NAME: "autobuild-${{ github.sha }}" - NEMESIS_BUILD_CHANNEL: "autobuild" + ITEMECO_VERSION_NAME: "autobuild-${{ github.sha }}" + ITEMECO_BUILD_CHANNEL: "autobuild" steps: - name: Checkout uses: actions/checkout@v6.0.1 diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index dcc83d3..fa3b46d 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -8,8 +8,8 @@ jobs: build-and-release: runs-on: ubuntu-latest env: - NEMESIS_VERSION_NAME: "${{ github.ref_name }}" - NEMESIS_BUILD_CHANNEL: "production" + ITEMECO_VERSION_NAME: "${{ github.ref_name }}" + ITEMECO_BUILD_CHANNEL: "production" steps: - name: Checkout uses: actions/checkout@v6.0.1 @@ -23,14 +23,14 @@ jobs: - name: Set up Gradle uses: gradle/actions/setup-gradle@v5 - - name: Download CB1060 - run: | - mkdir -p libs - curl -L -o libs/craftbukkit-1060.jar \ - https://archive.org/download/craftbukkit1060/craftbukkit1-7-3%281060%29.jar + # - name: Download CB1060 + # run: | + # mkdir -p libs + # curl -L -o libs/craftbukkit-1060.jar \ + # https://archive.org/download/craftbukkit1060/craftbukkit1-7-3%281060%29.jar - name: Build with Gradle - run: ./gradlew buildAll + run: ./gradlew buildAll -PversionName="${{ github.ref_name }}" - name: Upload JARs to release uses: softprops/action-gh-release@v2.5.0 diff --git a/README.md b/README.md new file mode 100644 index 0000000..f2fa45e --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# ItemEconomy II +ItemEconomy II is a fork of [ItemEconomy](https://modrinth.com/plugin/itemeconomy), keeping it updated to later versions of Minecraft. + +This PaperMC plugin integrates with Vault to provide a unique, item-based economy system for your Minecraft server. Instead of relying solely on virtual balances, players use in-game items as physical currency, adding a layer of immersion and realism to your economy. +Features: + +- Item-Based Currency: Set any Minecraft item as your server's currency (default: diamonds). +- Vault Integration: Fully compatible with Vault, enabling seamless interaction with other economy-based plugins. +- Customizable Formatting: Define how your currency is displayed, including singular and plural forms. + +## Configuration Example: +```yaml +item: "diamond" # Define the item to be used as currency. +singular: "diamond" # Singular form of the currency. +plural: "diamonds" # Plural form of the currency. +format: "{}$" # Customize how the currency is displayed in messages. +``` +This configuration will use diamonds as the currency, displayed as {amount}$, e.g., "5 diamonds" or "1 diamond". + +## Usage: + +- Players can earn, trade, and store the configured item as physical currency. +- Integrates seamlessly with Vault-compatible plugins for shops, auctions, and more. +- Administrators can customize the item and formatting to match their server's theme. diff --git a/build.gradle.kts b/build.gradle.kts index 640baeb..bbc19a2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,9 @@ plugins { } group = "io.github.adrianvic.itemeconomy" -version = System.getenv("ITEMECO_VERSION_NAME") ?: "unknown" +version = project.findProperty("versionName")?.toString() + ?: System.getenv("ITEMECO_VERSION_NAME") + ?: "unknown" repositories { mavenCentral() @@ -77,7 +79,9 @@ mcVersions.forEach { ver -> manifest { attributes( "itemeco-Impl-Version" to ver, - "itemeco-Environment" to (System.getenv("ITEMECO_BUILD_CHANNEL") ?: "dev") + "itemeco-Environment" to (project.findProperty("buildChannel")?.toString() + ?: System.getenv("ITEMECO_BUILD_CHANNEL") + ?: "dev") ) } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index dbeb4ba..60f5404 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: ItemEconomy main: io.github.adrianvic.itemeconomy.Main -version: 0.1.0 +version: 1.0 depend: - Vault api-version: '1.21'