So, I am working on a feature on the server side of things for player shops.
These shops will be in-world and I want to handle block interactions for where these blocks are.
The way I have planned to do this, is to have different events check to see if the block interacted with are a certain type of block (Specifically the Display Case block from Cobblemon) and then check a Map<BlockPos,UUID> to see if the position of that block is a valid key.
If it is, then I can use the UUID to get the shop owner and handle all of that.
My question is just to know if there is a better way to have this work that would be more efficient for server performance and what not.