Replies: 1 comment
|
How do you guys feel about adding in this event? It says "Status: Accepted" from way back when I first made the suggestion and someone thought it was valid. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem?
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.
Describe alternatives you've considered.
Discussed in the first paragraph...
Other
No response
All reactions