raised war points for invasion to 25
This commit is contained in:
parent
59e564cdc6
commit
cfbfb1fa3b
@ -25,9 +25,9 @@ import mineplex.core.scoreboard.elements.ScoreboardElement;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.game.clans.clans.ClanInfo;
|
||||
import mineplex.game.clans.clans.ClanTips.TipType;
|
||||
import mineplex.game.clans.clans.ClansManager;
|
||||
import mineplex.game.clans.clans.ClansUtility;
|
||||
import mineplex.game.clans.clans.ClanTips.TipType;
|
||||
import mineplex.game.clans.clans.event.ClanDisbandedEvent;
|
||||
import mineplex.game.clans.clans.event.ClansPlayerDeathEvent;
|
||||
import mineplex.game.clans.clans.war.command.WarPointsCommand;
|
||||
@ -38,7 +38,7 @@ import mineplex.game.clans.core.war.ClanWarData;
|
||||
public class WarManager extends MiniPlugin implements ScoreboardElement
|
||||
{
|
||||
public static final int WAR_START_POINTS = 0;
|
||||
public static final int WAR_FINISH_POINTS = 20;
|
||||
public static final int WAR_FINISH_POINTS = 25;
|
||||
public static final long INVADE_LENGTH = 60000L * 30; // 30 Minutes
|
||||
public static final long WAR_COOLDOWN = 60000L * 30; // 30 Minutes
|
||||
|
||||
@ -117,11 +117,18 @@ public class WarManager extends MiniPlugin implements ScoreboardElement
|
||||
@EventHandler
|
||||
public void handleDeath(final ClansPlayerDeathEvent event)
|
||||
{
|
||||
if (event.getPlayer() != null && event.getPlayer().getClan() != null)
|
||||
ClanInfo deathClan = event.getPlayer().getClan();
|
||||
|
||||
if (deathClan == null)
|
||||
{
|
||||
deathClan = _clansManager.leftRecently(event.getPlayer().getPlayer().getUniqueId(), 60000).getLeft();
|
||||
}
|
||||
|
||||
if (event.getPlayer() != null && deathClan != null)
|
||||
{
|
||||
if (event.getKiller() != null && event.getKiller().getClan() != null)
|
||||
{
|
||||
final ClanInfo clan = event.getPlayer().getClan();
|
||||
final ClanInfo clan = deathClan;
|
||||
final ClanInfo killerClan = event.getKiller().getClan();
|
||||
|
||||
ClanWarData war = clan.getWarData(killerClan);
|
||||
|
Loading…
Reference in New Issue
Block a user