promotional bannermobile promotional banner

Item-for-item Buy Sign / Item Exchange Signs

Abandoned
Item-for-item Buy Sign / Item Exchange Signs
<p>Itemex</p>

Itemex

Description

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.

The Item-for-item Buy Sign / Item Exchange Signs Team

profile avatar
  • 10
    Projects
  • 23.5K
    Downloads

More from adventuretcView all