diff --git a/lib/servers/configuration.ex b/lib/servers/configuration.ex index 3c13f06..addd285 100644 --- a/lib/servers/configuration.ex +++ b/lib/servers/configuration.ex @@ -266,10 +266,9 @@ defmodule Amethyst.Server.Configuration do Logger.error("Unhandled but known packet #{elem(tuple, 0)}") {:unhandled, state} end - defp handle_plugin_message("minecraft:brand", data, client, state) do + defp handle_plugin_message("minecraft:brand", data, _client, state) do {[brand], ""} = Read.start(data) |> Read.string |> Read.stop Logger.info("Client using brand: #{brand}") - transmit({:clientbound_plugin_message, "minecraft:brand", "amethyst"}, client) {:ok, Keyword.put(state, :brand, brand)} end defp handle_plugin_message("amethyst:hello", _data, client, state) do