is there any way to block the interaction with the right button of the mause in a certain world? or at least in one region
You can't prevent the client from sending the packet, but you can cancel the event before other plugins can affect the outcome of the interaction. Can you give an example of what you mean?
I use the commandShop plugin, https://github.com/BoxOfDevs/CommandShop/issues/14 It happens that if the player uses the right button to buy a command, he receives a click spam, but if he uses the left button this It does not happen, what I wanted to do then is cancel the click with the right button! , but in only one world or in a certain region!
It would have to be done with a plugin, or worked around in PMMP, neither of which has been done yet, AFAIK.
@Winchester I worked around the bug in this commit https://github.com/BoxOfDevs/CommandShop/commit/4be927d102d979cd7428cde0865b0b26fc06e79b
If you haven't seen this already, I recommend updating the plugin again, because I accidentally left that testing message in there. https://github.com/BoxOfDevs/CommandShop/commit/49fe805ae1db4f665a347c8725867b71220ed598