Merge remote-tracking branch 'origin/main'

This commit is contained in:
天クマ 2026-01-01 00:13:28 -03:00
commit 3d5acde9f8
5 changed files with 41 additions and 13 deletions

View file

@ -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

View file

@ -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

24
README.md Normal file
View file

@ -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.

View file

@ -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")
)
}

View file

@ -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'