Search in sources :

Example 21 with Game

use of com.ebicep.warlords.game.Game in project Warlords by ebicep.

the class FlagSpawnPointOption method register.

@Override
public void register(Game game) {
    this.game = game;
    // We register a gamemarker to prevent any captures for our own team if we lost our flag
    game.registerGameMarker(FlagCaptureInhibitMarker.class, pFlag -> {
        return !(info.getFlag() instanceof SpawnFlagLocation) && info.getTeam() == pFlag.getPlayer().getTeam();
    });
    game.registerGameMarker(DebugLocationMarker.class, DebugLocationMarker.create(Material.BANNER, 0, this.getClass(), "Flag spawn: " + info.getTeam(), this.info.getSpawnLocation()));
    game.registerGameMarker(DebugLocationMarker.class, DebugLocationMarker.create(Material.BANNER, 15, this.getClass(), "Flag: " + info.getTeam(), () -> info.getFlag().getLocation(), () -> info.getFlag().getDebugInformation()));
    FlagHolder holder = FlagHolder.create(() -> info);
    game.registerGameMarker(FlagHolder.class, holder);
    if (this.registerCompassMarker) {
        game.registerGameMarker(CompassTargetMarker.class, holder);
    }
    game.registerGameMarker(ScoreboardHandler.class, scoreboard = new SimpleScoreboardHandler(info.getTeam() == Team.RED ? 20 : 21, "flag") {

        @Override
        public List<String> computeLines(@Nullable WarlordsPlayer player) {
            String flagName = info.getTeam().coloredPrefix();
            FlagLocation flag = info.getFlag();
            if (flag instanceof SpawnFlagLocation) {
                return singletonList(flagName + " Flag: " + ChatColor.GREEN + "Safe");
            } else if (flag instanceof PlayerFlagLocation) {
                PlayerFlagLocation pFlag = (PlayerFlagLocation) flag;
                String extra = pFlag.getPickUpTicks() == 0 ? "" : ChatColor.YELLOW + " +" + pFlag.getComputedHumanMultiplier() + "§e%";
                return singletonList(flagName + " Flag: " + ChatColor.RED + "Stolen!" + extra);
            } else if (flag instanceof GroundFlagLocation) {
                GroundFlagLocation gFlag = (GroundFlagLocation) flag;
                return singletonList(flagName + " Flag: " + ChatColor.YELLOW + "Dropped! " + ChatColor.GRAY + gFlag.getDespawnTimerSeconds());
            } else {
                return singletonList(flagName + " Flag: " + ChatColor.GRAY + "Respawning...");
            }
        }
    });
    game.registerEvents(new Listener() {

        @EventHandler(priority = EventPriority.LOW)
        public void onArmorStandBreak(EntityDamageByEntityEvent event) {
            boolean isOurArmorStand = renderer.getRenderedArmorStands().contains(event.getEntity());
            WarlordsPlayer wp = Warlords.getPlayer(event.getDamager());
            if (wp != null && wp.getGame() == game && isOurArmorStand) {
                onFlagInteract(wp);
                event.setCancelled(true);
            }
        }

        @EventHandler(priority = EventPriority.LOW)
        public void onPotentialFlagInteract(PlayerInteractEntityEvent event) {
            onPotentialFlagInteract((PlayerEvent) event);
        }

        @EventHandler(priority = EventPriority.LOW)
        public void onPotentialFlagInteract(PlayerInteractEvent event) {
            onPotentialFlagInteract((PlayerEvent) event);
        }

        private void onPotentialFlagInteract(PlayerEvent event) {
            WarlordsPlayer wp = Warlords.getPlayer(event.getPlayer());
            if (wp != null && wp.getGame() == game) {
                Location playerLocation = wp.getEntity().getEyeLocation();
                Vector direction = wp.getEntity().getLocation().getDirection().multiply(3);
                Vec3D from = new Vec3D(playerLocation.getX(), playerLocation.getY(), playerLocation.getZ());
                Vec3D to = new Vec3D(playerLocation.getX() + direction.getX(), playerLocation.getY() + direction.getY(), playerLocation.getZ() + direction.getZ());
                checkFlagInteract(playerLocation, wp, from, to, renderer);
            }
        }

        private void checkFlagInteract(Location playerLocation, WarlordsPlayer wp, Vec3D from, Vec3D to, FlagRenderer render) {
            Location entityLoc = new Location(playerLocation.getWorld(), 0, 0, 0);
            for (Entity stand : render.getRenderedArmorStands()) {
                stand.getLocation(entityLoc);
                if (entityLoc.getWorld() == playerLocation.getWorld() && entityLoc.distanceSquared(playerLocation) < 5 * 5) {
                    AxisAlignedBB aabb = new AxisAlignedBB(entityLoc.getX() - 0.5, entityLoc.getY(), entityLoc.getZ() - 0.5, entityLoc.getX() + 0.5, entityLoc.getY() + 2, entityLoc.getZ() + 0.5);
                    MovingObjectPosition mop = aabb.a(from, to);
                    if (mop != null) {
                        onFlagInteract(wp);
                        break;
                    }
                }
            }
        }

        private void onFlagInteract(WarlordsPlayer wp) {
            Team team = wp.getTeam();
            if (wp.isDeath()) {
                return;
            }
            if (renderer.getLastFlagState() != info.getFlag()) {
                // Prevent the player from interacting when the render state is outdated
                return;
            }
            wp.setFlagCooldown(2);
            if (info.getFlag() instanceof GroundFlagLocation) {
                GroundFlagLocation groundFlagLocation = (GroundFlagLocation) info.getFlag();
                if (team == info.getTeam()) {
                    // Return flag
                    info.setFlag(new SpawnFlagLocation(info.getSpawnLocation(), wp));
                } else {
                    // Steal flag
                    info.setFlag(new PlayerFlagLocation(wp, groundFlagLocation.getDamageTimer()));
                    if (wp.getEntity().getVehicle() != null) {
                        wp.getEntity().getVehicle().remove();
                    }
                }
            } else if (info.getFlag() instanceof SpawnFlagLocation) {
                if (team == info.getTeam()) {
                    // Nothing
                    wp.sendMessage("§cYou can't steal your own team's flag!");
                } else {
                    // Steal flag
                    info.setFlag(new PlayerFlagLocation(wp, 0));
                    wp.getCooldownManager().addCooldown(new RegularCooldown<FlagSpawnPointOption>("Flag Damage Resistance", "RES", FlagSpawnPointOption.class, null, wp, CooldownTypes.BUFF, cooldownManager -> {
                    }, 15 * 20) {

                        @Override
                        public float modifyDamageAfterInterveneFromSelf(WarlordsDamageHealingEvent event, float currentDamageValue) {
                            return currentDamageValue * .9f;
                        }
                    });
                }
            }
        }
    });
}
Also used : AxisAlignedBB(net.minecraft.server.v1_8_R3.AxisAlignedBB) MovingObjectPosition(net.minecraft.server.v1_8_R3.MovingObjectPosition) SimpleScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler) Collections.singletonList(java.util.Collections.singletonList) EventHandler(org.bukkit.event.EventHandler) Location(org.bukkit.Location) ScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.ScoreboardHandler) PlayerInteractEvent(org.bukkit.event.player.PlayerInteractEvent) Nonnull(javax.annotation.Nonnull) Vec3D(net.minecraft.server.v1_8_R3.Vec3D) Material(org.bukkit.Material) EntityDamageByEntityEvent(org.bukkit.event.entity.EntityDamageByEntityEvent) Nullable(javax.annotation.Nullable) Bukkit(org.bukkit.Bukkit) Listener(org.bukkit.event.Listener) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable) Entity(org.bukkit.entity.Entity) Team(com.ebicep.warlords.game.Team) com.ebicep.warlords.game.flags(com.ebicep.warlords.game.flags) Warlords(com.ebicep.warlords.Warlords) CooldownTypes(com.ebicep.warlords.player.cooldowns.CooldownTypes) PlayerInteractEntityEvent(org.bukkit.event.player.PlayerInteractEntityEvent) Vector(org.bukkit.util.Vector) List(java.util.List) Game(com.ebicep.warlords.game.Game) RegularCooldown(com.ebicep.warlords.player.cooldowns.cooldowns.RegularCooldown) EventPriority(org.bukkit.event.EventPriority) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) PlayerEvent(org.bukkit.event.player.PlayerEvent) WarlordsFlagUpdatedEvent(com.ebicep.warlords.events.WarlordsFlagUpdatedEvent) ChatColor(org.bukkit.ChatColor) AxisAlignedBB(net.minecraft.server.v1_8_R3.AxisAlignedBB) WarlordsDamageHealingEvent(com.ebicep.warlords.events.WarlordsDamageHealingEvent) com.ebicep.warlords.game.option.marker(com.ebicep.warlords.game.option.marker) Entity(org.bukkit.entity.Entity) Listener(org.bukkit.event.Listener) PlayerInteractEvent(org.bukkit.event.player.PlayerInteractEvent) EventHandler(org.bukkit.event.EventHandler) Vec3D(net.minecraft.server.v1_8_R3.Vec3D) Team(com.ebicep.warlords.game.Team) WarlordsDamageHealingEvent(com.ebicep.warlords.events.WarlordsDamageHealingEvent) Vector(org.bukkit.util.Vector) PlayerInteractEntityEvent(org.bukkit.event.player.PlayerInteractEntityEvent) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) PlayerEvent(org.bukkit.event.player.PlayerEvent) MovingObjectPosition(net.minecraft.server.v1_8_R3.MovingObjectPosition) EntityDamageByEntityEvent(org.bukkit.event.entity.EntityDamageByEntityEvent) SimpleScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler) Nullable(javax.annotation.Nullable) Location(org.bukkit.Location)

Example 22 with Game

use of com.ebicep.warlords.game.Game in project Warlords by ebicep.

the class ImposterModeOption method register.

@Override
public void register(@Nonnull Game game) {
    this.game = game;
    for (Team team : TeamMarker.getTeams(game)) {
        imposters.put(team, new ArrayList<>());
    }
    game.registerGameMarker(ScoreboardHandler.class, new SimpleScoreboardHandler(30, "imposter") {

        @Override
        public List<String> computeLines(@Nullable WarlordsPlayer warlordsPlayer) {
            if (warlordsPlayer == null) {
                return Collections.emptyList();
            }
            if (imposters.get(warlordsPlayer.getTeam()).isEmpty()) {
                return Collections.emptyList();
            }
            if (imposters.entrySet().stream().anyMatch(teamListEntry -> teamListEntry.getValue().contains(warlordsPlayer))) {
                return Collections.singletonList(ChatColor.WHITE + "Role: " + ChatColor.RED + "Imposter");
            }
            return Collections.singletonList(ChatColor.WHITE + "Role: " + ChatColor.GREEN + "Innocent");
        }
    });
}
Also used : java.util(java.util) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable) PacketUtils(com.ebicep.warlords.util.bukkit.PacketUtils) Team(com.ebicep.warlords.game.Team) PlayingState(com.ebicep.warlords.game.state.PlayingState) GamePoll(com.ebicep.warlords.poll.polls.GamePoll) Warlords(com.ebicep.warlords.Warlords) Player(org.bukkit.entity.Player) ChatUtils(com.ebicep.warlords.util.chat.ChatUtils) Collectors(java.util.stream.Collectors) SimpleScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler) Game(com.ebicep.warlords.game.Game) ScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.ScoreboardHandler) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) ChatColor(org.bukkit.ChatColor) TeamMarker(com.ebicep.warlords.game.option.marker.TeamMarker) Nonnull(javax.annotation.Nonnull) PotionEffectType(org.bukkit.potion.PotionEffectType) Nullable(javax.annotation.Nullable) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) SimpleScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler) Team(com.ebicep.warlords.game.Team)

Example 23 with Game

use of com.ebicep.warlords.game.Game in project Warlords by ebicep.

the class InterchangeModeOption method swapTeamMembers.

// the player BEFORE becomes the player AFTER
// the last player BECOMES the first player
private void swapTeamMembers(Game game, Team team) {
    List<WarlordsPlayer> teamPlayers = game.warlordsPlayers().filter(warlordsPlayer -> warlordsPlayer.getTeam() == team).collect(Collectors.toList());
    if (teamPlayers.size() <= 1)
        return;
    // Storing all player information as swapping jumbles it up
    HashMap<UUID, Location> playerLocations = new HashMap<>();
    HashMap<UUID, Classes> playerClasses = new HashMap<>();
    HashMap<UUID, HashMap<Classes, ClassesSkillBoosts>> playerBoosts = new HashMap<>();
    HashMap<UUID, HashMap<Classes, Weapons>> playerWeaponSkins = new HashMap<>();
    HashMap<UUID, List<ArmorManager.Helmets>> playerHelmets = new HashMap<>();
    HashMap<UUID, List<ArmorManager.ArmorSets>> playerArmorSets = new HashMap<>();
    HashMap<UUID, Boolean> playerOnHorse = new HashMap<>();
    for (WarlordsPlayer teamPlayer : teamPlayers) {
        UUID uuid = teamPlayer.getUuid();
        playerLocations.put(uuid, teamPlayer.getLocation());
        PlayerSettings playerSettings = Warlords.getPlayerSettings(uuid);
        playerClasses.put(uuid, playerSettings.getSelectedClass());
        playerBoosts.put(uuid, playerSettings.getClassesSkillBoosts());
        playerWeaponSkins.put(uuid, playerSettings.getWeaponSkins());
        playerHelmets.put(uuid, playerSettings.getHelmets());
        playerArmorSets.put(uuid, playerSettings.getArmorSets());
        playerOnHorse.put(uuid, teamPlayer.getEntity().getVehicle() != null);
    }
    // take beginning player to swap with end
    WarlordsPlayer secondPlayer = teamPlayers.get(0);
    String secondPlayerName = secondPlayer.getName();
    UUID secondPlayerUuid = secondPlayer.getUuid();
    LivingEntity secondPlayerEntity = secondPlayer.getEntity();
    PlayerSettings playerSettings = Warlords.getPlayerSettings(secondPlayer.getUuid());
    for (int i = 0; i < teamPlayers.size() - 1; i++) {
        transferPlayerStats(teamPlayers.get(i), teamPlayers.get(i + 1), playerLocations, playerClasses, playerBoosts, playerWeaponSkins, playerHelmets, playerArmorSets, playerOnHorse);
    }
    // give last player first players old stats
    WarlordsPlayer firstPlayer = teamPlayers.get(teamPlayers.size() - 1);
    System.out.println("LAST SWAP - " + firstPlayer.getName() + " <<< " + secondPlayerName);
    UUID firstPlayerUuid = firstPlayer.getUuid();
    firstPlayer.setName(secondPlayerName);
    firstPlayer.setUuid(secondPlayerUuid);
    secondPlayerEntity.teleport(playerLocations.get(firstPlayerUuid));
    firstPlayer.setEntity(secondPlayerEntity);
    if (playerOnHorse.get(firstPlayerUuid)) {
        firstPlayer.getHorse().spawn();
    }
    if (firstPlayer.getEntity() instanceof Player) {
        PacketUtils.sendTitle((Player) firstPlayer.getEntity(), ChatColor.YELLOW + "Swapped to", ChatColor.GREEN.toString() + ChatColor.MAGIC + "00" + ChatColor.GREEN + " " + firstPlayer.getSpecClass().name + "! " + ChatColor.MAGIC + "00", 10, 40, 10);
    }
    // copying over playersettings
    playerSettings.setSelectedClass(playerClasses.get(firstPlayerUuid));
    playerSettings.setWeaponSkins(playerWeaponSkins.get(firstPlayerUuid));
    playerSettings.setClassesSkillBoosts(playerBoosts.get(firstPlayerUuid));
    playerSettings.setHelmets(playerHelmets.get(firstPlayerUuid));
    playerSettings.setArmorSets(playerArmorSets.get(firstPlayerUuid));
    if (firstPlayer.getEntity() instanceof Player) {
        firstPlayer.updatePlayer((Player) firstPlayer.getEntity());
    }
    Warlords.getPlayers().put(secondPlayerUuid, firstPlayer);
    Warlords.newChain().delay(100, TimeUnit.MILLISECONDS).sync(() -> {
        ArmorManager.resetArmor(firstPlayer.getUuid(), firstPlayer.getEntity(), firstPlayer.getSpecClass(), firstPlayer.getTeam());
    }).execute();
}
Also used : GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable) PacketUtils(com.ebicep.warlords.util.bukkit.PacketUtils) Team(com.ebicep.warlords.game.Team) Warlords(com.ebicep.warlords.Warlords) HashMap(java.util.HashMap) Random(java.util.Random) Player(org.bukkit.entity.Player) UUID(java.util.UUID) LivingEntity(org.bukkit.entity.LivingEntity) Collectors(java.util.stream.Collectors) com.ebicep.warlords.player(com.ebicep.warlords.player) TimeUnit(java.util.concurrent.TimeUnit) List(java.util.List) Game(com.ebicep.warlords.game.Game) Location(org.bukkit.Location) ChatColor(org.bukkit.ChatColor) TeamMarker(com.ebicep.warlords.game.option.marker.TeamMarker) Nonnull(javax.annotation.Nonnull) EndState(com.ebicep.warlords.game.state.EndState) Player(org.bukkit.entity.Player) HashMap(java.util.HashMap) LivingEntity(org.bukkit.entity.LivingEntity) List(java.util.List) UUID(java.util.UUID) Location(org.bukkit.Location)

Example 24 with Game

use of com.ebicep.warlords.game.Game in project Warlords by ebicep.

the class PowerupOption method start.

@Override
public void start(Game game) {
    hasStarted = true;
    if (cooldown == 0) {
        spawn();
    }
    new GameRunnable(game) {

        @Override
        public void run() {
            if (cooldown == 0) {
                PlayerFilter.entitiesAround(location, 1.4, 1.4, 1.4).isAlive().first((nearPlayer) -> {
                    type.onPickUp(PowerupOption.this, nearPlayer);
                    remove();
                    cooldown = maxCooldown * 4;
                });
            } else {
                cooldown--;
                if (cooldown == 0) {
                    spawn();
                }
            }
        }
    }.runTaskTimer(0, 5);
}
Also used : HealingPowerup(com.ebicep.warlords.abilties.internal.HealingPowerup) Utils(com.ebicep.warlords.util.warlords.Utils) Arrays(java.util.Arrays) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable) Nonnegative(javax.annotation.Nonnegative) SpeedPowerup(com.ebicep.warlords.abilties.internal.SpeedPowerup) CooldownTypes(com.ebicep.warlords.player.cooldowns.CooldownTypes) PlayerFilter(com.ebicep.warlords.util.warlords.PlayerFilter) ItemStack(org.bukkit.inventory.ItemStack) Objects(java.util.Objects) Game(com.ebicep.warlords.game.Game) Location(org.bukkit.Location) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) EnergyPowerup(com.ebicep.warlords.abilties.internal.EnergyPowerup) ArmorStand(org.bukkit.entity.ArmorStand) ChatColor(org.bukkit.ChatColor) DebugLocationMarker(com.ebicep.warlords.game.option.marker.DebugLocationMarker) TimerSkipAbleMarker(com.ebicep.warlords.game.option.marker.TimerSkipAbleMarker) DamagePowerup(com.ebicep.warlords.abilties.internal.DamagePowerup) Nonnull(javax.annotation.Nonnull) Material(org.bukkit.Material) Nullable(javax.annotation.Nullable) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable)

Example 25 with Game

use of com.ebicep.warlords.game.Game in project Warlords by ebicep.

the class FlagSpawnPointOption method start.

@Override
public void start(Game game) {
    new GameRunnable(game) {

        @Override
        public void run() {
            if (!(info.getFlag() instanceof PlayerFlagLocation)) {
                return;
            }
            PlayerFlagLocation playerFlagLocation = (PlayerFlagLocation) info.getFlag();
            if (flagIsInCaptureZone(playerFlagLocation) && !flagCaptureIsNotBlocked(playerFlagLocation)) {
                FlagHolder.update(game, info -> new WaitingFlagLocation(info.getSpawnLocation(), info.getFlag() == playerFlagLocation ? playerFlagLocation.getPlayer() : null));
            }
        }
    }.runTaskTimer(0, 4);
    new GameRunnable(game) {

        @Override
        public void run() {
            FlagLocation newFlag = info.getFlag().update(info);
            if (newFlag != null) {
                info.setFlag(newFlag);
            }
            renderer.checkRender();
        }
    }.runTaskTimer(0, 1);
}
Also used : MovingObjectPosition(net.minecraft.server.v1_8_R3.MovingObjectPosition) SimpleScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler) Collections.singletonList(java.util.Collections.singletonList) EventHandler(org.bukkit.event.EventHandler) Location(org.bukkit.Location) ScoreboardHandler(com.ebicep.warlords.game.option.marker.scoreboard.ScoreboardHandler) PlayerInteractEvent(org.bukkit.event.player.PlayerInteractEvent) Nonnull(javax.annotation.Nonnull) Vec3D(net.minecraft.server.v1_8_R3.Vec3D) Material(org.bukkit.Material) EntityDamageByEntityEvent(org.bukkit.event.entity.EntityDamageByEntityEvent) Nullable(javax.annotation.Nullable) Bukkit(org.bukkit.Bukkit) Listener(org.bukkit.event.Listener) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable) Entity(org.bukkit.entity.Entity) Team(com.ebicep.warlords.game.Team) com.ebicep.warlords.game.flags(com.ebicep.warlords.game.flags) Warlords(com.ebicep.warlords.Warlords) CooldownTypes(com.ebicep.warlords.player.cooldowns.CooldownTypes) PlayerInteractEntityEvent(org.bukkit.event.player.PlayerInteractEntityEvent) Vector(org.bukkit.util.Vector) List(java.util.List) Game(com.ebicep.warlords.game.Game) RegularCooldown(com.ebicep.warlords.player.cooldowns.cooldowns.RegularCooldown) EventPriority(org.bukkit.event.EventPriority) WarlordsPlayer(com.ebicep.warlords.player.WarlordsPlayer) PlayerEvent(org.bukkit.event.player.PlayerEvent) WarlordsFlagUpdatedEvent(com.ebicep.warlords.events.WarlordsFlagUpdatedEvent) ChatColor(org.bukkit.ChatColor) AxisAlignedBB(net.minecraft.server.v1_8_R3.AxisAlignedBB) WarlordsDamageHealingEvent(com.ebicep.warlords.events.WarlordsDamageHealingEvent) com.ebicep.warlords.game.option.marker(com.ebicep.warlords.game.option.marker) GameRunnable(com.ebicep.warlords.util.warlords.GameRunnable)

Aggregations

Game (com.ebicep.warlords.game.Game)25 Team (com.ebicep.warlords.game.Team)15 ChatColor (org.bukkit.ChatColor)13 Warlords (com.ebicep.warlords.Warlords)12 WarlordsPlayer (com.ebicep.warlords.player.WarlordsPlayer)12 Nonnull (javax.annotation.Nonnull)12 Nullable (javax.annotation.Nullable)12 Player (org.bukkit.entity.Player)11 GameRunnable (com.ebicep.warlords.util.warlords.GameRunnable)9 java.util (java.util)8 GameAddon (com.ebicep.warlords.game.GameAddon)7 Utils (com.ebicep.warlords.util.warlords.Utils)7 ScoreboardHandler (com.ebicep.warlords.game.option.marker.scoreboard.ScoreboardHandler)6 PacketUtils (com.ebicep.warlords.util.bukkit.PacketUtils)6 PlayerFilter (com.ebicep.warlords.util.warlords.PlayerFilter)6 Location (org.bukkit.Location)6 WarlordsGameTriggerWinEvent (com.ebicep.warlords.events.WarlordsGameTriggerWinEvent)5 GameHolder (com.ebicep.warlords.game.GameManager.GameHolder)5 SimpleScoreboardHandler (com.ebicep.warlords.game.option.marker.scoreboard.SimpleScoreboardHandler)5 PlayingState (com.ebicep.warlords.game.state.PlayingState)5