Block Breaking and Placing

Discussion in 'Plugin Development' started by SeniorCluckers, Mar 2, 2017.

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

    SeniorCluckers

    What is the best way to only allow players to break their own blocks and the blocks they place and not break any other blocks for example the map or world. Saving the block to a config? Hashmaps? Thank you.
     
  2. Offline

    Zombie_Striker

    @SeniorCluckers
    Both. Save the blocks to a config if you want save the data across reloads, and use Hashmaps for efficiency and convenience.
     
  3. Offline

    MaxFireIce

    @SeniorCluckers another way is using adventure mode and only allowing for certain blocks to be placed/broken and just use different blocks than the allowed ones in the map.
     
Thread Status:
Not open for further replies.

Share This Page