All versions
1.4.2
Release
CeraEconomy 1.4.22 months ago 1
Uploaded by
Compatibility
Minecraft: Java Edition
1.21.x
Platform
Paper
Changes
Changelog
CeraEconomy 1.4.2
Added
- Added
/sellcommand. - Added Sell GUI for selling items.
- Added configurable Sell GUI layout.
- Added configurable sell slots.
- Added configurable Sell and Cancel button slots.
- Added configurable GUI title.
- Added configurable filler items.
- Added per-item selling prices.
- Added separate
sell/sell.ymlconfiguration. - Added automatic creation of the Sell configuration folder and file.
- Added support for selling item quantities based on their configured unit price.
- Added transaction logging for successful sales.
Configuration
- Sell configuration is stored separately from the main
config.yml. - Sell items can be enabled or disabled individually.
- Item prices use
BigDecimalvalues. - GUI size and slots can be customized.
- Filler configuration is applied only to protected GUI slots.
- Sell slots remain available for player item placement.
Safety / Fixes
- Items that are not configured in
sell.ymlcannot be sold. - Sell GUI filler items cannot be taken or moved.
- Sell and Cancel button items cannot be taken or moved.
- Protected GUI slots are blocked against normal clicks, shift-clicks, number-key swaps, hotbar swaps, double-click collection, and invalid drag operations.
- Only configured sell slots accept player items.
- Items are returned when cancelling or closing the Sell GUI.
- Fixed item return handling when cancelling the Sell GUI.
- Selling respects the economy maximum balance.
- Failed sales do not remove the player's items.
- Only successfully sellable items are removed after payment succeeds.
- Full inventories are handled safely when returning items.
- Sell filler items do not affect sell calculations or transaction totals.
Command
/sell— Open the Sell GUI.
Notes
- Sell prices are calculated per item.
- Example: Diamond price
100, selling 32 Diamonds gives3200. - Currently configured example:
DIAMOND→100per item.GOLD_INGOT→25per item.IRON_INGOT→10per item.COAL→5per item.
DIAMOND_OREandDEEPSLATE_DIAMOND_OREare not sellable unless explicitly added tosell.yml.- Sell transactions are recorded through CeraEconomy's TransactionManager.
- Transactions are saved through the existing AutoSave system rather than being forced to disk after every sale.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:lfNCaCGD:8LY9Vy3M"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:lfNCaCGD:8LY9Vy3M"
}
