From 411d602a99220efc20c1cd221e1449b1426ee529 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 20 Sep 2020 13:19:33 +0200 Subject: [PATCH] Remove MissileWars.getFightTime --- src/de/steamwar/misslewars/MissileWars.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/de/steamwar/misslewars/MissileWars.java b/src/de/steamwar/misslewars/MissileWars.java index a312214..e6ed243 100644 --- a/src/de/steamwar/misslewars/MissileWars.java +++ b/src/de/steamwar/misslewars/MissileWars.java @@ -36,7 +36,6 @@ public class MissileWars extends JavaPlugin { private static MWTeam redTeam; //red has South side -> spawns missles towards north private static MWTeam blueTeam; private static FightState fightState; - private static long startTime; //timestamp when the fight starts /** * create teams, ect @@ -45,7 +44,6 @@ public class MissileWars extends JavaPlugin { public void onLoad() { plugin = this; fightState = FightState.WAITING; - startTime = -1; } @Override @@ -87,10 +85,7 @@ public class MissileWars extends JavaPlugin { if (fightState != FightState.WAITING) // anti dual-call return; fightState = FightState.FIGHTING; - startTime = System.currentTimeMillis(); StateDependent.setupState(fightState); - - startTime = System.currentTimeMillis(); } /** @@ -144,11 +139,4 @@ public class MissileWars extends JavaPlugin { return null; } - /** - * @return seconds since start - */ - public static int getFightTime() { - if (startTime == -1) return -1; - return (int)((System.currentTimeMillis() - startTime) / 1000); - } }