From 60dfce46123f92c098f679e52e705c4e2819728b Mon Sep 17 00:00:00 2001 From: Thanos paravantis Date: Wed, 2 Mar 2016 18:45:27 +0200 Subject: [PATCH] Challenge refactoring, move challenges to new package. --- .../game/games/mineware/AntiHackFix.java | 3 +- .../game/games/mineware/BawkBawkBattles.java | 88 +++--- .../mineware/{ => challenge}/Challenge.java | 3 +- .../{ => challenge}/ChallengeData.java | 2 +- .../{ => challenge}/ChallengeSettings.java | 2 +- .../{ => challenge}/ChallengeType.java | 2 +- .../other}/ChallengeSeperateRooms.java | 5 +- .../challenge/other/ChallengeTeam.java | 43 +++ .../other}/InfestationZombie.java | 4 +- .../type}/ChallengeAnvilDance.java | 7 +- .../type}/ChallengeArrowRampage.java | 7 +- .../type}/ChallengeBlockLobbers.java | 6 +- .../type}/ChallengeBouncingBlock.java | 6 +- .../type}/ChallengeBuildRace.java | 6 +- .../challenge/type/ChallengeCloudFall.java | 169 ++++++++++ .../type/ChallengeDiamondSeeker.java | 148 +++++++++ .../type}/ChallengeDogsVersusCats.java | 294 +++++++++--------- .../type}/ChallengeDragonEgg.java | 6 +- .../type}/ChallengeFallingBlocks.java | 6 +- .../type}/ChallengeFastFood.java | 6 +- .../type}/ChallengeFishingDay.java | 6 +- .../type}/ChallengeInfestation.java | 8 +- .../type}/ChallengeKangarooJump.java | 6 +- .../type}/ChallengeKingOfTheHill.java | 6 +- .../type}/ChallengeLavaRun.java | 6 +- .../type}/ChallengeMilkACow.java | 6 +- .../type}/ChallengeMineADiamond.java | 6 +- .../type}/ChallengeMinecartDance.java | 6 +- .../type}/ChallengeMiniOneInTheQuiver.java | 6 +- .../type}/ChallengeNavigateMaze.java | 6 +- .../type}/ChallengePickASide.java | 6 +- .../type}/ChallengePunchThePig.java | 6 +- .../type}/ChallengeRedLightGreenLight.java | 6 +- .../type}/ChallengeReverseTag.java | 6 +- .../type}/ChallengeRushPush.java | 6 +- .../type}/ChallengeShootChickens.java | 6 +- .../type}/ChallengeSmashOff.java | 6 +- .../type}/ChallengeSpleef.java | 6 +- .../type}/ChallengeStandOnColor.java | 6 +- .../type}/ChallengeTntLauncher.java | 6 +- .../type}/ChallengeTreasureDigger.java | 6 +- .../type}/ChallengeVolleyPig.java | 6 +- .../type}/ChallengeWaterHorror.java | 6 +- .../type}/ChallengeWaveCrush.java | 6 +- .../type}/MazeGenerator.java | 2 +- .../type}/removed/ChallengeBlockShot.java | 6 +- .../type}/removed/ChallengeBuildBuilding.java | 6 +- .../removed/ChallengeChickenFishing.java | 6 +- .../type}/removed/ChallengeDiamondFall.java | 6 +- .../type}/removed/ChallengeHitTargets.java | 6 +- .../type}/removed/ChallengeNameThatSound.java | 6 +- .../type/removed}/ChallengeRunner.java | 6 +- .../type}/removed/ChallengeSimonSays.java | 6 +- .../type}/removed/ChallengeSkyFall.java | 6 +- .../type}/removed/ChallengeTameTheWolf.java | 6 +- .../challenges/ChallengeChestLoot.java | 139 --------- .../challenges/ChallengeCloudFall.java | 171 ---------- .../mineware/events/ChallengeEndEvent.java | 2 +- .../mineware/events/ChallengeStartEvent.java | 2 +- .../stats/MinewareKangarooAtHeart.java | 4 +- .../stats/MinewareLauraCraftTracker.java | 4 +- .../stats/MinewareMilkManTracker.java | 4 +- .../stats/MinewarePinataMasterTracker.java | 4 +- .../mineware/stats/MinewareSurfUpTracker.java | 4 +- .../stats/MinewareTagMasterTracker.java | 4 +- 65 files changed, 713 insertions(+), 646 deletions(-) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{ => challenge}/Challenge.java (98%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{ => challenge}/ChallengeData.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{ => challenge}/ChallengeSettings.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{ => challenge}/ChallengeType.java (79%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{ => challenge/other}/ChallengeSeperateRooms.java (92%) create mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeTeam.java rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{model => challenge/other}/InfestationZombie.java (91%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeAnvilDance.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeArrowRampage.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeBlockLobbers.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeBouncingBlock.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeBuildRace.java (96%) create mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java create mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDiamondSeeker.java rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeDogsVersusCats.java (57%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeDragonEgg.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeFallingBlocks.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeFastFood.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeFishingDay.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeInfestation.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeKangarooJump.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeKingOfTheHill.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeLavaRun.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeMilkACow.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeMineADiamond.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeMinecartDance.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeMiniOneInTheQuiver.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeNavigateMaze.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengePickASide.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengePunchThePig.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeRedLightGreenLight.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeReverseTag.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeRushPush.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeShootChickens.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeSmashOff.java (88%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeSpleef.java (90%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeStandOnColor.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeTntLauncher.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeTreasureDigger.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeVolleyPig.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeWaterHorror.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/ChallengeWaveCrush.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/MazeGenerator.java (96%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeBlockShot.java (95%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeBuildBuilding.java (86%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeChickenFishing.java (92%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeDiamondFall.java (93%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeHitTargets.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeNameThatSound.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type/removed}/ChallengeRunner.java (94%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeSimonSays.java (97%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeSkyFall.java (92%) rename Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/{challenges => challenge/type}/removed/ChallengeTameTheWolf.java (95%) delete mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeChestLoot.java delete mode 100644 Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeCloudFall.java diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/AntiHackFix.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/AntiHackFix.java index 3c63b617d..577e493db 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/AntiHackFix.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/AntiHackFix.java @@ -13,6 +13,7 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerMoveEvent; import org.bukkit.potion.PotionEffectType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; import net.minecraft.server.v1_8_R3.EntityPlayer; /** @@ -26,7 +27,7 @@ public class AntiHackFix implements Listener public AntiHackFix(Challenge challenge) { - _host = challenge.Host; + _host = challenge.getHost(); _challenge = challenge; Bukkit.getPluginManager().registerEvents(this, _host.getArcadeManager().getPlugin()); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/BawkBawkBattles.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/BawkBawkBattles.java index da88e18d1..e85444cd2 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/BawkBawkBattles.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/BawkBawkBattles.java @@ -74,40 +74,43 @@ import nautilus.game.arcade.events.GameStateChangeEvent; import nautilus.game.arcade.game.GameTeam; import nautilus.game.arcade.game.GameTeam.PlayerState; import nautilus.game.arcade.game.TeamGame; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeAnvilDance; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeArrowRampage; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeBlockLobbers; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeBouncingBlock; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeBuildRace; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeChestLoot; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeCloudFall; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeDogsVersusCats; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeDragonEgg; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeFallingBlocks; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeFastFood; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeFishingDay; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeInfestation; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeKangarooJump; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeKingOfTheHill; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeLavaRun; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeMilkACow; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeMineADiamond; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeMinecartDance; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeMiniOneInTheQuiver; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeNavigateMaze; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengePickASide; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengePunchThePig; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeRedLightGreenLight; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeReverseTag; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeRushPush; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeShootChickens; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeSmashOff; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeStandOnColor; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeTntLauncher; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeTreasureDigger; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeVolleyPig; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeWaterHorror; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeWaveCrush; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.other.ChallengeSeperateRooms; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeAnvilDance; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeArrowRampage; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeBlockLobbers; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeBouncingBlock; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeBuildRace; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeCloudFall; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeDiamondSeeker; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeDogsVersusCats; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeDragonEgg; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeFallingBlocks; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeFastFood; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeFishingDay; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeInfestation; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeKangarooJump; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeKingOfTheHill; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeLavaRun; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeMilkACow; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeMineADiamond; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeMinecartDance; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeMiniOneInTheQuiver; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeNavigateMaze; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengePickASide; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengePunchThePig; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeRedLightGreenLight; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeReverseTag; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeRushPush; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeShootChickens; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeSmashOff; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeStandOnColor; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeTntLauncher; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeTreasureDigger; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeVolleyPig; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeWaterHorror; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeWaveCrush; import nautilus.game.arcade.game.games.mineware.effect.ChickenAttack; import nautilus.game.arcade.game.games.mineware.effect.DeathEffect; import nautilus.game.arcade.game.games.mineware.effect.DeathEffectData; @@ -208,9 +211,9 @@ public class BawkBawkBattles extends TeamGame implements IThrown _challenges.add(ChallengeBlockLobbers.class); // Playable - Refactored _challenges.add(ChallengeBouncingBlock.class); // Playable - Refactored _challenges.add(ChallengeBuildRace.class); // Playable - Refactored - _challenges.add(ChallengeChestLoot.class); // Playable - _challenges.add(ChallengeCloudFall.class); // Broken - _challenges.add(ChallengeDogsVersusCats.class); // Playable + _challenges.add(ChallengeDiamondSeeker.class); // Playable - Refactored + _challenges.add(ChallengeCloudFall.class); // Test Needed + _challenges.add(ChallengeDogsVersusCats.class); // Playable - Refactored _challenges.add(ChallengeDragonEgg.class); // Playable _challenges.add(ChallengeFallingBlocks.class); // Playable _challenges.add(ChallengeFastFood.class); // Playable @@ -782,12 +785,16 @@ public class BawkBawkBattles extends TeamGame implements IThrown List messages = Arrays.asList(challenge.getGameMessages()); + String type = challenge.getType().toString(); + + if (challenge.getSettings().isTeamBased() && challenge.getType() == ChallengeType.LastStanding) + type = "Team Based"; + for (Player player : UtilServer.getPlayers()) // Show to all players. { UtilPlayer.message(player, ""); - // UtilPlayer.message(player, F.count(ArcadeFormat.Line)); - UtilPlayer.message(player, " " + C.cYellow + challenge.getName() + C.Reset + " " + C.cGray + challenge.getType().toString()); + UtilPlayer.message(player, " " + C.cYellow + challenge.getName() + C.Reset + " " + C.cGray + type); UtilPlayer.message(player, ""); for (String currentMessage : messages) @@ -795,7 +802,6 @@ public class BawkBawkBattles extends TeamGame implements IThrown UtilPlayer.message(player, C.cGray + " - " + C.cWhite + currentMessage); UtilPlayer.message(player, ""); - // UtilPlayer.message(player, F.count(ArcadeFormat.Line)); } while (true) @@ -1234,7 +1240,7 @@ public class BawkBawkBattles extends TeamGame implements IThrown try { Class result = (Class) Class - .forName("nautilus.game.arcade.game.games.mineware.challenges.Challenge" + rawClass); + .forName("nautilus.game.arcade.game.games.mineware.challenge.type.Challenge" + rawClass); Announce(C.cAqua + C.Bold + GetName() + " restricted to " + rawClass + " challenge."); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/Challenge.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/Challenge.java similarity index 98% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/Challenge.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/Challenge.java index 5838f5a00..7f29a45e0 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/Challenge.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/Challenge.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware; +package nautilus.game.arcade.game.games.mineware.challenge; import java.util.ArrayList; import java.util.List; @@ -33,6 +33,7 @@ import mineplex.core.projectile.ProjectileUser; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.condition.Condition.ConditionType; +import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; import nautilus.game.arcade.world.WorldData; public abstract class Challenge implements Listener diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeData.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeData.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeData.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeData.java index b791efac6..0d440d1b3 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeData.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeData.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware; +package nautilus.game.arcade.game.games.mineware.challenge; import java.util.Collection; import java.util.HashSet; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSettings.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeSettings.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSettings.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeSettings.java index c350cdf61..20caa0727 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSettings.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeSettings.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware; +package nautilus.game.arcade.game.games.mineware.challenge; import org.bukkit.Location; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeType.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeType.java similarity index 79% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeType.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeType.java index 075887a0a..67e6729e5 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeType.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/ChallengeType.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware; +package nautilus.game.arcade.game.games.mineware.challenge; public enum ChallengeType { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSeperateRooms.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeSeperateRooms.java similarity index 92% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSeperateRooms.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeSeperateRooms.java index 5892e881b..0314c5ebf 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/ChallengeSeperateRooms.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeSeperateRooms.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware; +package nautilus.game.arcade.game.games.mineware.challenge.other; import java.util.ArrayList; import java.util.HashMap; @@ -8,6 +8,9 @@ import org.bukkit.Location; import org.bukkit.entity.Player; import mineplex.core.common.util.UtilPlayer; +import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public abstract class ChallengeSeperateRooms extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeTeam.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeTeam.java new file mode 100644 index 000000000..4fd9e5471 --- /dev/null +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/ChallengeTeam.java @@ -0,0 +1,43 @@ +package nautilus.game.arcade.game.games.mineware.challenge.other; + +import java.util.ArrayList; + +import org.bukkit.entity.Player; + +public class ChallengeTeam +{ + private String _name; + private ArrayList _players = new ArrayList<>(); + + public ChallengeTeam(String name) + { + _name = name; + } + + public String getName() + { + return _name; + } + + public void add(Player player) + { + if (!_players.contains(player)) + _players.add(player); + } + + public void remove(Player player) + { + if (_players.contains(player)) + _players.remove(player); + } + + public boolean isMember(Player player) + { + return _players.contains(player); + } + + public ArrayList getPlayers() + { + return _players; + } +} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/model/InfestationZombie.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/InfestationZombie.java similarity index 91% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/model/InfestationZombie.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/InfestationZombie.java index b68d31451..5bcc15ada 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/model/InfestationZombie.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/other/InfestationZombie.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.model; +package nautilus.game.arcade.game.games.mineware.challenge.other; import org.bukkit.Location; import org.bukkit.World; @@ -8,7 +8,7 @@ import org.bukkit.entity.Zombie; import mineplex.core.common.util.C; import mineplex.core.common.util.UtilEnt; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeInfestation; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeInfestation; public class InfestationZombie { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeAnvilDance.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeAnvilDance.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeAnvilDance.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeAnvilDance.java index 921da3e6f..13f02d44e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeAnvilDance.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeAnvilDance.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -13,7 +13,6 @@ import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.entity.Entity; import org.bukkit.entity.FallingBlock; -import org.bukkit.entity.Item; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.entity.EntityChangeBlockEvent; @@ -27,8 +26,8 @@ import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilShapes; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; // TODO: Use onCollide method for anvil damage. diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeArrowRampage.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeArrowRampage.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeArrowRampage.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeArrowRampage.java index 7cfe91e93..4af6adcfc 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeArrowRampage.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeArrowRampage.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -23,8 +23,8 @@ import mineplex.core.common.util.UtilBlock; import mineplex.core.common.util.UtilMath; import mineplex.core.itemstack.ItemBuilder; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; @SuppressWarnings("deprecation") public class ChallengeArrowRampage extends Challenge @@ -118,6 +118,7 @@ public class ChallengeArrowRampage extends Challenge @Override public void onEnd() { + _arrows.clear(); removeFallingBlockEntities(); // _antiHackFix.clear(); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBlockLobbers.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBlockLobbers.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBlockLobbers.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBlockLobbers.java index c18aaa1d9..d954b8e7e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBlockLobbers.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBlockLobbers.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -26,8 +26,8 @@ import mineplex.core.projectile.ProjectileUser; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeBlockLobbers extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBouncingBlock.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBouncingBlock.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java index ba1c9b6c5..d1491ad27 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBouncingBlock.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBouncingBlock.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -27,8 +27,8 @@ import mineplex.core.recharge.Recharge; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeBouncingBlock extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBuildRace.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBuildRace.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java index 70e86c818..bd16a2cc8 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeBuildRace.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeBuildRace.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -23,8 +23,8 @@ import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilShapes; import mineplex.core.common.util.UtilTextMiddle; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeBuildRace extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java new file mode 100644 index 000000000..4c5f4fdfe --- /dev/null +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeCloudFall.java @@ -0,0 +1,169 @@ +package nautilus.game.arcade.game.games.mineware.challenge.type; + +import java.util.ArrayList; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.entity.EntityDamageEvent.DamageCause; + +import mineplex.core.common.util.UtilMath; +import mineplex.core.common.util.UtilShapes; +import mineplex.minecraft.game.core.damage.CustomDamageEvent; +import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; + +public class ChallengeCloudFall extends Challenge +{ + public ChallengeCloudFall(BawkBawkBattles host) + { + super( + host, + ChallengeType.FirstComplete, + "Cloud Fall", + "Jump and land on green wool.", + "Avoid the deadly clouds!"); + } + + @Override + public ArrayList createSpawns() + { + ArrayList spawns = new ArrayList(); + int size = getArenaSize() - 1; + + for (int x = -size; x <= getArenaSize(); x++) + { + for (int z = -size; z <= getArenaSize(); z++) + { + boolean goodSpawn = true; + + int y = 73; + + if (x % 2 == 0 && z % 2 == 0) + { + Block targetBlock = getCenter().add(x, y, z).getBlock(); + y = (int) targetBlock.getLocation().getY(); + + while (targetBlock.getType() == Material.AIR) + { + if (y > 76) + { + goodSpawn = false; + break; + } + + y++; + } + + if (goodSpawn) + { + spawns.add(getCenter().clone().add(x + 0.5, y + 1.1, z + 0.5)); + } + } + } + } + + return spawns; + } + + @SuppressWarnings("deprecation") + @Override + public void createMap() + { + for (int x = -getArenaSize(); x <= getArenaSize(); x++) + { + for (int z = -getArenaSize(); z <= getArenaSize(); z++) + { + for (int y = 0; y <= 75; y++) + { + Block block = getCenter().getBlock().getRelative(x, y, z); + int size = getArenaSize() - 2; + + if (y == 0) + { + block.setType(Material.WOOL); + } + else if (y == 1 && UtilMath.r(8) == 0 && Math.abs(x) < size && Math.abs(z) < size) + { + block.setType(Material.WOOL); + block.setData((byte) 5); + + block.getRelative(BlockFace.UP).setType(Material.WOOL); + block.getRelative(BlockFace.UP).setData((byte) 5); + addBlock(block.getRelative(BlockFace.UP)); + } + else if (y > 10 && y < 70 && UtilMath.r(200) == 1) + { + block.getRelative(BlockFace.NORTH).setType(Material.STAINED_CLAY); + block.getRelative(BlockFace.EAST).setType(Material.STAINED_CLAY); + block.getRelative(BlockFace.WEST).setType(Material.STAINED_CLAY); + block.getRelative(BlockFace.SOUTH).setType(Material.STAINED_CLAY); + + addBlock(block.getRelative(BlockFace.NORTH)); + addBlock(block.getRelative(BlockFace.EAST)); + addBlock(block.getRelative(BlockFace.WEST)); + addBlock(block.getRelative(BlockFace.SOUTH)); + } + + addBlock(block); + } + } + } + + // Spawn Platform + + int size = 8; + + for (Location location : UtilShapes.getCircle(getCenter().add(0, 13, 0), false, size)) + { + Block block = location.getBlock(); + block.setType(Material.WOOL); + block.setData((byte) UtilMath.r(16)); + + addBlock(block); + } + for (Location location : UtilShapes.getCircle(getCenter().add(0, 13, 0), false, size / 2)) + { + location.getBlock().setType(Material.AIR); + } + + } + + @Override + public void onStart() + { + Host.DamageFall = true; + } + + @Override + public void onEnd() + { + Host.DamageFall = false; + } + + @EventHandler + public void onCustomDamage(CustomDamageEvent event) + { + if (!Host.IsLive()) + return; + + if (!(event.GetDamageeEntity() instanceof Player)) + return; + + if (event.GetCause() != DamageCause.FALL) + return; + + if (Data.isDone(event.GetDamageePlayer())) + return; + + if (Math.round(event.GetDamageePlayer().getLocation().getY()) == 3) + { + event.SetCancelled("Fell on Wool"); + setCompleted(event.GetDamageePlayer()); + } + } +} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDiamondSeeker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDiamondSeeker.java new file mode 100644 index 000000000..ed0d0be6c --- /dev/null +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDiamondSeeker.java @@ -0,0 +1,148 @@ +package nautilus.game.arcade.game.games.mineware.challenge.type; + +import java.util.ArrayList; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.block.Block; +import org.bukkit.block.BlockFace; +import org.bukkit.block.Chest; +import org.bukkit.block.DoubleChest; +import org.bukkit.entity.Player; +import org.bukkit.event.EventHandler; +import org.bukkit.event.inventory.InventoryClickEvent; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.InventoryHolder; +import org.bukkit.inventory.ItemStack; + +import mineplex.core.common.util.UtilMath; +import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; + +public class ChallengeDiamondSeeker extends Challenge +{ + public ChallengeDiamondSeeker(BawkBawkBattles host) + { + super( + host, + ChallengeType.FirstComplete, + "Diamond Seeker", + "Find a diamond in the chests."); + + Settings.setUseMapHeight(); + } + + @Override + public ArrayList createSpawns() + { + ArrayList spawns = new ArrayList(); + int size = getArenaSize() - 1; + + for (int x = -size; x <= size; x++) + { + for (int z = -size; z <= size; z++) + { + if (x % 2 == 0 && z % 2 == 0) + { + spawns.add(getCenter().clone().add(x + 0.5, 2.1, z + 0.5)); + } + } + } + + return spawns; + } + + @SuppressWarnings("deprecation") + @Override + public void createMap() + { + ArrayList inventories = new ArrayList(); + + for (int x = -getArenaSize(); x <= getArenaSize(); x++) + { + for (int z = -getArenaSize(); z <= getArenaSize(); z++) + { + Block block = getCenter().getBlock().getRelative(x, 0, z); + block.setType(Material.STAINED_CLAY); + block.setData((byte) UtilMath.r(16)); + + addBlock(block); + + if (Math.abs(x) % 2 == 0 && Math.abs(z) % 2 == 0) + { + Block relativeBlock = block.getRelative(0, 1, 0); + relativeBlock.setType(Material.CHEST); + relativeBlock.setData((byte) UtilMath.r(4)); + addBlock(relativeBlock); + + Inventory inventory = ((Chest) relativeBlock.getState()).getInventory(); + inventories.add(inventory); + + for (int i = 0; i < inventory.getSize(); i++) + { + ItemStack item = new ItemStack(UtilMath.randomElement(Material.values())); + + if (item.getType() != Material.DIAMOND && item.getType() != Material.AIR) + inventory.setItem(i, item); + else + continue; + } + } + else + { + Block relativeBlock = block.getRelative(BlockFace.UP); + relativeBlock.setType(Material.STAINED_CLAY); + relativeBlock.setData((byte) UtilMath.r(16)); + addBlock(relativeBlock); + } + } + } + + for (int i = 0; i < 10 + getChallengers().size(); i++) + { + Inventory inventory = UtilMath.randomElement(inventories); + inventory.setItem(UtilMath.r(inventory.getSize()), new ItemStack(Material.DIAMOND)); + } + } + + @Override + public void onStart() + { + Host.InventoryOpenChest = true; + Host.InventoryOpenBlock = true; + } + + @Override + public void onEnd() + { + Host.InventoryOpenChest = false; + Host.InventoryOpenBlock = false; + } + + @EventHandler + public void onInventoryClick(InventoryClickEvent event) + { + if (!Host.IsLive()) + return; + + InventoryHolder holder = event.getInventory().getHolder(); + Player player = (Player) event.getWhoClicked(); + + if (!(holder instanceof Player)) + { + event.setCancelled(true); + + if (holder instanceof DoubleChest || holder instanceof Chest) + { + ItemStack item = event.getCurrentItem(); + + if (item != null && item.getType() == Material.DIAMOND) + { + event.setCurrentItem(new ItemStack(Material.AIR)); + setCompleted(player); + } + } + } + } +} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDogsVersusCats.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDogsVersusCats.java similarity index 57% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDogsVersusCats.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDogsVersusCats.java index e96e13086..fe14a87e4 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDogsVersusCats.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDogsVersusCats.java @@ -1,9 +1,7 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; -import java.util.HashMap; -import org.bukkit.Bukkit; import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Material; @@ -13,6 +11,8 @@ import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerQuitEvent; +import org.bukkit.inventory.ItemStack; import mineplex.core.common.util.C; import mineplex.core.common.util.UtilMath; @@ -28,17 +28,19 @@ import mineplex.core.itemstack.ItemStackFactory; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.other.ChallengeTeam; public class ChallengeDogsVersusCats extends Challenge { + private ChallengeTeam _dogTeam; + private ChallengeTeam _catTeam; + private int _catScore = 0; private int _dogScore = 0; - private static final int _scorePerPlayer = 100; - - private HashMap _team = new HashMap(); // + private final int _scorePerPlayer = 100; public ChallengeDogsVersusCats(BawkBawkBattles host) { @@ -50,30 +52,124 @@ public class ChallengeDogsVersusCats extends Challenge "If you are a cat, meow.", "Look up and punch to bark or meow.", "First team to the end number wins!"); - + Settings.setUseMapHeight(); Settings.setTeamBased(); Settings.setDuration(75000); + + _catTeam = new ChallengeTeam("Cats"); + _dogTeam = new ChallengeTeam("Dogs"); } @Override public ArrayList createSpawns() { ArrayList spawns = new ArrayList(); + int size = getArenaSize() - 1; - for (int x = -(getArenaSize() - 1); x <= getArenaSize() - 1; x++) + for (int x = -size; x <= size; x++) { - for (int z = -(getArenaSize() - 1); z <= getArenaSize() - 1; z++) + for (int z = -size; z <= size; z++) { if (x % 2 == 0 && z % 2 == 0) { - spawns.add(getCenter().clone().add(x + 0.5, 1.1, z + 0.5)); + Location loc = getCenter().clone().add(x + 0.5, 1.1, z + 0.5); + spawns.add(loc); + System.out.println("X: " + loc.getX() + " Y:" + loc.getY() + " Z:" + loc.getZ()); } } } + return spawns; } + @SuppressWarnings("deprecation") + @Override + public void createMap() + { + for (int x = -getArenaSize(); x <= getArenaSize(); x++) + { + for (int z = -getArenaSize(); z <= getArenaSize(); z++) + { + for (int y = 0; y <= 1; y++) + { + System.out.println("1"); + Block block = getCenter().getBlock().getRelative(x, y, z); + + if (y == 0) + { + System.out.println("2"); + block.setType(Material.GRASS); + } + else + { + if (Math.abs(x) == getArenaSize() || Math.abs(z) == getArenaSize()) + { + System.out.println("3"); + block.setType(Material.FENCE); + } + else if (y == 1 && UtilMath.r(4) == 0) + { + System.out.println("4"); + if (UtilMath.r(8) == 0) + { + System.out.println("5"); + block.setType(UtilMath.random.nextBoolean() ? Material.YELLOW_FLOWER : Material.RED_ROSE); + } + else + { + System.out.println("6"); + block.setType(Material.LONG_GRASS); + block.setData((byte) 1); + } + } + } + + System.out.println("End"); + addBlock(block); + } + } + } + } + + @Override + public void onStart() + { + int looped = 0; + + for (Player player : getChallengers()) + { + player.setGameMode(GameMode.ADVENTURE); + + if (looped % 2 == 0) + { + _dogTeam.add(player); + + DisguiseWolf Ddog = new DisguiseWolf(player); + Host.getArcadeManager().GetDisguise().disguise(Ddog); + + player.getInventory() + .addItem(ItemStackFactory.Instance.CreateStack(Material.BONE, (byte) 0, 1, C.Reset + C.Bold + "Left-Click to bark!")); + UtilPlayer.message(player, C.cYellow + C.Bold + "You are a Dog, bark!"); + } + else + { + _catTeam.add(player); + + DisguiseCat Dcat = new DisguiseCat(player); + Host.getArcadeManager().GetDisguise().disguise(Dcat); + + player.getInventory().addItem( + ItemStackFactory.Instance.CreateStack(Material.STRING, (byte) 0, 1, C.Reset + C.Bold + "Left-Click to meow!")); + UtilPlayer.message(player, C.cYellow + C.Bold + "You are a Cat, meow!"); + } + + looped++; + } + + System.out.println("onStart"); + } + @Override public void onEnd() { @@ -86,178 +182,89 @@ public class ChallengeDogsVersusCats extends Challenge } } - @Override - public void onStart() - { - int looped = 0; - - for (Player player : Host.GetPlayers(true)) - { - if (Host.IsPlaying(player)) - { - player.setGameMode(GameMode.ADVENTURE); - } - if (looped % 2 == 0) - { - _team.put(player.getName(), "dog"); - - DisguiseWolf Ddog = new DisguiseWolf(player); - Host.getArcadeManager().GetDisguise().disguise(Ddog); - - player.getInventory().addItem( - ItemStackFactory.Instance.CreateStack(Material.BONE, (byte) 0, 1, C.Reset + C.Bold + "Left-Click to bark!")); - UtilPlayer.message(player, C.cYellow + C.Bold + "You are a Dog, bark!"); - } - else - { - _team.put(player.getName(), "cat"); - - DisguiseCat Dcat = new DisguiseCat(player); - Host.getArcadeManager().GetDisguise().disguise(Dcat); - - player.getInventory().addItem( - ItemStackFactory.Instance.CreateStack(Material.STRING, (byte) 0, 1, C.Reset + C.Bold + "Left-Click to meow!")); - UtilPlayer.message(player, C.cYellow + C.Bold + "You are a Cat, meow!"); - } - looped++; - } - } - - @SuppressWarnings("deprecation") - @Override - public void createMap() - { - for (int x = -getArenaSize(); x <= getArenaSize(); x++) - { - for (int z = -getArenaSize(); z <= getArenaSize(); z++) - { - for (int y = 0; y <= 1; y++) - { - Block b = getCenter().getBlock().getRelative(x, y, z); - - if (y == 0) - { - b.setType(Material.GRASS); - } - else - { - if (Math.abs(x) == getArenaSize() || Math.abs(z) == getArenaSize()) - { - b.setType(Material.FENCE); - } - else if (UtilMath.r(4) == 0 && y == 1) - { - if (UtilMath.r(8) == 0) - { - b.setType(UtilMath.random.nextBoolean() ? Material.YELLOW_FLOWER : Material.RED_ROSE); - } - else - { - b.setType(Material.LONG_GRASS); - b.setData((byte) 1); - } - } - } - - if (b.getType() != Material.AIR) - { - addBlock(b); - } - } - } - } - } - @EventHandler - public void checkForWinner(UpdateEvent event) + public void onUpdate(UpdateEvent event) { if (event.getType() != UpdateType.TICK) - { return; - } if (!Host.IsLive()) - { return; - } - int catScore = calculateScore("cat"); - int dogScore = calculateScore("dog"); + int catScore = calculateScore(_catTeam); + int dogScore = calculateScore(_dogTeam); UtilTextMiddle.display("", C.cBlue + C.Bold + " Dogs: " + C.cGreen + _dogScore + "/" + dogScore + C.cGray + " - " + C.cRed + C.Bold + "Cats: " + C.cGreen + _catScore + "/" + catScore); if (_catScore >= catScore) { - for (String player : _team.keySet()) + for (Player player : _catTeam.getPlayers()) { - if (_team.get(player) == "cat") - { - setCompleted(Bukkit.getPlayer(player)); - } - else - { - setLost(Bukkit.getPlayer(player)); - } + setCompleted(player); } } else if (_dogScore >= dogScore) { - for (String player : _team.keySet()) + for (Player player : _dogTeam.getPlayers()) { - if (_team.get(player) == "dog") - { - setCompleted(Bukkit.getPlayer(player)); - } - else - { - setLost(Bukkit.getPlayer(player)); - } + setCompleted(player); } } } @EventHandler - public void onItemLeftClick(PlayerInteractEvent event) + public void onPlayerInteract(PlayerInteractEvent event) { if (!Host.IsLive()) - { return; - } - if (!Host.IsAlive(event.getPlayer())) - { + + Player player = event.getPlayer(); + + if (!Host.IsAlive(player)) return; - } - if (Data.isCompleted(event.getPlayer())) - { + + if (Data.isCompleted(player)) return; - } - if ((event.getAction() == Action.LEFT_CLICK_AIR) || (event.getAction() == Action.LEFT_CLICK_BLOCK)) + + if (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK) { - if (event.getPlayer().getItemInHand().getType() == Material.BONE || event.getPlayer().getItemInHand().getType() == Material.STRING) + ItemStack item = player.getItemInHand(); + + if (item.getType() == Material.BONE || item.getType() == Material.STRING) { - if (_team.get(event.getPlayer().getName()) == "cat") + if (_catTeam.isMember(player)) { - //_catScore++; incrementCatScore(); - event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.CAT_MEOW, 1f, 1f); + player.playSound(event.getPlayer().getLocation(), Sound.CAT_MEOW, 1f, 1f); } else { - //_dogScore++; incrementDogScore(); - event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.WOLF_BARK, 1f, 1f); + player.playSound(event.getPlayer().getLocation(), Sound.WOLF_BARK, 1f, 1f); } + UtilParticle.PlayParticle(ParticleType.NOTE, event.getPlayer().getLocation().add(0.5, 1, 0.5), 0.5f, 0.5f, 0.5f, 0f, 2, ViewDist.MAX, UtilServer.getPlayers()); } - } } + @EventHandler + public void onPlayerQuit(PlayerQuitEvent event) + { + if (!Host.IsLive()) + return; + + Player player = event.getPlayer(); + + _catTeam.remove(player); + _dogTeam.remove(player); + } + private void incrementCatScore() { - int maxScore = calculateScore("cat"); + int maxScore = calculateScore(_catTeam); if (_catScore < maxScore) _catScore++; @@ -265,23 +272,22 @@ public class ChallengeDogsVersusCats extends Challenge private void incrementDogScore() { - int maxScore = calculateScore("dog"); + int maxScore = calculateScore(_dogTeam); if (_dogScore < maxScore) _dogScore++; } - public int calculateScore(String teamName) + @SuppressWarnings("unused") + public int calculateScore(ChallengeTeam team) { int amountOnTeam = 0; - for (String playerName : _team.keySet()) + for (Player player : team.getPlayers()) { - if (teamName == _team.get(playerName)) - { - amountOnTeam++; - } + amountOnTeam++; } + return amountOnTeam * _scorePerPlayer; } } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDragonEgg.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDragonEgg.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDragonEgg.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDragonEgg.java index 4b75c1c03..de52da5c4 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeDragonEgg.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeDragonEgg.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -21,8 +21,8 @@ import mineplex.core.common.util.UtilPlayer; import mineplex.core.common.util.UtilServer; import mineplex.core.itemstack.ItemBuilder; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeDragonEgg extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFallingBlocks.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFallingBlocks.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java index efc39da3e..1e7bd2a95 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFallingBlocks.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFallingBlocks.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -26,8 +26,8 @@ import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilShapes; import mineplex.core.common.util.UtilTextBottom; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeFallingBlocks extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFastFood.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFastFood.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFastFood.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFastFood.java index 548620ced..05b3e04cd 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFastFood.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFastFood.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; @@ -28,8 +28,8 @@ import mineplex.core.common.util.UtilShapes; import mineplex.core.itemstack.ItemStackFactory; import mineplex.core.recharge.Recharge; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeFastFood extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFishingDay.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFishingDay.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFishingDay.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFishingDay.java index 7f752583f..8d8bb6126 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeFishingDay.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeFishingDay.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -38,8 +38,8 @@ import mineplex.core.common.util.UtilTextBottom; import mineplex.core.itemstack.ItemBuilder; import mineplex.core.recharge.Recharge; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; @SuppressWarnings("deprecation") public class ChallengeFishingDay extends Challenge diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeInfestation.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeInfestation.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeInfestation.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeInfestation.java index 36e017568..832369cca 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeInfestation.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeInfestation.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -23,9 +23,9 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; -import nautilus.game.arcade.game.games.mineware.model.InfestationZombie; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.other.InfestationZombie; public class ChallengeInfestation extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKangarooJump.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKangarooJump.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKangarooJump.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKangarooJump.java index 9ffc4075c..5ce36a59e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKangarooJump.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKangarooJump.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Collections; @@ -18,8 +18,8 @@ import mineplex.core.common.util.UtilMath; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeKangarooJump extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKingOfTheHill.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKingOfTheHill.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKingOfTheHill.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKingOfTheHill.java index 60e75b191..2d507b8c2 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeKingOfTheHill.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeKingOfTheHill.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.List; @@ -22,8 +22,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeKingOfTheHill extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeLavaRun.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeLavaRun.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeLavaRun.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeLavaRun.java index 558de1b62..0e14126c2 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeLavaRun.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeLavaRun.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Collections; @@ -20,8 +20,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeLavaRun extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMilkACow.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMilkACow.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMilkACow.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMilkACow.java index 68e833ceb..2734d3948 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMilkACow.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMilkACow.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -30,8 +30,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeMilkACow extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMineADiamond.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMineADiamond.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMineADiamond.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMineADiamond.java index b80647fe8..c657a781a 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMineADiamond.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMineADiamond.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -15,8 +15,8 @@ import org.bukkit.inventory.ItemStack; import mineplex.core.common.util.UtilMath; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeMineADiamond extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMinecartDance.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMinecartDance.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMinecartDance.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMinecartDance.java index 557c438d0..d8717b3d6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMinecartDance.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMinecartDance.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -26,8 +26,8 @@ import mineplex.core.common.util.UtilTextMiddle; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; import net.minecraft.server.v1_8_R3.BlockPosition; import net.minecraft.server.v1_8_R3.PacketPlayOutWorldEvent; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMiniOneInTheQuiver.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMiniOneInTheQuiver.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMiniOneInTheQuiver.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMiniOneInTheQuiver.java index 49699f8fd..48ff26910 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeMiniOneInTheQuiver.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeMiniOneInTheQuiver.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; @@ -21,8 +21,8 @@ import mineplex.core.itemstack.ItemBuilder; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeMiniOneInTheQuiver extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeNavigateMaze.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeNavigateMaze.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeNavigateMaze.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeNavigateMaze.java index f74088be0..8954a6cd5 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeNavigateMaze.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeNavigateMaze.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -13,8 +13,8 @@ import org.bukkit.event.player.PlayerMoveEvent; import mineplex.core.common.util.UtilPlayer; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeNavigateMaze extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePickASide.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePickASide.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePickASide.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePickASide.java index 574871eec..51a894bae 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePickASide.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePickASide.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashSet; @@ -17,8 +17,8 @@ import mineplex.core.common.util.UtilTextMiddle; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengePickASide extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePunchThePig.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePunchThePig.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePunchThePig.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePunchThePig.java index 041bc1107..5af1dc9a6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengePunchThePig.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengePunchThePig.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -19,8 +19,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengePunchThePig extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRedLightGreenLight.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRedLightGreenLight.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRedLightGreenLight.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRedLightGreenLight.java index ab0307d78..15cf473ff 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRedLightGreenLight.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRedLightGreenLight.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -30,8 +30,8 @@ import mineplex.core.common.util.UtilTextMiddle; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; import net.md_5.bungee.api.ChatColor; public class ChallengeRedLightGreenLight extends Challenge diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeReverseTag.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeReverseTag.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeReverseTag.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeReverseTag.java index 1f108a6b1..2fe49e29d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeReverseTag.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeReverseTag.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Collections; @@ -27,8 +27,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeReverseTag extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRushPush.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRushPush.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRushPush.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRushPush.java index d11f19a30..7145148d5 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRushPush.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeRushPush.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -18,8 +18,8 @@ import mineplex.core.common.util.C; import mineplex.core.common.util.UtilTextMiddle; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeRushPush extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeShootChickens.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeShootChickens.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeShootChickens.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeShootChickens.java index e60c87a1c..4c0c10059 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeShootChickens.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeShootChickens.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -27,8 +27,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeShootChickens extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSmashOff.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSmashOff.java similarity index 88% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSmashOff.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSmashOff.java index aef0afa57..8e9005b6a 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSmashOff.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSmashOff.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; @@ -9,8 +9,8 @@ import org.bukkit.entity.Player; import mineplex.core.common.util.UtilMath; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeSmashOff extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSpleef.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSpleef.java similarity index 90% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSpleef.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSpleef.java index f7902aeeb..60bae6fa5 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeSpleef.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeSpleef.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; @@ -13,8 +13,8 @@ import org.bukkit.event.player.PlayerInteractEvent; import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilPlayer; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeSpleef extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeStandOnColor.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeStandOnColor.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeStandOnColor.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeStandOnColor.java index e5f5f7262..e87a5572f 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeStandOnColor.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeStandOnColor.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Collections; @@ -20,8 +20,8 @@ import mineplex.core.common.util.UtilTextBottom; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeStandOnColor extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTntLauncher.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTntLauncher.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTntLauncher.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTntLauncher.java index b2041bded..3a2fa1f08 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTntLauncher.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTntLauncher.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -25,8 +25,8 @@ import mineplex.core.common.util.UtilShapes; import mineplex.core.recharge.Recharge; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeTntLauncher extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTreasureDigger.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTreasureDigger.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTreasureDigger.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTreasureDigger.java index b0dbd245f..f01e9d06f 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeTreasureDigger.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeTreasureDigger.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.LinkedHashMap; @@ -25,8 +25,8 @@ import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilShapes; import mineplex.core.common.util.UtilTextMiddle; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeTreasureDigger extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeVolleyPig.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeVolleyPig.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeVolleyPig.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeVolleyPig.java index 42c9f06bc..2c408ca7e 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeVolleyPig.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeVolleyPig.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -37,8 +37,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeVolleyPig extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaterHorror.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaterHorror.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaterHorror.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaterHorror.java index 83ebb9873..6b5777c38 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaterHorror.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaterHorror.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.HashMap; @@ -29,8 +29,8 @@ import mineplex.core.explosion.ExplosionEvent; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeWaterHorror extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaveCrush.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaveCrush.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaveCrush.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaveCrush.java index 80cfeb05b..f48cb41e2 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeWaveCrush.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/ChallengeWaveCrush.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.ArrayList; import java.util.Arrays; @@ -19,8 +19,8 @@ import org.bukkit.util.Vector; import mineplex.core.common.util.UtilMath; import mineplex.core.projectile.ProjectileUser; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; public class ChallengeWaveCrush extends Challenge diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/MazeGenerator.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/MazeGenerator.java similarity index 96% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/MazeGenerator.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/MazeGenerator.java index 785911a54..ae65246eb 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/MazeGenerator.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/MazeGenerator.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type; import java.util.Arrays; import java.util.Collections; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBlockShot.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBlockShot.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBlockShot.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBlockShot.java index 064133640..098216dee 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBlockShot.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBlockShot.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.HashMap; @@ -30,8 +30,8 @@ import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilShapes; import mineplex.core.itemstack.ItemBuilder; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeBlockShot extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBuildBuilding.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBuildBuilding.java similarity index 86% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBuildBuilding.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBuildBuilding.java index a074cd7f4..9b4802388 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeBuildBuilding.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeBuildBuilding.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.HashMap; @@ -9,8 +9,8 @@ import org.bukkit.Material; import org.bukkit.entity.Player; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.ChallengeSeperateRooms; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.other.ChallengeSeperateRooms; public class ChallengeBuildBuilding extends ChallengeSeperateRooms { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeChickenFishing.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeChickenFishing.java similarity index 92% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeChickenFishing.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeChickenFishing.java index 62e291b3d..8e00b6946 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeChickenFishing.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeChickenFishing.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.Iterator; @@ -16,8 +16,8 @@ import mineplex.core.common.util.UtilShapes; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeChickenFishing extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeDiamondFall.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeDiamondFall.java similarity index 93% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeDiamondFall.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeDiamondFall.java index 6281262a0..8d48c9fa1 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeDiamondFall.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeDiamondFall.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.Collections; @@ -17,8 +17,8 @@ import org.bukkit.inventory.ItemStack; import mineplex.core.common.util.UtilInv; import mineplex.core.common.util.UtilMath; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeDiamondFall extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeHitTargets.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeHitTargets.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeHitTargets.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeHitTargets.java index 462eb0942..d06723064 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeHitTargets.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeHitTargets.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.HashMap; @@ -15,8 +15,8 @@ import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilPlayer; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeHitTargets extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeNameThatSound.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeNameThatSound.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeNameThatSound.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeNameThatSound.java index 0cfc63f7d..aadd5d9d0 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeNameThatSound.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeNameThatSound.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.Collections; @@ -26,8 +26,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.ChallengeSeperateRooms; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.other.ChallengeSeperateRooms; public class ChallengeNameThatSound extends ChallengeSeperateRooms { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRunner.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeRunner.java similarity index 94% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRunner.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeRunner.java index 347eedca4..d0000d0df 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeRunner.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeRunner.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.HashMap; @@ -19,8 +19,8 @@ import mineplex.core.common.util.UtilTime; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeRunner extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSimonSays.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSimonSays.java similarity index 97% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSimonSays.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSimonSays.java index 24cd16bcd..7667db9a6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSimonSays.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSimonSays.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.HashMap; @@ -34,8 +34,8 @@ import mineplex.core.common.util.UtilMath; import mineplex.core.common.util.UtilTextBottom; import mineplex.core.updater.event.UpdateEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; public class ChallengeSimonSays extends Challenge diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSkyFall.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSkyFall.java similarity index 92% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSkyFall.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSkyFall.java index 004c3e7c4..17e150505 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeSkyFall.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeSkyFall.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; @@ -14,8 +14,8 @@ import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.damage.CustomDamageEvent; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeSkyFall extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeTameTheWolf.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeTameTheWolf.java similarity index 95% rename from Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeTameTheWolf.java rename to Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeTameTheWolf.java index 7fd40f40f..2a32d53c0 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/removed/ChallengeTameTheWolf.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenge/type/removed/ChallengeTameTheWolf.java @@ -1,4 +1,4 @@ -package nautilus.game.arcade.game.games.mineware.challenges.removed; +package nautilus.game.arcade.game.games.mineware.challenge.type.removed; import java.util.ArrayList; import java.util.Arrays; @@ -19,8 +19,8 @@ import org.bukkit.inventory.ItemStack; import mineplex.core.common.util.C; import mineplex.core.common.util.UtilMath; import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.ChallengeType; public class ChallengeTameTheWolf extends Challenge { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeChestLoot.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeChestLoot.java deleted file mode 100644 index 58c489bad..000000000 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeChestLoot.java +++ /dev/null @@ -1,139 +0,0 @@ -package nautilus.game.arcade.game.games.mineware.challenges; - -import java.util.ArrayList; - -import org.bukkit.Location; -import org.bukkit.Material; -import org.bukkit.block.Block; -import org.bukkit.block.BlockFace; -import org.bukkit.block.Chest; -import org.bukkit.block.DoubleChest; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.inventory.InventoryClickEvent; -import org.bukkit.inventory.Inventory; -import org.bukkit.inventory.ItemStack; - -import mineplex.core.common.util.UtilMath; -import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; - -public class ChallengeChestLoot extends Challenge -{ - public ChallengeChestLoot(BawkBawkBattles host) - { - super( - host, - ChallengeType.FirstComplete, - "Diamond Seeker", - "Find a diamond in the chests."); - - Settings.setUseMapHeight(); - } - - @Override - public ArrayList createSpawns() - { - ArrayList spawns = new ArrayList(); - - for (int x = -(getArenaSize() - 1); x <= getArenaSize() - 1; x++) - { - for (int z = -(getArenaSize() - 1); z <= getArenaSize() - 1; z++) - { - if (x % 2 == 0 && z % 2 == 0) - { - spawns.add(getCenter().clone().add(x + 0.5, 2.1, z + 0.5)); - } - } - } - - return spawns; - } - - @Override - public void onEnd() - { - Host.InventoryOpenChest = false; - Host.InventoryOpenBlock = false; - } - - @Override - public void onStart() - { - Host.InventoryOpenChest = true; - Host.InventoryOpenBlock = true; - } - - @EventHandler - public void onInventoryClick(InventoryClickEvent event) - { - if (!(event.getInventory().getHolder() instanceof Player)) - { - event.setCancelled(true); - - if (event.getInventory().getHolder() instanceof DoubleChest || event.getInventory().getHolder() instanceof Chest) - { - if (event.getCurrentItem() != null && event.getCurrentItem().getType() == Material.DIAMOND) - { - event.setCurrentItem(new ItemStack(Material.AIR)); - setCompleted((Player) event.getWhoClicked()); - } - } - } - } - - @Override - public void createMap() - { - ArrayList invs = new ArrayList(); - - for (int x = -getArenaSize(); x <= getArenaSize(); x++) - { - for (int z = -getArenaSize(); z <= getArenaSize(); z++) - { - Block b = getCenter().getBlock().getRelative(x, 0, z); - b.setType(Material.STAINED_CLAY); - b.setData((byte) UtilMath.r(16)); - - addBlock(b); - - if (Math.abs(x) % 2 == 0 && Math.abs(z) % 2 == 0) - { - Block block = b.getRelative(0, 1, 0); - block.setType(Material.CHEST); - addBlock(block); - - Inventory inventory = ((Chest) block.getState()).getInventory(); - invs.add(inventory); - - for (int i = 0; i < inventory.getSize(); i++) - { - ItemStack item = new ItemStack(Material.values()[UtilMath.r(Material.values().length)]); - - if (item.getType() == Material.DIAMOND || item.getType() == Material.AIR) - { - i--; - continue; - } - - inventory.setItem(i, item); - } - } - else - { - Block block = b.getRelative(BlockFace.UP); - block.setType(Material.STAINED_CLAY); - block.setData((byte) UtilMath.r(16)); - addBlock(block); - } - } - } - - for (int i = 0; i < 10 + getChallengers().size(); i++) - { - Inventory inv = invs.get(UtilMath.r(invs.size())); - inv.setItem(UtilMath.r(inv.getSize()), new ItemStack(Material.DIAMOND)); - } - } -} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeCloudFall.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeCloudFall.java deleted file mode 100644 index 682ccf5eb..000000000 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/challenges/ChallengeCloudFall.java +++ /dev/null @@ -1,171 +0,0 @@ -package nautilus.game.arcade.game.games.mineware.challenges; - -import java.util.ArrayList; - -import org.bukkit.Location; -import org.bukkit.Material; -import org.bukkit.block.Block; -import org.bukkit.block.BlockFace; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.entity.EntityDamageEvent.DamageCause; - -import mineplex.core.common.util.UtilMath; -import mineplex.core.common.util.UtilShapes; -import mineplex.minecraft.game.core.damage.CustomDamageEvent; -import nautilus.game.arcade.game.games.mineware.BawkBawkBattles; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.ChallengeType; - -public class ChallengeCloudFall extends Challenge -{ - public ChallengeCloudFall(BawkBawkBattles host) - { - super( - host, - ChallengeType.FirstComplete, - "Cloud Fall", - "Jump and land on green wool.", - "Avoid the deadly clouds!"); - } - - @Override - public ArrayList createSpawns() - { - { - ArrayList spawns = new ArrayList(); - for (int x = -(getArenaSize() - 1); x <= getArenaSize(); x++) - { - for (int z = -(getArenaSize() - 1); z <= getArenaSize(); z++) - { - boolean goodSpawn = true; - int y = 73; - if (x % 2 == 0 && z % 2 == 0) - { - while (Host.WorldData.World.getBlockAt(x, y, z).getType() == Material.AIR) - { - if (y > 76) - { - goodSpawn = false; - break; - } - y++; - } - if (goodSpawn) - { - spawns.add(getCenter().clone().add(x + 0.5, y + 1.1, z + 0.5)); - } - } - } - } - return spawns; - } - - } - - @Override - public void onEnd() - { - Host.DamageFall = false; - } - - @Override - public void onStart() - { - Host.DamageFall = true; - } - - @SuppressWarnings("deprecation") - @Override - public void createMap() - { - for (int x = -getArenaSize(); x <= getArenaSize(); x++) - { - for (int z = -getArenaSize(); z <= getArenaSize(); z++) - { - for (int y = 0; y <= 75; y++) - { - Block b = getCenter().getBlock().getRelative(x, y, z); - - if (y == 0) - { - b.setType(Material.WOOL); - } - else if (y == 1 && Math.abs(x) < getArenaSize() - 2 && Math.abs(z) < getArenaSize() - 2) - { - if (UtilMath.r(8) == 0) - { - b.setType(Material.WOOL); - b.setData((byte) 5); - - b.getRelative(BlockFace.UP).setType(Material.WOOL); - b.getRelative(BlockFace.UP).setData((byte) 5); - addBlock(b.getRelative(BlockFace.UP)); - } - } - else if (y > 10 && y < 70) - { - if (UtilMath.r(200) == 1) - { - // RIP DRY rule ;-;. plz don't hurt me :( - b.getRelative(BlockFace.NORTH).setType(Material.STAINED_CLAY); - b.getRelative(BlockFace.EAST).setType(Material.STAINED_CLAY); - b.getRelative(BlockFace.WEST).setType(Material.STAINED_CLAY); - b.getRelative(BlockFace.SOUTH).setType(Material.STAINED_CLAY); - - addBlock(b.getRelative(BlockFace.NORTH)); - addBlock(b.getRelative(BlockFace.EAST)); - addBlock(b.getRelative(BlockFace.WEST)); - addBlock(b.getRelative(BlockFace.SOUTH)); - } - } - - addBlock(b); - } - } - } - // The spawning platform - int size = 8; - for (Location locs : UtilShapes.getCircle(getCenter().add(0, 13, 0), false, size)) - { - locs.getBlock().setType(Material.WOOL); - locs.getBlock().setData((byte) UtilMath.r(16)); - addBlock(locs.getBlock()); - } - for (Location locs : UtilShapes.getCircle(getCenter().add(0, 13, 0), false, size / 2)) - { - locs.getBlock().setType(Material.AIR); - } - - } - - @EventHandler - public void onfallDamage(CustomDamageEvent event) - { - if (!Host.IsLive()) - { - return; - } - if (!(event.GetDamageeEntity() instanceof Player)) - { - return; - } - if (event.GetCause() != DamageCause.FALL) - { - return; - } - if (Data.isDone(event.GetDamageePlayer())) - { - return; - } - if (Math.round(event.GetDamageePlayer().getLocation().getY()) == 3) - { - event.SetCancelled("fell on wool"); - setCompleted(event.GetDamageePlayer()); - } - // else - // { - // event.AddMod("Increased Damage", "Missed jump", 2, false); - // } - } -} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeEndEvent.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeEndEvent.java index cd01ab70e..8c05c7345 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeEndEvent.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeEndEvent.java @@ -3,7 +3,7 @@ package nautilus.game.arcade.game.games.mineware.events; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; -import nautilus.game.arcade.game.games.mineware.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; public class ChallengeEndEvent extends Event { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeStartEvent.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeStartEvent.java index 43bb1ce48..eda3a57bf 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeStartEvent.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/events/ChallengeStartEvent.java @@ -3,7 +3,7 @@ package nautilus.game.arcade.game.games.mineware.events; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; -import nautilus.game.arcade.game.games.mineware.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; public class ChallengeStartEvent extends Event { diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareKangarooAtHeart.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareKangarooAtHeart.java index 63573418c..df2900a07 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareKangarooAtHeart.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareKangarooAtHeart.java @@ -2,8 +2,8 @@ package nautilus.game.arcade.game.games.mineware.stats; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeKangarooJump; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeKangarooJump; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.stats.StatTracker; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareLauraCraftTracker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareLauraCraftTracker.java index 3eeb9c5ab..442e92166 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareLauraCraftTracker.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareLauraCraftTracker.java @@ -2,8 +2,8 @@ package nautilus.game.arcade.game.games.mineware.stats; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeNavigateMaze; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeNavigateMaze; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.game.games.mineware.events.ChallengeStartEvent; import nautilus.game.arcade.stats.StatTracker; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareMilkManTracker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareMilkManTracker.java index 488111319..724d590eb 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareMilkManTracker.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareMilkManTracker.java @@ -6,8 +6,8 @@ import org.bukkit.event.EventPriority; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeMilkACow; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeMilkACow; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.stats.StatTracker; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewarePinataMasterTracker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewarePinataMasterTracker.java index 0bb0492a7..f2f1cb270 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewarePinataMasterTracker.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewarePinataMasterTracker.java @@ -2,8 +2,8 @@ package nautilus.game.arcade.game.games.mineware.stats; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeShootChickens; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeShootChickens; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.stats.StatTracker; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareSurfUpTracker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareSurfUpTracker.java index 64164cebd..da4e206bc 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareSurfUpTracker.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareSurfUpTracker.java @@ -2,8 +2,8 @@ package nautilus.game.arcade.game.games.mineware.stats; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeWaveCrush; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeWaveCrush; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.stats.StatTracker; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareTagMasterTracker.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareTagMasterTracker.java index 88ac60275..d245440fc 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareTagMasterTracker.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/mineware/stats/MinewareTagMasterTracker.java @@ -2,8 +2,8 @@ package nautilus.game.arcade.game.games.mineware.stats; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; -import nautilus.game.arcade.game.games.mineware.Challenge; -import nautilus.game.arcade.game.games.mineware.challenges.ChallengeReverseTag; +import nautilus.game.arcade.game.games.mineware.challenge.Challenge; +import nautilus.game.arcade.game.games.mineware.challenge.type.ChallengeReverseTag; import nautilus.game.arcade.game.games.mineware.events.ChallengeEndEvent; import nautilus.game.arcade.stats.StatTracker;