
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
mineflayer-death-event
Advanced tools
Emit player death event in Mineflayer.
npm install mineflayer-death-event --save
or
yarn add mineflayer-death-event
const mineflayer = require("mineflayer")
const autoeat = require("mineflayer-death-event")
const bot = mineflayer.createBot({
host: "mc.example.com",
username: "testbot"
})
// Load the plugin
bot.loadPlugin(autoeat)
bot.on("playerDeath", (data) => {
console.log(data);
});
mineflayer-death-event
will emit a event when player die. The event name is playerDeath
.
Attacker. Interface see Entity.
The player being attacked. Interface see Entity.
module will export two constants. You can Determine the type of variable "type
"
const { DEATH_ENTITY_TYPE_MOB, DEATH_ENTITY_TYPE_PLAYER } = require("mineflayer-death-event");
The weapon used to kill the attacked player. Interface see Weapon.
offender death method.
property | type | description |
---|---|---|
type | String | Is player or mob/entity |
id | String | Player UUID |
detail | Function | If type not is "mob", then will return Mineflayer player interface (source) |
raw | Function | Original value, from message event |
property | type | description |
---|---|---|
assetId | String | Weapon's Minecraft asset ID |
tag | String | Weapon's tag |
mame | String | Weapon's mame, This is usually named after the anvil |
raw | Function | Original value, from message event |
tagToJSON | Function | Parse and simplify weapon tag |
FAQs
Emit player death event in Mineflayer.
The npm package mineflayer-death-event receives a total of 7 weekly downloads. As such, mineflayer-death-event popularity was classified as not popular.
We found that mineflayer-death-event demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.