Fixing bau testarena + help entry
Dieser Commit ist enthalten in:
Ursprung
26d36c5ca2
Commit
757f2439eb
@ -78,8 +78,9 @@ public class SubserverSystem {
|
||||
|
||||
public static void sendToTestServer(ProxiedPlayer p, ArenaMode m, String map){
|
||||
int port = freePort(4000);
|
||||
String serverName = p.getName() + "s Bau";
|
||||
new Bauserver(serverName, p.getUniqueId(), port, MC_SCRIPT, "-a", m.name(), serverName, Integer.toString(port), map, "-1").sendPlayer(p);
|
||||
|
||||
new Bauserver(p.getName() + "s Bau", p.getUniqueId(), port,
|
||||
MC_SCRIPT, "-a", m.name(), p.getName(), Integer.toString(port), map, "-1").sendPlayer(p);
|
||||
}
|
||||
|
||||
private static int freePort(int start){
|
||||
|
@ -110,6 +110,11 @@ public class HelpCommand extends BasicCommand {
|
||||
tc.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/bau delete"));
|
||||
p.sendMessage(tc);
|
||||
|
||||
tc = new TextComponent("§8/§ebau testarena §8- §7Starte eine Testarena");
|
||||
tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eTestarena starten").create()));
|
||||
tc.setClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/bau testarena"));
|
||||
p.sendMessage(tc);
|
||||
|
||||
tc = new TextComponent("§8/§ehelp bau §8- §7Hilfe zu nützlichen Werkzeugen");
|
||||
tc.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder("§eNützliche Zusatzfunktionen").create()));
|
||||
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/help bau"));
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren