Compare commits
3 Commits
181aac0f2a
...
c01f638579
Author | SHA1 | Date |
---|---|---|
virustotalop | c01f638579 | |
Dan Mulloy | e1255edb32 | |
virustotalop | ba2b1d6595 |
|
@ -135,6 +135,12 @@ class SerializedOfflinePlayer implements OfflinePlayer, Serializable {
|
||||||
return bedSpawnLocation;
|
return bedSpawnLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Location getRespawnLocation() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// @Override
|
// @Override
|
||||||
public long getLastLogin() {
|
public long getLastLogin() {
|
||||||
return lastLogin;
|
return lastLogin;
|
||||||
|
@ -145,6 +151,16 @@ class SerializedOfflinePlayer implements OfflinePlayer, Serializable {
|
||||||
return lastSeen;
|
return lastSeen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Location getRespawnLocation() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Location getLocation() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO do we need to implement this?
|
// TODO do we need to implement this?
|
||||||
|
|
||||||
public void incrementStatistic(Statistic statistic) throws IllegalArgumentException {
|
public void incrementStatistic(Statistic statistic) throws IllegalArgumentException {
|
||||||
|
@ -209,6 +225,12 @@ class SerializedOfflinePlayer implements OfflinePlayer, Serializable {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Location getLocation() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getFirstPlayed() {
|
public long getFirstPlayed() {
|
||||||
return firstPlayed;
|
return firstPlayed;
|
||||||
|
|
|
@ -93,7 +93,12 @@ public class NetworkManagerInjector implements ChannelListener {
|
||||||
if (marker != null || MinecraftReflection.isBundlePacket(packetClass) || outboundListeners.contains(packetClass)) {
|
if (marker != null || MinecraftReflection.isBundlePacket(packetClass) || outboundListeners.contains(packetClass)) {
|
||||||
// wrap packet and construct the event
|
// wrap packet and construct the event
|
||||||
PacketType.Protocol currentProtocol = injector.getCurrentProtocol(PacketType.Sender.SERVER);
|
PacketType.Protocol currentProtocol = injector.getCurrentProtocol(PacketType.Sender.SERVER);
|
||||||
PacketContainer container = new PacketContainer(PacketRegistry.getPacketType(currentProtocol, packetClass), packet);
|
PacketType type = PacketRegistry.getPacketType(currentProtocol, packetClass);
|
||||||
|
if (type == null) {
|
||||||
|
ProtocolLogger.debug("Invalid packet type: " + packetClass.getName());
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
PacketContainer container = new PacketContainer(type, packet);
|
||||||
PacketEvent packetEvent = PacketEvent.fromServer(this, container, marker, injector.getPlayer());
|
PacketEvent packetEvent = PacketEvent.fromServer(this, container, marker, injector.getPlayer());
|
||||||
|
|
||||||
// post to all listeners, then return the packet event we constructed
|
// post to all listeners, then return the packet event we constructed
|
||||||
|
|
Loading…
Reference in New Issue