The shop addon allows you to set up sign-based shops that players can use to purchase spells and scrolls.
You must have the following plugins to be able to use this addon:
To install, simply put the jar file in your plugins folder. The first time it runs it will generate a config.yml file. These are the available configuration options:
| Option | Description | Default |
|---|---|---|
| require-known-spell | Whether the person placing the sign must know the spell they are creating a shop for. | true |
| require-teach-perm | Whether the person placing the sign must have the teach permission for the spell they are creating a shop for. | true |
| currencies | A list of currency names and types that can be used. The first one in the list is the default currency, in case one isn't listed on the sign. Valid type values are “vault” for normal currency, “levels” for experience levels, “experience” for experience itself, an item type id (ex: “266”), or an item type and data value combo (ex: “351:3”). | |
| first-line | The text placed on the first line of a sign that indicates the sign is a shop. | [SPELL SHOP] |
| str-already-known | The message that appears when a player tries to buy a spell they already know. | You already know that spell. |
| str-cant-afford | The message that appears when a player tries to buy a spell they cannot afford. | You cannot afford that spell. |
| str-purchased | The message that appears when a player successfully purchases a spell. | You have purchased the %s spell. |
| first-line-scroll | The text placed on the first line of a sign that indicates the sign is a scroll shop. | [SCROLL SHOP] |
| scroll-spell-name | The internal name of the scroll spell. | scroll |
| scroll-item-type | The item type of scrolls (paper by default). | 339 |
| str-cant-afford-scroll | The message that appears when a player tries to buy a scroll they cannot afford. | You cannot afford that scroll. |
| str-purchased-scroll | The message that appears when a player successfully purchases a scroll. | You have purchased a scroll for the %s spell (with %u uses). |
| str-scroll-fail | The message that appears when the plugin could not create a scroll (caused by running out of scroll space). | You cannot purchase a scroll at this time. |
Message variables:
You must have the magicspells.createsignshop permission to create a spell shop. This permission node defaults to op-only.
To create a spell shop, just create a sign with the following text:
To create a scroll shop, create a sign with this text:
require-known-spell: true
require-teach-perm: true
currencies:
money: "vault"
levels: "levels"
xp: "experience"
gold: "266"
cocoa: "351:3"
first-line: [SPELL SHOP]
str-already-known: You already know that spell.
str-cant-afford: You cannot afford that spell.
str-cant-learn: You are not able to buy that spell.
str-purchased: You have purchased the %s spell.
first-line-scroll: [SCROLL SHOP]
scroll-spell-name: scroll
scroll-item-type: 339
str-cant-afford-scroll: You cannot afford that scroll.
str-purchased-scroll: You have purchased a scroll for the %s spell (with %u uses).
str-scroll-fail: You cannot purchase a scroll at this time.
Version 1.5 (November 13) [MagicSpells 2.10]
Version 1.4 (May 21) [MagicSpells 2.7]
Version 1.3 (February 20) [MagicSpells 2.3]
Version 1.2 (February 9) [MagicSpells 2.3]
Version 1.1 (January 30) [MagicSpells 2.3]
Version 1.0 (January 25) [MagicSpells 2.2]
If you have questions or comments, please take them to the forum.