13
0

Add Arenaserver to store Data

Dieser Commit ist enthalten in:
Chaoscaot 2021-09-19 10:43:21 +02:00
Ursprung ae1ca904bd
Commit aa0ad30f40

Datei anzeigen

@ -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;
}
}