SteamWar/BungeeCore
Archiviert
13
2
Dieser Commit ist enthalten in:
Lixfel 2019-09-06 20:14:27 +02:00
Ursprung 72ea55a7f2
Commit e302a37982
3 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -37,7 +37,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, Integer.toString(port), eventFight.getMap(), Integer.toString(eventFight.getFightID())); MC_SCRIPT, "-a", eventFight.getSpielmodus().name(), serverName.replace(' ', '_'), 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){

Datei anzeigen

@ -97,7 +97,7 @@ public class EventCommand extends BasicCommand {
.append(fight.getStartTime().toLocalDateTime().format(TIME_FORMAT)) .append(fight.getStartTime().toLocalDateTime().format(TIME_FORMAT))
.append(" §e") .append(" §e")
.append(blue.getTeamKuerzel()) .append(blue.getTeamKuerzel())
.append("§8:§e") .append("§8 vs §e")
.append(red.getTeamKuerzel()); .append(red.getTeamKuerzel());
if(now.isAfter(fight.getStartTime().toInstant().plus(35, ChronoUnit.MINUTES))){ if(now.isAfter(fight.getStartTime().toInstant().plus(35, ChronoUnit.MINUTES))){

Datei anzeigen

@ -121,7 +121,11 @@ public class ChatListener extends BasicListener {
public void onTabCompleteEvent(TabCompleteEvent e){ public void onTabCompleteEvent(TabCompleteEvent e){
List<String> suggestions = e.getSuggestions(); List<String> suggestions = e.getSuggestions();
String [] cursor = e.getCursor().split(" "); String [] cursor = e.getCursor().split(" ");
String last = cursor[cursor.length - 1]; String last;
if(cursor.length != 0)
last = cursor[cursor.length - 1];
else
last = "";
for(ProxiedPlayer player : ProxyServer.getInstance().getPlayers()){ for(ProxiedPlayer player : ProxyServer.getInstance().getPlayers()){
String name = player.getName(); String name = player.getName();
if(last.isEmpty() || name.startsWith(last)){ if(last.isEmpty() || name.startsWith(last)){