diff --git a/BloodNight-core/src/main/java/de/eldoria/bloodnight/command/bloodnight/ForceNight.java b/BloodNight-core/src/main/java/de/eldoria/bloodnight/command/bloodnight/ForceNight.java index ebb7591f..06ab4883 100644 --- a/BloodNight-core/src/main/java/de/eldoria/bloodnight/command/bloodnight/ForceNight.java +++ b/BloodNight-core/src/main/java/de/eldoria/bloodnight/command/bloodnight/ForceNight.java @@ -47,8 +47,8 @@ public void onCommand(@NotNull CommandSender sender, @NotNull String alias, @Not world = args.asWorld(0, world); boolean enabled = configuration.getWorldSettings(world).isEnabled(); - CommandAssertions.isTrue(!enabled, "error.worldNotEnabled", Replacement.create("WORLD", world)); - CommandAssertions.isTrue(!nightManager.getBloodWorldsSet().contains(world), "forceNight.alreadyActive", + CommandAssertions.isTrue(enabled, "error.worldNotEnabled", Replacement.create("WORLD", world)); + CommandAssertions.isFalse(nightManager.getBloodWorldsSet().contains(world), "forceNight.alreadyActive", Replacement.create("WORLD", world.getName())); nightManager.forceNight(world); messageSender().sendMessage(sender, "forceNight.enabled", diff --git a/BloodNight-core/src/main/java/de/eldoria/bloodnight/specialmobs/mobs/creeper/GhostCreeper.java b/BloodNight-core/src/main/java/de/eldoria/bloodnight/specialmobs/mobs/creeper/GhostCreeper.java index 36e23fce..02f10e2f 100644 --- a/BloodNight-core/src/main/java/de/eldoria/bloodnight/specialmobs/mobs/creeper/GhostCreeper.java +++ b/BloodNight-core/src/main/java/de/eldoria/bloodnight/specialmobs/mobs/creeper/GhostCreeper.java @@ -18,8 +18,7 @@ public class GhostCreeper extends ExtendedSpecialMob { public GhostCreeper(Creeper creeper) { super(EntityType.VEX, creeper); Version optVersion = ServerVersion.getVersion(); - // Entites can be invisible since 1.16.3. Hotfix for backwards compatibiliy to spigot 1.16.2 - getBaseEntity().setInvulnerable(true); + getBaseEntity().setInvisible(true); new BukkitRunnable() { @Override public void run() {