New Eventworldname
Dieser Commit ist enthalten in:
Ursprung
6d4130a44a
Commit
000ba6aee0
@ -1,5 +1,6 @@
|
|||||||
package de.steamwar.bungeecore;
|
package de.steamwar.bungeecore;
|
||||||
|
|
||||||
|
import de.steamwar.bungeecore.commands.EventCommand;
|
||||||
import de.steamwar.bungeecore.sql.Bauwelt;
|
import de.steamwar.bungeecore.sql.Bauwelt;
|
||||||
import de.steamwar.bungeecore.sql.EventFight;
|
import de.steamwar.bungeecore.sql.EventFight;
|
||||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||||
@ -37,7 +38,7 @@ public class SubserverSystem {
|
|||||||
public static Subserver startEventArena(EventFight eventFight, String serverName){
|
public static Subserver startEventArena(EventFight eventFight, String serverName){
|
||||||
int port = freePort(2500);
|
int port = freePort(2500);
|
||||||
return new Subserver(Servertype.ARENA, serverName, port,
|
return new Subserver(Servertype.ARENA, serverName, port,
|
||||||
MC_SCRIPT, "-a", eventFight.getSpielmodus().name(), serverName.replace(' ', '_'), Integer.toString(port), eventFight.getMap(), Integer.toString(eventFight.getFightID()));
|
MC_SCRIPT, "-a", eventFight.getSpielmodus().name(), serverName.replace(' ', '_') + eventFight.getStartTime().toLocalDateTime().format(EventCommand.TIME_FORMAT), Integer.toString(port), eventFight.getMap(), Integer.toString(eventFight.getFightID()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void sendToBauServer(ProxiedPlayer p, UUID owner){
|
public static void sendToBauServer(ProxiedPlayer p, UUID owner){
|
||||||
|
@ -18,8 +18,8 @@ import java.util.Set;
|
|||||||
|
|
||||||
public class EventCommand extends BasicCommand {
|
public class EventCommand extends BasicCommand {
|
||||||
|
|
||||||
private static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm");
|
public static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm");
|
||||||
public static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("dd.MM.");
|
static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("dd.MM.");
|
||||||
|
|
||||||
public EventCommand() {
|
public EventCommand() {
|
||||||
super("event", "");
|
super("event", "");
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren