You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to implement something in a plugin that would basically stop the player from creating a map in a certain area if they didn't have permission to do so. I thought "this should be simple, just cancel the MapCreate event, right?", but I found that there is actually no event like that. This means that I would have to go the complicated route by canceling the PlayerInteractEvent, and before that, I would need to do a lot of filtering to make sure that the PlayerInteractEvent is the player creating a map and not the player opening a chest, for example. I also thought canceling the MapInitialiseEvent would work, but apparently, the MapInitialiseEvent is called every time the map is opened and not just when it is created. So this means there is no event in the Bukkit, Spigot, and Paper API that deals specifically with a player initially creating a map.
Describe the solution you'd like.
Can a new event be implemented. Something like "MapCreateEvent", to allow devs to manipulate the way players interact with maps in a simple manner.
Activity