Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
- [bot.settings.skinParts.showHat - boolean](#botsettingsskinpartsshowhat---boolean)
- [bot.settings.enableTextFiltering - boolean](#botsettingsenabletextfiltering---boolean)
- [bot.settings.enableServerListing - boolean](#botsettingsenableserverlisting---boolean)
- [bot.settings.particleStatus - string](#botsettingsparticlestatus---string)
- [bot.experience.level](#botexperiencelevel)
- [bot.experience.points](#botexperiencepoints)
- [bot.experience.progress](#botexperienceprogress)
Expand Down Expand Up @@ -827,6 +828,7 @@ Create and return an instance of the class bot.
* [skinParts](#bot.settings.skinParts)
* [enableTextFiltering](#bot.settings.enableTextFiltering)
* [enableServerListing](#bot.settings.enableServerListing)
* [particleStatus](#bot.settings.particleStatus)
* chatLengthLimit : the maximum amount of characters that can be sent in a single message. If this is not set, it will be 100 in < 1.11 and 256 in >= 1.11.
* defaultChatPatterns: defaults to true, set to false to not add the patterns such as chat and whisper

Expand Down Expand Up @@ -1013,6 +1015,8 @@ If you have a cape you can turn it off by setting this to false.
Unused, defaults to false in Notchian (Vanilla) client.
#### bot.settings.enableServerListing - boolean
This setting is sent to the server to determine whether the player should show up in server listings
#### bot.settings.particleStatus - string
Particle status sent to the server (1.21.3+): `all`, `decreased` or `minimal`. Defaults to `all`.
#### bot.experience.level

#### bot.experience.points
Expand Down
3 changes: 2 additions & 1 deletion lib/plugins/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ function inject (bot, options) {
skinParts,
mainHand: handBits,
enableTextFiltering: bot.settings.enableTextFiltering,
enableServerListing: bot.settings.enableServerListing
enableServerListing: bot.settings.enableServerListing,
particleStatus: bot.settings.particleStatus
})
}

Expand Down
Loading