2019-07-10 06:34:10 +00:00
|
|
|
/*
|
2019-07-11 21:30:35 +00:00
|
|
|
* Copyright (c) 2019 GeyserMC. http://geysermc.org
|
2019-07-10 06:34:10 +00:00
|
|
|
*
|
2019-07-11 21:30:35 +00:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to deal
|
|
|
|
* in the Software without restriction, including without limitation the rights
|
|
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
* copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
2019-07-10 06:34:10 +00:00
|
|
|
*
|
2019-07-11 21:30:35 +00:00
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
* THE SOFTWARE.
|
2019-07-10 06:34:10 +00:00
|
|
|
*
|
|
|
|
* @author GeyserMC
|
|
|
|
* @link https://github.com/GeyserMC/Geyser
|
|
|
|
*/
|
|
|
|
|
|
|
|
package org.geysermc.connector.network;
|
|
|
|
|
2019-07-21 20:39:03 +00:00
|
|
|
import com.github.steveice10.mc.protocol.data.game.entity.player.Hand;
|
2019-07-21 01:10:30 +00:00
|
|
|
import com.github.steveice10.mc.protocol.packet.ingame.client.ClientChatPacket;
|
2019-07-21 20:39:03 +00:00
|
|
|
import com.github.steveice10.mc.protocol.packet.ingame.client.player.ClientPlayerSwingArmPacket;
|
2019-07-10 06:34:10 +00:00
|
|
|
import com.nimbusds.jose.JWSObject;
|
|
|
|
import com.nukkitx.protocol.bedrock.handler.BedrockPacketHandler;
|
2019-07-12 20:59:36 +00:00
|
|
|
import com.nukkitx.protocol.bedrock.packet.*;
|
2019-07-10 06:34:10 +00:00
|
|
|
import net.minidev.json.JSONArray;
|
|
|
|
import net.minidev.json.JSONObject;
|
|
|
|
import net.minidev.json.JSONValue;
|
2019-07-23 23:16:25 +00:00
|
|
|
import org.geysermc.api.events.player.PlayerFormResponseEvent;
|
2019-07-24 06:29:54 +00:00
|
|
|
import org.geysermc.api.window.CustomFormBuilder;
|
|
|
|
import org.geysermc.api.window.CustomFormWindow;
|
2019-07-23 23:16:25 +00:00
|
|
|
import org.geysermc.api.window.FormWindow;
|
2019-07-24 06:29:54 +00:00
|
|
|
import org.geysermc.api.window.component.InputComponent;
|
|
|
|
import org.geysermc.api.window.component.LabelComponent;
|
|
|
|
import org.geysermc.api.window.response.CustomFormResponse;
|
2019-07-10 06:34:10 +00:00
|
|
|
import org.geysermc.connector.GeyserConnector;
|
|
|
|
import org.geysermc.connector.network.session.GeyserSession;
|
2019-07-23 23:16:25 +00:00
|
|
|
import org.geysermc.connector.network.session.auth.BedrockAuthData;
|
|
|
|
import org.geysermc.connector.network.session.cache.WindowCache;
|
2019-07-10 06:34:10 +00:00
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|
|
|
|
|
|
|
private GeyserConnector connector;
|
|
|
|
private GeyserSession session;
|
|
|
|
|
|
|
|
public UpstreamPacketHandler(GeyserConnector connector, GeyserSession session) {
|
|
|
|
this.connector = connector;
|
|
|
|
this.session = session;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LoginPacket loginPacket) {
|
|
|
|
// TODO: Implement support for multiple protocols
|
|
|
|
if (loginPacket.getProtocolVersion() != GeyserConnector.BEDROCK_PACKET_CODEC.getProtocolVersion()) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("unsupported");
|
2019-07-10 06:34:10 +00:00
|
|
|
session.getUpstream().disconnect("Unsupported Bedrock version. Are you running an outdated version?");
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
session.getUpstream().setPacketCodec(GeyserConnector.BEDROCK_PACKET_CODEC);
|
|
|
|
|
|
|
|
try {
|
|
|
|
JSONObject chainData = (JSONObject) JSONValue.parse(loginPacket.getChainData().array());
|
|
|
|
JSONArray chainArray = (JSONArray) chainData.get("chain");
|
|
|
|
|
|
|
|
Object identityObject = chainArray.get(chainArray.size() - 1);
|
|
|
|
|
|
|
|
JWSObject identity = JWSObject.parse((String) identityObject);
|
|
|
|
JSONObject extraData = (JSONObject) identity.getPayload().toJSONObject().get("extraData");
|
|
|
|
|
2019-07-23 23:16:25 +00:00
|
|
|
session.setAuthenticationData(new BedrockAuthData(extraData.getAsString("displayName"), UUID.fromString(extraData.getAsString("identity")), extraData.getAsString("XUID")));
|
2019-07-10 06:34:10 +00:00
|
|
|
} catch (Exception ex) {
|
|
|
|
session.getUpstream().disconnect("An internal error occurred when connecting to this server.");
|
|
|
|
ex.printStackTrace();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
PlayStatusPacket playStatus = new PlayStatusPacket();
|
|
|
|
playStatus.setStatus(PlayStatusPacket.Status.LOGIN_SUCCESS);
|
|
|
|
session.getUpstream().sendPacketImmediately(playStatus);
|
|
|
|
|
|
|
|
ResourcePacksInfoPacket resourcePacksInfo = new ResourcePacksInfoPacket();
|
|
|
|
session.getUpstream().sendPacketImmediately(resourcePacksInfo);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackClientResponsePacket textPacket) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled " + textPacket.getClass().getSimpleName());
|
2019-07-10 06:34:10 +00:00
|
|
|
switch (textPacket.getStatus()) {
|
|
|
|
case COMPLETED:
|
2019-07-10 17:52:29 +00:00
|
|
|
session.connect(connector.getRemoteServer());
|
2019-07-24 06:29:54 +00:00
|
|
|
connector.getLogger().info("Player connected with username " + session.getAuthenticationData().getName());
|
2019-07-10 06:34:10 +00:00
|
|
|
break;
|
|
|
|
case HAVE_ALL_PACKS:
|
|
|
|
ResourcePackStackPacket stack = new ResourcePackStackPacket();
|
|
|
|
stack.setExperimental(false);
|
|
|
|
stack.setForcedToAccept(false);
|
|
|
|
session.getUpstream().sendPacketImmediately(stack);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
session.getUpstream().disconnect("disconnectionScreen.resourcePack");
|
|
|
|
break;
|
|
|
|
}
|
2019-07-13 19:00:51 +00:00
|
|
|
|
2019-07-10 06:34:10 +00:00
|
|
|
return true;
|
|
|
|
}
|
2019-07-12 20:59:36 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AdventureSettingsPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AnimatePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-21 20:39:03 +00:00
|
|
|
switch (packet.getAction()) {
|
|
|
|
case SWING_ARM:
|
|
|
|
ClientPlayerSwingArmPacket swingArmPacket = new ClientPlayerSwingArmPacket(Hand.MAIN_HAND);
|
|
|
|
session.getDownstream().getSession().send(swingArmPacket);
|
|
|
|
}
|
|
|
|
return true;
|
2019-07-12 20:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockEntityDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockPickRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BookEditPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheBlobStatusPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheMissResponsePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientCacheStatusPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientToServerHandshakePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandBlockUpdatePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-21 01:21:11 +00:00
|
|
|
|
2019-07-22 00:52:20 +00:00
|
|
|
String command = packet.getCommand().replace("/", "");
|
|
|
|
if (connector.getCommandMap().getCommands().containsKey(command)) {
|
|
|
|
connector.getCommandMap().runCommand(session, command);
|
|
|
|
} else {
|
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getCommand());
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
|
}
|
2019-07-21 01:21:11 +00:00
|
|
|
|
|
|
|
return true;
|
2019-07-12 20:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerClosePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CraftingEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityFallPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(EntityPickRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(EventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(InteractPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventoryContentPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventorySlotPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(InventoryTransactionPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ItemFrameDropItemPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LabTablePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LecternUpdatePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelEventGenericPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEvent3Packet packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MapInfoRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobArmorEquipmentPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobEquipmentPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ModalFormResponsePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-23 23:16:25 +00:00
|
|
|
WindowCache windowCache = session.getWindowCache();
|
|
|
|
if (!windowCache.getWindows().containsKey(packet.getFormId()))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
FormWindow window = windowCache.getWindows().remove(packet.getFormId());
|
|
|
|
window.setResponse(packet.getFormData().trim());
|
|
|
|
|
2019-07-24 06:29:54 +00:00
|
|
|
if (session.isLoggedIn()) {
|
|
|
|
PlayerFormResponseEvent event = new PlayerFormResponseEvent(session, packet.getFormId(), window);
|
|
|
|
connector.getPluginManager().runEvent(event);
|
|
|
|
} else {
|
|
|
|
if (window instanceof CustomFormWindow) {
|
|
|
|
CustomFormWindow customFormWindow = (CustomFormWindow) window;
|
|
|
|
if (!customFormWindow.getTitle().equals("Login"))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
CustomFormResponse response = (CustomFormResponse) customFormWindow.getResponse();
|
|
|
|
session.authenticate(response.getInputResponses().get(2), response.getInputResponses().get(3));
|
|
|
|
|
|
|
|
// Clear windows so authentication data isn't accidentally cached
|
|
|
|
windowCache.getWindows().clear();
|
|
|
|
}
|
|
|
|
}
|
2019-07-23 23:16:25 +00:00
|
|
|
return true;
|
2019-07-12 20:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MoveEntityAbsolutePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MovePlayerPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-24 06:29:54 +00:00
|
|
|
if (!session.isLoggedIn()) {
|
|
|
|
CustomFormWindow window = new CustomFormBuilder("Login")
|
|
|
|
.addComponent(new LabelComponent("Minecraft: Java Edition account authentication."))
|
|
|
|
.addComponent(new LabelComponent("Enter the credentials for your Minecraft: Java Edition account below."))
|
|
|
|
.addComponent(new InputComponent("Email/Username", "account@geysermc.org", ""))
|
|
|
|
.addComponent(new InputComponent("Password", "123456", ""))
|
|
|
|
.build();
|
|
|
|
|
|
|
|
session.sendForm(window, 1);
|
|
|
|
return true;
|
|
|
|
}
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(NetworkStackLatencyPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PhotoTransferPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerActionPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerHotbarPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerInputPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerSkinPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PurchaseReceiptPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(RequestChunkRadiusPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackChunkRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(RiderJumpPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerSettingsRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDefaultGameTypePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetLocalPlayerAsInitializedPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetPlayerGameTypePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SubClientLoginPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(TextPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-21 01:10:30 +00:00
|
|
|
|
2019-07-22 00:52:20 +00:00
|
|
|
if (packet.getMessage().charAt(0) == '.') {
|
2019-07-21 19:48:36 +00:00
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getMessage().replace(".", "/"));
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-07-21 01:10:30 +00:00
|
|
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getMessage());
|
|
|
|
session.getDownstream().getSession().send(chatPacket);
|
|
|
|
|
|
|
|
return true;
|
2019-07-12 20:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddBehaviorTreePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddEntityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddHangingEntityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddItemEntityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddPaintingPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AddPlayerPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AvailableCommandsPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BlockEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BossEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CameraPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ChangeDimensionPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ChunkRadiusUpdatedPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ClientboundMapItemDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CommandOutputPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerOpenPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ContainerSetDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(CraftingDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(DisconnectPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ExplodePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelChunkPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(GameRulesChangedPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(GuiDataPickItemPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(HurtArmorPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AutomationClientConnectPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MapCreateLockedCopyPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MobEffectPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ModalFormRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(MoveEntityDeltaPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(NpcRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(OnScreenTextureAnimationPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayerListPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlaySoundPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(PlayStatusPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(RemoveEntityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(RemoveObjectivePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackChunkDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackDataInfoPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePacksInfoPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ResourcePackStackPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(RespawnPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ScriptCustomEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerSettingsResponsePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ServerToClientHandshakePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetCommandsEnabledPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDifficultyPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetDisplayObjectivePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityDataPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityLinkPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetEntityMotionPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetHealthPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetLastHurtByPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetScoreboardIdentityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetScorePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetSpawnPositionPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetTimePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SetTitlePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowCreditsPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowProfilePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(ShowStoreOfferPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SimpleEventPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SpawnExperienceOrbPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(StartGamePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(StopSoundPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureBlockUpdatePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureTemplateDataExportRequestPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(StructureTemplateDataExportResponsePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(TakeItemEntityPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(TransferPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateAttributesPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockPropertiesPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateBlockSyncedPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateEquipPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateSoftEnumPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(UpdateTradePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(AvailableEntityIdentifiersPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(BiomeDefinitionListPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(LevelSoundEvent2Packet packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(NetworkChunkPublisherUpdatePacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(SpawnParticleEffectPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean handle(VideoStreamConnectPacket packet) {
|
2019-07-21 21:18:20 +00:00
|
|
|
connector.getLogger().debug("Handled packet: " + packet.getClass().getSimpleName());
|
2019-07-12 20:59:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
2019-07-10 06:34:10 +00:00
|
|
|
}
|