Shorten name for ranked matches
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
f721cfaed6
Commit
b63b5f021c
@ -82,8 +82,12 @@ public class SubserverSystem {
|
|||||||
//Generate missing parameters
|
//Generate missing parameters
|
||||||
int port = freePort(2500);
|
int port = freePort(2500);
|
||||||
|
|
||||||
if(serverName == null)
|
if(serverName == null){
|
||||||
serverName = modus.getDisplayName() + (port - 2500);
|
if(ranked)
|
||||||
|
serverName = "Ranked" + (port - 2500);
|
||||||
|
else
|
||||||
|
serverName = modus.getDisplayName() + (port - 2500);
|
||||||
|
}
|
||||||
if(mapName == null)
|
if(mapName == null)
|
||||||
mapName = serverName;
|
mapName = serverName;
|
||||||
|
|
||||||
|
@ -165,12 +165,11 @@ public class RankedCommand extends BasicCommand {
|
|||||||
removeFromAll(wp1.player);
|
removeFromAll(wp1.player);
|
||||||
removeFromAll(wp2.player);
|
removeFromAll(wp2.player);
|
||||||
|
|
||||||
String serverName = wp1.player.getName() + " vs " + wp2.player.getName();
|
Subserver arena = SubserverSystem.startArena(mode, mode.getRandomMap(), 0, 0, null, null, 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(wp1.player);
|
||||||
arena.sendPlayer(wp2.player);
|
arena.sendPlayer(wp2.player);
|
||||||
|
|
||||||
BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7" + mode.getDisplayName() + "§8-§7Ranglistenspiel§8: §e" + serverName,
|
BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7" + mode.getDisplayName() + "§8-§7Ranglistenspiel§8: §e" + wp1.player.getName() + " vs " + wp2.player.getName(),
|
||||||
"§aZuschauen",
|
"§aZuschauen",
|
||||||
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + wp1.player.getName()));
|
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/join " + wp1.player.getName()));
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren