Jump to content

Providing Books in the /shop

Not a Bug 1.1.0

Willy Wonka

Posted

Hey there!

I'm trying to get the books into the store for folks to purchase using the server rewards plugin.  

I'm putting the correct skin id and using documents as the item.  When It's created, it shows up fine in the shop, but when you buy it, it shows up as documents in inventory instead of the actual book enchantment.  Any thoughts on what might be causing this?

 

image.png

image.png

image.png

hionet.com

Posted

Hi, 

You have 2 options for this:

1. Editing the EnchantCore.json config file and enable this option:

 "Name Hydration": {
    "Enabled": true,
    "Accept Token Names (ec:id:level)": true,
    "Accept Display Names ([E] Sharpness III Book)": true,
    "Require Skin Match": true,

then when you create the item in the shop put for the name "[E] Sharpness I Book" or "ec:sharpness:1".

2. The easy option: Use a command reward instead of an Item Reward. 
For example use the command:

enchantcore.givebook $player.id sharpness 1 1

 

hionet.com

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.1m
Total downloads
Customers
12.1k
Customers served
Files Sold
171.7k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.