module Australium
  class PlayerDisconnect < Event

    LOG_REGEX = /"(?<player>.+)" disconnected"/

    # @!attribute player
    #   @return [Player] the {Player} who disconnected from the server.

    def initialize(data)
      super(data)
      state.players.delete(player) unless state.nil?
    end

  end
end

module Australium
  class PlayerDisconnect < Event

    LOG_REGEX = /"(?<player>.+)" disconnected/

    # @!attribute player
    #   @return [Player] the {Player} who disconnected from the server.

    def initialize(data)
      super(data)
      state.players.delete(player) unless state.nil?
    end

  end
end

Fix regex not matching disconnect events
PlayerDisconnect: Fix regex not matching disconnect events

An extra quote character prevented the PlayerDisconnect regex from
correctly matching its associated event in server logs. This commit
removes the erroneous character.
