Represents a swarm of mineflayer bots. Bots are removed from the swarm on disconnect.
createSwarm to create a swarm object.
Static
Rest
Optional
Check for the presence or absence of a member with a given name.
The authentication information to create the swarm member with.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Check for the presence or absence of a plugin with a given name.
The plugin to query for.
Returns true if the given plugin is loaded in the swarm, otherwise returns false.
The username to query for.
Returns true if the given username is contained in the swarm, otherwise returns false.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Load a plugin
The plugin to add.
DEPRECATED OPTION. WILL BE REMOVED IN A FUTURE RELEASE.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Represents a swarm of mineflayer bots. Bots are removed from the swarm on disconnect.
See
createSwarm to create a swarm object.