diff --git a/pom.xml b/pom.xml
index 9b62dcc..f93deea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
vanish
Vanish
- 4.0.2
+ 4.0.3
http://kitteh.org/
@@ -69,7 +69,7 @@
org.spongepowered
spongeapi
- 3.1.0-SNAPSHOT
+ 4.0.0
jar
true
provided
diff --git a/src/main/java/org/kitteh/vanish/Vanish.java b/src/main/java/org/kitteh/vanish/Vanish.java
index bf2b476..d318f8b 100644
--- a/src/main/java/org/kitteh/vanish/Vanish.java
+++ b/src/main/java/org/kitteh/vanish/Vanish.java
@@ -33,7 +33,7 @@
/**
* Spiritual successor to VanishNoPacket, for Sponge.
*/
-@Plugin(id = "Vanish", name = "Vanish", version = "4.0.2")
+@Plugin(id = "org.kitteh.vanish", name = "Vanish", version = "4.0.3")
public class Vanish {
public static final String PERMISSION_VANISH = "vanish.vanish";
diff --git a/src/main/java/org/kitteh/vanish/VanishCommand.java b/src/main/java/org/kitteh/vanish/VanishCommand.java
index f1d3bf5..f23f94b 100644
--- a/src/main/java/org/kitteh/vanish/VanishCommand.java
+++ b/src/main/java/org/kitteh/vanish/VanishCommand.java
@@ -75,8 +75,8 @@ public CommandResult execute(@Nonnull CommandSource commandSource, @Nonnull Comm
for (int i = 0; i < 10; i++) {
location.getExtent().createEntity(EntityTypes.BAT, location.getPosition()).ifPresent(bat -> {
bats.add(bat);
- location.getExtent().spawnEntity(bat, Cause.of(bat)); // TODO actual causes once SpongeDocs match SpongeReality
- bat.offer(Keys.INVULNERABILITY, LIFE_TICKS);
+ location.getExtent().spawnEntity(bat, Cause.builder().owner(this.plugin).build()); // TODO Am I doing this right?
+ bat.offer(Keys.INVULNERABILITY_TICKS, LIFE_TICKS);
});
}
// TODO remove on shutdown too!