File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,9 @@ impl Server {
681681 }
682682
683683 fn on_plugin_message_clientbound ( & mut self , channel : & str , data : & [ u8 ] ) {
684- println ! ( "Received plugin message: channel={}, data={:?}" , channel, data) ;
684+ if unsafe { protocol:: NETWORK_DEBUG } {
685+ println ! ( "Received plugin message: channel={}, data={:?}" , channel, data) ;
686+ }
685687
686688 match channel {
687689 // TODO: "REGISTER" =>
@@ -738,7 +740,9 @@ impl Server {
738740 }
739741
740742 fn write_plugin_message ( & mut self , channel : & str , data : & [ u8 ] ) {
741- println ! ( "Sending plugin message: channel={}, data={:?}" , channel, data) ;
743+ if unsafe { protocol:: NETWORK_DEBUG } {
744+ println ! ( "Sending plugin message: channel={}, data={:?}" , channel, data) ;
745+ }
742746 if self . protocol_version >= 47 {
743747 self . write_packet ( packet:: play:: serverbound:: PluginMessageServerbound {
744748 channel : channel. to_string ( ) ,
You can’t perform that action at this time.
0 commit comments