mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-13 11:31:08 +00:00
14 lines
No EOL
273 B
JavaScript
14 lines
No EOL
273 B
JavaScript
module.exports=inject;
|
|
|
|
function inject(serv)
|
|
{
|
|
function setBlock(position,blockType)
|
|
{
|
|
serv.players.forEach(function(player){
|
|
player.sendBlock(position, blockType);
|
|
});
|
|
serv.world.setBlockType(position,blockType);
|
|
}
|
|
|
|
serv.setBlock = setBlock;
|
|
} |