(Feature) API - getOwner() in WarpRemoveEvent
Kryniowesegryderiusz opened this issue · 6 comments
Is your feature request related to a problem? Please describe.
I need for my own addon getting owner instance of Player of removed sign in WarpRemoveEvent. I'd love to see that <3
As the only player who can remove their sign is the sign's owner, the UUID of the owner is found by getRemover()
Not really, there is even permission for that.
Warps/src/main/java/world/bentobox/warps/listeners/WarpSignsListener.java
Lines 123 to 125 in 86612b7
Okay, good point. I'll fix it.
Let me know if that works for you.
Maybe I'm doing something wrongly, but when I import warps as dependency it doesnt show me this method.
It's still in the development branch, so if you are using Maven then you need to use the SNAPSHOT until I release:
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>Warps</artifactId>
<version>Warps-1.11.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Make sure you have the snapshot repo in you pom.xml:
<repository>
<id>codemc</id>
<url>https://repo.codemc.org/repository/maven-snapshots/</url>
</repository>