File tree 2 files changed +8
-1
lines changed
ProtocolLib/src/main/java/com/comphenix/protocol/async
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
<classpathentry kind =" src" path =" src" />
4
4
<classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7" />
5
5
<classpathentry kind =" lib" path =" D:/Games/Minecraft/Server Mods/API/bukkit-1.3.1-R2.0.jar" />
6
- <classpathentry kind =" lib " path =" /ProtocolLib/bin/ProtocolLib.jar " />
6
+ <classpathentry combineaccessrules = " false " kind =" src " path =" /ProtocolLib" />
7
7
<classpathentry kind =" output" path =" class" />
8
8
</classpath >
Original file line number Diff line number Diff line change 9
9
import org .bukkit .entity .Player ;
10
10
11
11
import com .comphenix .protocol .events .PacketEvent ;
12
+ import com .comphenix .protocol .injector .PlayerLoggedOutException ;
12
13
import com .comphenix .protocol .reflect .FieldAccessException ;
13
14
14
15
/**
@@ -184,6 +185,12 @@ private void sendPacket(PacketEvent event) {
184
185
if (marker != null && !marker .isTransmitted ()) {
185
186
marker .sendPacket (event );
186
187
}
188
+
189
+ } catch (PlayerLoggedOutException e ) {
190
+ System .out .println (String .format (
191
+ "Warning: Dropped packet index %s of ID %s" ,
192
+ marker .getOriginalSendingIndex (), event .getPacketID ()
193
+ ));
187
194
188
195
} catch (IOException e ) {
189
196
// Just print the error
You can’t perform that action at this time.
0 commit comments