Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created August 1, 2012 14:04
Show Gist options
  • Select an option

  • Save tehbeard/3227109 to your computer and use it in GitHub Desktop.

Select an option

Save tehbeard/3227109 to your computer and use it in GitHub Desktop.
documentation of trait storage for CitiTrader
wallet: //More info when it becomes it's own plugin, just copy paste for now
type: PRIVATE
amount: '0.0'
account: ''
//meat of chest based traders
stockroom:
enableRightClick: true //enable right click to purchase items (T/F)
enableLeftClick: false //enable left click to sell items (T/F)
inv: //inventory of the stock room
'0': // integer index for an item, item generated by C2 API See API for details for enchantments etc
id: DIRT
amount: 40
data: 0
'1': // integer index for an item, item generated by C2 API See API for details for enchantments etc
id: GRASS
amount: 64
data: 0
prices://similar to inventory
'0': //integer index to store multiple items
item: //item stored inside here
id: DIRT
amount: 1 //ALWAYS 1
data: 0
price: '1.0' //price stored here as double
buyprices://Same as prices, but for buying items from players
'0': //integer index to store multiple items
item: //item stored inside here
id: GRASS
amount: 1 //ALWAYS 1
data: 0
price: '0.5' //price stored here as double
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment