EnchantShops - buy enchantments through signs!

New EnchantShops icon


Notice

Sorry for the delayed update! D: Currently i am working on allowing enchants to buy purchasable though money and/or xp, but the Bukkit API is very unstable with changing the xp. Will have the update ASAP.

Description

What is EnchantShops? EnchantShops makes getting enchantments easier! Instead of having to battle hundreds of Zombie Pigman to get experience, then having to craft an Enchantment Table, and going though the trouble of building a room, you can simply buy them though signs! EnchantShops allows users to right-click signs and buy the enchantment specified on the sign.
http://dev.bukkit.org/media/images/39/56/2012-02-27_18.10.59.png

Features

  • Configurable enchantment aliases
  • Option for using economy through vault or an Item Economy
  • Configurable tags and color-codes used in declaring EnchantShops
  • Option for disabling and enabled certain enchantments

Commands

/listenchants - list enchantments and their start levels and max levels. For a complete list on the enchantments and the items they enchant, please visit this page.
/enchant-alias <enchantment> - get the alias for an enchantment (not case sensitive).
/enchant-shoptag - get the shop tag required at the top of the EnchantShop.

Permissions

enchantshop.buy - allows users to buy enchantments from signs.
enchantshop.getalias - gives users rights to use '/enchant-alias <enchantment>'.
enchantshop.getshoptag - gives users rights to use '/enchant-shoptag'.
enchantshop.shop.create - gives users rights to build EnchantShops.
enchantshop.shop.delete - gives user rights to remove EnchantShops.

Config

  • properites:
    • permissions: false - enable permissions
    • useVault: true - if true it will use the economy provided through vault, otherwise use Items as the economy
    • materialID: 266 - the material id used for the Item Economy
    • item-alias: Gold Bar - the alias used for the item for the Item Economy
    • shop-tag: [EnchantShop] - the shop tag required at the top of an EnchantShop
    • shop-colorcode: '3' - the color code used for coloring the shop-tag on an EnchantShop
  • enchant-aliases:
    • ARROW_KNOCKBACK: ARROW_KB
    • ARROW_INFINITE: ARROW_I
    • DAMAGE_UNDEAD: DAMAGE_U
    • LOOT_BONUS_BLOCKS: LT_BS_BLOCKS
    • LOOT_BONUS_MOBS: LT_BS_MOBS
    • PROTECTION_ENVIRONMENTAL: PROT_ENV
    • PROTECTION_EXPLOSIONS: PROT_EXP
    • PROTECTION_FALL: PROT_FL
    • PROTECTION_PROJECTILE: PROT_PROJ
    • PROTECTION_FIRE: PROT_FIRE
    • DAMAGE_ARTHROPODS: DAMAGE_APODS
    • WATER_WORKER: WATER_WKR
  • enchant-states
    • DURABILITY: true
    • PROTECTION_ENVIRONMENTAL: true
    • LOOT_BONUS_BLOCKS: true
    • PROTECTION_FIRE: true
    • DIG_SPEED: true
    • PROTECTION_FALL: true
    • SILK_TOUCH: true
    • PROTECTION_EXPLOSIONS: true
    • PROTECTION_PROJECTILE: true
    • OXYGEN: true
    • WATER_WORKER: true
    • ARROW_INFINITE: true
    • DAMAGE_UNDEAD: true
    • ARROW_FIRE: true
    • DAMAGE_ALL: true
    • ARROW_KNOCKBACK: true
    • KNOCKBACK: true
    • ARROW_DAMAGE: true
    • DAMAGE_ARTHROPODS: true
    • LOOT_BONUS_MOBS: true
    • FIRE_ASPECT: true

How to create EnchantShops

Creating an EnchantShop is easy. Simply put the shop-tag (declared in the config and obtainable in-game via command '/enchant-shoptag') on the first line. On the second line, put the enchantment's alias if provided, otherwise put the enchantment's name. On the third line, put the level associated with the enchantment (declared in the config and obtainable in-game via command '/enchant-alias <enchantment>'). Then finally on the fourth line, put the price of the enchantment. http://dev.bukkit.org/media/images/39/57/2012-02-27_18.18.12.png
http://dev.bukkit.org/media/images/39/58/2012-02-27_18.18.34.png


You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of oOTAGOo oOTAGOo Dec 05, 2012 at 19:49 UTC - 0 likes

    First of all, great work!

    Quick question, is there a way to stack enchantments yet? Are you planning on working this in?

  • Avatar of ImminentFire ImminentFire Nov 29, 2012 at 23:53 UTC - 0 likes

    does this work for 1.4?

    BFAK:Imminent Fire,90707715,1571006ae6c4331fa561e6550fd52df7e1cdd7af30432e09f22ae963b5be30a0

  • Avatar of thedrumer1010 thedrumer1010 Nov 24, 2012 at 20:16 UTC - 0 likes

    Is there power?

  • Avatar of thedrumer1010 thedrumer1010 Nov 24, 2012 at 20:15 UTC - 0 likes

    @superyot: Go

    its damage_undead or damage_u

  • Avatar of superyot superyot Nov 07, 2012 at 17:19 UTC - 0 likes

    How to enchant smite?

  • Avatar of MarioMaster7890 MarioMaster7890 Oct 11, 2012 at 15:04 UTC - 0 likes

    Having problems with the "DAMAGE_UNDEAD" enchantment, it works with the "DAMAGE_ALL" enchantment and the undead one is declared in the alias's as such, but it will not work, am I just stupid? or is this a known bug? lol, please help. :)

  • Avatar of Willpool Willpool Jul 24, 2012 at 14:27 UTC - 0 likes

    Amazing plugin! Thanks for making this :-)

  • Avatar of McJellyGooby McJellyGooby Jul 01, 2012 at 13:50 UTC - 0 likes

    Dear Randude,

    Since you don't have a ticket system available, I'll post this here. I'm using v0.1.4 of your plugin with Vault 1.2.16, iConomy 6.0.9b, and CraftBukkit 2246. I attempted a switch from iConomy to Craftconomy 2.3.5, which resulted in repeated errors matching the one below:

    [WARNING] Task of 'EnchantShops' generated an exception java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at java.lang.String.substring(Unknown Source) at me.greatman.Craftconomy.Craftconomy.format(Craftconomy.java:355) at net.milkbowl.vault.economy.plugins.Economy_Craftconomy.format(Economy_Craftconomy.java:109) at com.randude14.enchantshop.economy.VaultEconomy.format(VaultEconomy.java:27) at com.randude14.enchantshop.EnchantShop.format(EnchantShop.java:250) at com.randude14.enchantshop.shop.Shop.formatPrice(Shop.java:107) at com.randude14.enchantshop.shop.Shop.updateSign(Shop.java:41) at com.randude14.enchantshop.shop.ShopManager.updateShopSigns(ShopManager.java:84) at com.randude14.enchantshop.EnchantShop.run(EnchantShop.java:300)

    Any assistance you can offer would be greatly appreciated. Thank you.

  • Avatar of Jojomcc1000 Jojomcc1000 Jun 20, 2012 at 20:13 UTC - 0 likes

    Hello. Is it possible to add all the enchantments that are possible to a weapon with /enchant? what is the command? I am owner.

Facts

Date created
Feb 28, 2012
Categories
Last update
Mar 15, 2012
Development stage
Release
License
Public Domain
Curse link
EnchantShops - buy enchantments through signs!
Downloads
9,888
Recent files
  • R: v0.1.4 for CB 1.2.3-R0.2 Mar 15, 2012
  • R: v0.1.3a for CB 1.2.3-R0.2 Mar 13, 2012
  • R: v0.1.2a for CB 1.1-R6 Mar 02, 2012
  • R: v0.1.2 for CB 1.1-R4 Feb 29, 2012
  • R: v0.1.0 for CB 1.1-R4 Feb 28, 2012

Authors

Relationships

Required dependency
Vault