From e51818c15d88c1e5b2aad388c0c2722074068266 Mon Sep 17 00:00:00 2001 From: cnr Date: Sun, 28 May 2017 02:08:17 -0500 Subject: [PATCH] Reduce alien shard reward to 5 per hit and make lobbies nighttime --- .../game/games/alieninvasion/AlienInvasion.java | 11 ++++++++--- .../game/games/alieninvasion/PhaserProjectile.java | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/AlienInvasion.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/AlienInvasion.java index e061f2ff0..a89a178f4 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/AlienInvasion.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/AlienInvasion.java @@ -8,10 +8,11 @@ import java.util.List; import java.util.Map.Entry; import java.util.Set; -import nautilus.game.arcade.events.PlayerKitGiveEvent; +import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; +import org.bukkit.World; import org.bukkit.entity.ExperienceOrb; import org.bukkit.entity.Player; import org.bukkit.entity.Skeleton; @@ -20,8 +21,6 @@ import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.event.entity.EntitySpawnEvent; import org.bukkit.event.entity.ItemSpawnEvent; import org.bukkit.inventory.ItemStack; -import org.bukkit.potion.PotionEffect; -import org.bukkit.potion.PotionEffectType; import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scoreboard.Team; @@ -42,6 +41,7 @@ import mineplex.core.utils.UtilVariant; import nautilus.game.arcade.ArcadeManager; import nautilus.game.arcade.GameType; import nautilus.game.arcade.events.GameStateChangeEvent; +import nautilus.game.arcade.events.PlayerKitGiveEvent; import nautilus.game.arcade.game.SoloGame; import nautilus.game.arcade.game.games.alieninvasion.kit.KitPlayer; import nautilus.game.arcade.game.games.dragonescape.DragonScore; @@ -97,6 +97,11 @@ public class AlienInvasion extends SoloGame new CompassModule() .register(this); + + for (World world : Bukkit.getWorlds()) + { + world.setTime(18000); + } } @Override diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/PhaserProjectile.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/PhaserProjectile.java index eee602a08..4d9c61e4b 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/PhaserProjectile.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/alieninvasion/PhaserProjectile.java @@ -22,7 +22,7 @@ import org.bukkit.util.Vector; public class PhaserProjectile implements Listener { - private static final int SHARDS_PER_HIT = 15; + private static final int SHARDS_PER_HIT = 5; private ArcadeManager _manager; private Projectile _projectile;