From aa0ad30f40ce2787cfc726944553609c26b73f7a Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 19 Sep 2021 10:43:21 +0200 Subject: [PATCH] Add Arenaserver to store Data --- src/de/steamwar/bungeecore/Arenaserver.java | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/de/steamwar/bungeecore/Arenaserver.java diff --git a/src/de/steamwar/bungeecore/Arenaserver.java b/src/de/steamwar/bungeecore/Arenaserver.java new file mode 100644 index 0000000..ff5b62c --- /dev/null +++ b/src/de/steamwar/bungeecore/Arenaserver.java @@ -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; + } +}