Releases: JetbyMC/TreexBuyer
Release list
TreexBuyer 4.5
-
Added support for selling custom items.
-
The
/tb scorecommands (give,take, andset) have been updated. You no longer need to specify akeyforCATEGORYorITEM—you can provide the amount directly instead. This is useful when you don't know which category the player's score belongs to.New syntax:
/tb score give/take/set <player> <amount>The old syntax is still supported:
/tb score give/take/set <player> <key> <amount> -
Items with different enchantments or effects are now displayed as separate entries in the GUI, so each unique variant appears individually.
If you don't need this behavior, you can disable it in
config.yml:gui: duplicate-by-rule: true # Set to false to disable
-
Updated Java compatibility from Java 17 to Java 21.
-
Selling custom items (
prices.yml):# Example of selling custom items using CustomModelData custom_item_example1: # custom-model-data: 123 # custom-model-data: my_item # New format for Minecraft 1.21.5+. # The old format is still supported on newer versions # (the plugin will automatically serialize it as needed). custom-model-data: strings: - my_item floats: - 1.5 flags: - true material: diamond price: 60.0 add-scores: 5.0
-
Boosters have been moved to a separate file (
boosters.yml) since booster events have been added:example1: permission: 'buyer.boost.donat1' # Permission required for this booster external-coefficient: 0.5 example2: permission: 'buyer.boost.donat2' external-coefficient: 2.5 # If true, donation boosters ignore max-legal-coefficient boosters_except_legal_coefficient: true on_start_player: - '[message] ' - '[message] &6&lBUYER BOOST' - '[message] &fFor the next {time} minutes, item prices at the &6Buyer &fhave been increased by &6&lx{coefficient}&f.' - '[message] ' on_start_global: - '[message] ' - '[message] &6&lGLOBAL BUYER BOOST' - '[message] &fFor the next {time} minutes, item prices at the &6Buyer &fhave been increased by &6&lx{coefficient}&f.' - '[message] ' bossbar: enable: true name: "&fActive Buyer Boost: &6&lx{coefficient} | {time}" type: SOLID color: BLUE
-
To start a booster event, use:
/tb booster <global/player> <booster> <duration in seconds>
TreexBuyer 4.4.1
TreexBuyer 4.4
- Added the ability to sell potions and enchanted items.
prices.yml
Potion example:
strength_potion_bla_bla_bla: # now the id can be anything; if `material` exists, the plugin will use it; if `material` does not exist, the plugin will try to get the material from the id
material: POTION
price: 10.0
add-scores: 0.0
potions:
# Support for custom enchantments
strength: # potion key
1:
extra-price: 5.0
extra-score: 10.0
# any number of levels can be addedEnchanted item example:
diamond_sword:
material: diamond_sword
price: 60.0
add-scores: 5.0
enchantments:
# Support for custom enchantments
sharpness: # enchantment key
1:
extra-price: 10.0
extra-score: 10.0
2:
extra-price: 20.0
extra-score: 20.0- Added the ability to choose criteria that distinguish regular items from custom ones:
config.yml
# Criteria used to decide which items can be sold (to distinguish regular items from custom ones)
disallowed-item:
# If the item's name is changed
custom-name: true
# If the item has a description/lore (potions ignore this option)
lore: true
# If the item has a custom container (most plugins use containers to distinguish custom items from regular ones)
persistent-data-container: true
# If the item has custom model data
custom-model-data: true
# If the item has flags (for example, HIDE_ATTRIBUTES)
item-flags: true4.3.1
4.2
TreexBuyer 4.2
Download Libb (Required!)
- Added a feature to display item price in item lore, like on DonutSMP
https://youtu.be/NTJ9soroEY0
To enable it, add this section to the config:
inventory-price:
enable: true
text: "<white>Price: $%price%"- Added a persistent actionbar that can show the player the value of their inventory:
persistent-actionbar:
enable: true
text: "<white>Inventory value: <green>$%sell_price%"- Also removed debug messages in the console, which you probably don’t need:
[TreexBuyer] {%sell_pay_commas%=0, %sell_score_commas%=0, %sell_pay%=0, %sell_score%=0}
4.1
4.0
- The entire core codebase has been rewritten.
- Transition away from JGuiWrapper (GUI library); the plugin now utilizes a completely custom GUI utility. A significant benefit of this change is that you can now use my new plugins—including those featuring GUIs—without encountering any bugs. Additionally, the GUI configuration syntax is now more logical.
- You can learn more about the new GUI system here.
- Transition away from inefficient colorization systems and HEX codes; a complete switch to MiniMessage.
- The minimum supported server version has been updated from 1.16 to 1.20.