Hotfix
Dieser Commit ist enthalten in:
Ursprung
82bba933b3
Commit
6e7c05b4f0
@ -1,53 +0,0 @@
|
||||
package de.steamwar.sql;
|
||||
|
||||
public class FightStatistic {
|
||||
|
||||
private final int fightID;
|
||||
private final int eventFightID;
|
||||
private final String gamemode;
|
||||
private final String arena;
|
||||
private final int leaderBlue;
|
||||
private final int schematicBlue;
|
||||
private final int leaderRed;
|
||||
private final int schematicRed;
|
||||
private final int winner; // 0: even, 1: blue, 2: red
|
||||
|
||||
public FightStatistic(int fightID, int eventFightID, String gamemode, String arena, int leaderBlue, int schematicBlue, int leaderRed, int schematicRed, int winner){
|
||||
this.fightID = fightID;
|
||||
this.eventFightID = eventFightID;
|
||||
this.gamemode = gamemode;
|
||||
this.arena = arena;
|
||||
this.leaderBlue = leaderBlue;
|
||||
this.schematicBlue = schematicBlue;
|
||||
this.leaderRed = leaderRed;
|
||||
this.schematicRed = schematicRed;
|
||||
this.winner = winner;
|
||||
SQL.update("INSERT INTO FightStatistic (" +
|
||||
"FightID, EventFightID, Gamemode, Arena, LeaderBlue, SchematicBlue, LeaderRed, SchematicRed, Winner" +
|
||||
") VALUES (" +
|
||||
fightID + ", " + eventFightID + ", '" + gamemode + "', '" + arena + "', " + leaderBlue + ", "
|
||||
")");
|
||||
}
|
||||
|
||||
public int getFightID() {
|
||||
return fightID;
|
||||
}
|
||||
|
||||
public static class FightMember{
|
||||
private final int fightID;
|
||||
private final int userID;
|
||||
private final String kit;
|
||||
private final int tntPlaced; //?
|
||||
private final int kills;
|
||||
private final boolean dead;
|
||||
|
||||
public FightMember(int fightID, int userID, String kit, int tntPlaced, int kills, boolean dead) {
|
||||
this.fightID = fightID;
|
||||
this.userID = userID;
|
||||
this.kit = kit;
|
||||
this.tntPlaced = tntPlaced;
|
||||
this.kills = kills;
|
||||
this.dead = dead;
|
||||
}
|
||||
}
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren