forEachInChunk
Iterates for each player in specified chunk.
Syntax
engine.players.forEachInChunk(callback);
Parameters
Name | Type | Description |
---|---|---|
callback | (entity: PlayerManager) => boolean | Callback |
Example
engine.players.forEachInChunk(`0_0_0_0`, player => {
player.sendMessage('Hello world!');
});
Available on: Client Server