6 lines
192 B
GDScript

extends PacketHandler
func handle_packet(data: PackedByteArray):
var player_id := data.get_string_from_ascii()
%Client.log("Remove player: %s" % player_id)
Global.players.remove(player_id)