6 lines
223 B
GDScript

extends PacketHandler
func handle_packet(data: PackedByteArray, _peer: PacketPeer):
var player_id := data.get_string_from_ascii()
print("[%s] Remove player: %s" % [Global.username, player_id])
%Players.remove(player_id)