Item-for-item Buy Sign / Item Exchange Signs

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

What it does

Itemex allows you to sell custom items for custom item-based currencies, done through signs.

Permissions

  • itemex.use - Allow you to use the signs.

Usage

  1. Define a custom currency in the config
  2. Define a custom item in the config
  3. Set the parameters for finding signs
  4. Start the server
  5. Right click on a sign

Configuration

lang:
  inventoryFull: '§cThere is not enough space in your inventory'
  notEnoughMoney: '§cYou don''t have the required amount of money'
  success: '§aYou bought %amount %item'
currencies:
  gold:
  #The name of the currency
    ==: org.bukkit.inventory.ItemStack
    type: GOLD_INGOT
    meta:
      ==: ItemMeta
      meta-type: UNSPECIFIC
      display-name: Admin Gold
      enchants:
        DURABILITY: 10
  #The above is a serialized version of an ItemStack which is kind of hard to edit manually
  #I will add a command later
sign:
  boots:
  #Can be any name you want, but has to be different for every item
    sign:
    - '^.*Fancy Boots.*'
    - '^.*'
    - '^.*'
    - '^.*'
    #These are regex codes, all four lines have to match with the four lines of the sign
    
    #Quick regex tips:
      #.* means match anything for any length
      #matches ANY text
      
      #.*sometext.* means match 'sometext' surrounded by any characters for any length
      #matches: klnjsometexthfushd
      
      #sometext.* means match 'sometext' followed by any characters for any length
      #matches: sometexthfiaushd
      
      #sometext means match 'sometext' only when present alone
      #matches: sometext
    
    price:
      currency: 'gold'
      #The name of the above listed currencies to use
      amount: 2
      #The amount of needed (currency) itemstacks
    item:
      ==: org.bukkit.inventory.ItemStack
      type: LEATHER_BOOTS
      meta:
        ==: ItemMeta
        meta-type: LEATHER_ARMOR
        display-name: ~Fancy Boots~
        enchants:
          PROTECTION_ENVIRONMENTAL: 10
          PROTECTION_FIRE: 10
          DURABILITY: 10
          PROTECTION_EXPLOSIONS: 10
          PROTECTION_PROJECTILE: 10
        repair-cost: 4
        color:
          ==: Color
          RED: 255
          BLUE: 0
          GREEN: 0

Support

Please create a ticket or comment if you find any errors or you have any suggestions.

Source

You can find the source code in the plugin jar file.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    88153
  • Created
    Dec 28, 2014
  • Last Released File
    Dec 28, 2014
  • Total Downloads
    428
  • License

Categories

Members

Recent Files

Bukkit