Take money on block being placed

Discussion in 'Spigot Plugin Help' started by M4tt_H4wk, Mar 7, 2020.

  1. I want to have it so when a block is placed, it gets the value of the block and takes that value away from the players balance using vault.

    Is this possible?
  2. Yes, this is possible
  3. how?
  4. Yes, but I can't find a way to get the value of the block
  5. Are you coding something or are you looking for a plugin?
    In the first case, this is the wrong section. In the second case, I don't think something like that already exist, so you might wanna get a dev to do it for you.
  6. What do you mean with value?
  7. 5$ for stone, 10$ for diamond ore
  8. I don't think there is any other way than to walk the blocks with the assigned values in an enum, for example
  9. It's possible, but you need a custom plugin for that, there's no public plugin like this I believe.