mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 06:21:08 +00:00
13 lines
No EOL
355 B
JavaScript
13 lines
No EOL
355 B
JavaScript
module.exports=inject;
|
|
|
|
function inject(serv, player, self) {
|
|
serv.broadcast('Hey ' + player.username + '!');
|
|
player.setGameMode(1);
|
|
|
|
player.on('block_place_cancel', function(e, cancel) { // Users can't place any wood planks!
|
|
if (e.id == '5') {
|
|
cancel();
|
|
player.sendBlock(e.position, 0);
|
|
}
|
|
});
|
|
} |