--- a/net/minecraft/server/rcon/NetworkDataOutputStream.java
+++ b/net/minecraft/server/rcon/NetworkDataOutputStream.java
@@ -22,6 +22,16 @@
         this.dataOutputStream.write(0);
     }
 
+    // Paper start - unchecked exception variant to use in Stream API
+    public void writeStringUnchecked(String string) {
+        try {
+            writeString(string);
+        } catch (IOException e) {
+            com.destroystokyo.paper.util.SneakyThrow.sneaky(e);
+        }
+    }
+    // Paper end
+
     public void write(int value) throws IOException {
         this.dataOutputStream.write(value);
     }
