diff --git a/TODO.md b/TODO.md index b2b5b3c..6974ddf 100644 --- a/TODO.md +++ b/TODO.md @@ -20,11 +20,11 @@ This is a list that will keep the developers and the community organized! - [x] Other dimensions - [x] Block dropping - [x] Entity basics + - [x] Plugin System ### To-do #### Priority - [ ] Inventories (saving the blocks players get) - - [ ] Plugin System - [ ] Crafting and Smelting - [ ] Add in cluster functionality diff --git a/doc/api.md b/doc/api.md index c6a8c3b..38fdb11 100644 --- a/doc/api.md +++ b/doc/api.md @@ -723,7 +723,7 @@ Cancelled: Replace block with old block for player #### "attack" Emitted when a player attacks an entity -- attackdEntity: Entity being attacked +- attackedEntity: Entity being attacked - playSound: Play sound (Default: true) - sound: Sound to play (default is game.player.hurt) - damage: Damage to deal (default is based off player's weapon, player's potions, attackEntity's potions, and attackedEntity armor) diff --git a/src/lib/plugins/digging.js b/src/lib/plugins/digging.js index 2893b44..a7c8832 100644 --- a/src/lib/plugins/digging.js +++ b/src/lib/plugins/digging.js @@ -18,7 +18,7 @@ module.exports.player=function(player,serv) position: pos, block: block }, ({position}) => { - return startDigmehging(position); + return startDigging(position); }, cancelDig); else if(status==2) player.behavior('dug', { // Finish dig survival diff --git a/src/lib/plugins/sound.js b/src/lib/plugins/sound.js index 44f5dad..2961543 100644 --- a/src/lib/plugins/sound.js +++ b/src/lib/plugins/sound.js @@ -57,7 +57,7 @@ module.exports.player=function(player,serv) { if (status != 0 || player.gameMode == 1) return; return player.world.getBlockType(reference).then((id) => { if (id != 25) return; - cancel(); + cancel(false); if (!player.world.blockEntityData[reference.toString()]) player.world.blockEntityData[reference.toString()] = {}; var data = player.world.blockEntityData[reference.toString()]; if (typeof data.note == 'undefined') data.note = 0;