Best way to store location/blocks

Discussion in 'Spigot Plugin Help' started by Stellrow, Feb 5, 2020.

  1. (Just got back into making em minecraft plugins so im not familiar if any new stuff arrived)

    So i need ways to store blocks/locations,basically a player places a specific itemstack,i save it and use it in other stuff

    Last time i basically listened to blockplaceevent,saved the block,then in another class iterated through it and used it(an AutoFarm plugin),basically checking every 10 second a list of blocks and do stuff with that...

    Question is,is there a better way to do this? Or should i just keep going with it

    Why do i need it? A item generator basically every <sec amount> i do certain stuff(either spawn or insert item in the world)

    So current method,save block on place,loop through the config,use it