SteamWar/BungeeCore
Archiviert
13
2

First ranked implementation #95

Manuell gemergt
Lixfel hat 6 Commits von ranked nach master 2020-07-19 16:46:59 +02:00 zusammengeführt
Nur Änderungen aus Commit 74dbd92d7a werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -147,7 +147,13 @@ public class RankedCommand extends BasicCommand {
removeFromAll(wp2.player);
String serverName = wp1.player.getName() + " vs " + wp2.player.getName();
SubserverSystem.startArena(mode, mode.getRandomMap(), 0, 0, serverName, serverName.replace(' ', '_'), wp1.player.getUniqueId(), wp2.player.getUniqueId(), true);
Subserver arena = SubserverSystem.startArena(mode, mode.getRandomMap(), 0, 0, serverName, serverName.replace(' ', '_'), wp1.player.getUniqueId(), wp2.player.getUniqueId(), true);
arena.sendPlayer(wp1.player);
arena.sendPlayer(wp2.player);
BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7" + mode.getDisplayName() + "§8-§7Ranglistenspiel§8: §e" + serverName,
"§aZuschauen",
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + wp1.player.getName()));
}
}
}