Remove MissileWars.getFightTime
Dieser Commit ist enthalten in:
Ursprung
f09c856b32
Commit
411d602a99
@ -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);
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren