Files

19 lines
426 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# test2.js — sendSky() (satır 53)
[← test2.js](index.md) · [← Master](../../wiki.md)
```javascript
function sendSky(player, url)
{
var buffer = new PacketBuffer(Unpooled.buffer());
var bytes = new StringClass(String(url)).getBytes(StandardCharsets.UTF_8);
buffer.writeByte(2);
buffer.writeInt(bytes.length);
buffer.writeBytes(bytes);
sendPacket(player, buffer);
}
```