Store a value in settings file for each block

Discussion in 'Plugin Development' started by halvors, Mar 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    halvors

    My plugin should take money from player when they mine in some regions, how can i store a double/int for each block? Is this possible with an enum? And is it possible to use item names?

    Please help me :)
     
  2. Offline

    caHarkness

    I wouldn't store a value in each block, but perhaps have a listener check for what block they mine in a specific area. For example, "if (e.getBlock().getType() == Materials.IRON_ORE) {" then subtract from a player's "savings" then.
     
Thread Status:
Not open for further replies.

Share This Page