Skip to content

Commit 814cb6d

Browse files
committed
Release 4.0.3 - SpongeAPI 4.0.0 support
1 parent 68dbf24 commit 814cb6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<artifactId>vanish</artifactId>
99

1010
<name>Vanish</name>
11-
<version>4.0.2</version>
11+
<version>4.0.3</version>
1212

1313
<url>http://kitteh.org/</url>
1414
<properties>
@@ -69,7 +69,7 @@
6969
<dependency>
7070
<groupId>org.spongepowered</groupId>
7171
<artifactId>spongeapi</artifactId>
72-
<version>3.1.0-SNAPSHOT</version>
72+
<version>4.0.0</version>
7373
<type>jar</type>
7474
<optional>true</optional>
7575
<scope>provided</scope>

src/main/java/org/kitteh/vanish/Vanish.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* Spiritual successor to VanishNoPacket, for Sponge.
3535
*/
36-
@Plugin(id = "Vanish", name = "Vanish", version = "4.0.2")
36+
@Plugin(id = "org.kitteh.vanish", name = "Vanish", version = "4.0.3")
3737
public class Vanish {
3838
public static final String PERMISSION_VANISH = "vanish.vanish";
3939

src/main/java/org/kitteh/vanish/VanishCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public CommandResult execute(@Nonnull CommandSource commandSource, @Nonnull Comm
7575
for (int i = 0; i < 10; i++) {
7676
location.getExtent().createEntity(EntityTypes.BAT, location.getPosition()).ifPresent(bat -> {
7777
bats.add(bat);
78-
location.getExtent().spawnEntity(bat, Cause.of(bat)); // TODO actual causes once SpongeDocs match SpongeReality
79-
bat.offer(Keys.INVULNERABILITY, LIFE_TICKS);
78+
location.getExtent().spawnEntity(bat, Cause.builder().owner(this.plugin).build()); // TODO Am I doing this right?
79+
bat.offer(Keys.INVULNERABILITY_TICKS, LIFE_TICKS);
8080
});
8181
}
8282
// TODO remove on shutdown too!

0 commit comments

Comments
 (0)