[BUG] Region name gives NullPointerException
Dmunch04 opened this issue ยท 3 comments
Describe the bug
In the CreateRegionEvent
, the regions name returns a NullPointerException
To Reproduce
Steps to reproduce the behavior:
@EventHandler
public void onRegionCreated(CreateRegionEvent e) {
String name = e.getRegion().getName();
}
Error:
java.lang.NullPointerException: null
Expected behavior
It should return the regions actual name (The one that's also on the region sign)
Server and plugins versions (please complete the following information):
- Server:
Paper 1.15.2
- Plugin Version:
RedProtect-7.6.5-b289-Universal
- Java Version:
Java 8