Add Arenaserver to store Data
Dieser Commit ist enthalten in:
Ursprung
ae1ca904bd
Commit
aa0ad30f40
49
src/de/steamwar/bungeecore/Arenaserver.java
Normale Datei
49
src/de/steamwar/bungeecore/Arenaserver.java
Normale Datei
@ -0,0 +1,49 @@
|
|||||||
|
package de.steamwar.bungeecore;
|
||||||
|
|
||||||
|
public class Arenaserver extends Subserver {
|
||||||
|
|
||||||
|
private final String mode;
|
||||||
|
private final String map;
|
||||||
|
private final int eventFightID;
|
||||||
|
private final boolean ranked;
|
||||||
|
|
||||||
|
public Arenaserver(String serverName, String mode, String map, int eventFightID, boolean ranked, int port, String... command) {
|
||||||
|
super(Servertype.ARENA, serverName, port, command);
|
||||||
|
this.mode = mode;
|
||||||
|
this.map = map;
|
||||||
|
this.eventFightID = eventFightID;
|
||||||
|
this.ranked = ranked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Arenaserver(String serverName, String mode, String map, int eventFightID, boolean ranked, int port, Runnable shutdownCallback, String... command) {
|
||||||
|
super(Servertype.ARENA, serverName, port, shutdownCallback, command);
|
||||||
|
this.mode = mode;
|
||||||
|
this.map = map;
|
||||||
|
this.eventFightID = eventFightID;
|
||||||
|
this.ranked = ranked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Arenaserver(String serverName, String mode, String map, int eventFightID, boolean ranked, int port, ProcessBuilder processBuilder, Runnable shutdownCallback) {
|
||||||
|
super(Servertype.ARENA, serverName, port, processBuilder, shutdownCallback);
|
||||||
|
this.mode = mode;
|
||||||
|
this.map = map;
|
||||||
|
this.eventFightID = eventFightID;
|
||||||
|
this.ranked = ranked;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMode() {
|
||||||
|
return mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMap() {
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEventFightID() {
|
||||||
|
return eventFightID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRanked() {
|
||||||
|
return ranked;
|
||||||
|
}
|
||||||
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren