Files

20 lines
625 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.
# MercanElArosSky.js — sendBufferTo() (satır 22)
[← MercanElArosSky.js](index.md) · [← Master](../../wiki.md)
```javascript
function sendBufferTo(mcPlayer, buffer)
{
var channel = getServerChannel();
if (channel == null)
{
throw "Forge kanali bulunamadi: " + CHANNEL_NAME + ". athv1-hotfix client ve server tarafinda yuklu olmali.";
}
channel.attr(FMLOutboundHandler.FML_MESSAGETARGET).set(OutboundTarget.PLAYER);
channel.attr(FMLOutboundHandler.FML_MESSAGETARGETARGS).set(mcPlayer);
channel.writeAndFlush(new FMLProxyPacket(buffer, CHANNEL_NAME));
}
```