J3c: a land server stopping tells its players and is started afresh when they rejoin; the extra ports to forward on the Host page, the hosting message, the server log and HOSTING.md
This commit is contained in:
@@ -1283,6 +1283,9 @@ func _go_online() -> void:
|
||||
if Net.hosting:
|
||||
var at := Net.my_addresses()
|
||||
Actions.notify.emit("You're hosting. Friends join at %s" % (", ".join(PackedStringArray(at)) if not at.is_empty() else "this computer's address"))
|
||||
var home_land := String(Net.server_info.get("worldlet", "valley"))
|
||||
if not Lands.extra_ports(home_land, Net._host_port).is_empty():
|
||||
Actions.notify.emit("Over the internet, forward %s" % Lands.ports_text(home_land, Net._host_port))
|
||||
|
||||
func _on_net_left(_reason: String) -> void:
|
||||
WorldNet.leave_world()
|
||||
|
||||
Reference in New Issue
Block a user