add toggle for monsters only #3
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This link shows the difference between Monsters vs Creatures
I've added a boolean in the config so users can choose between all Creatures, or Monsters only. Being as this plugin is named MobPreventer I didn't want to exclude all Creatures, as some may have a need to blacklist Creatures that are not Monsters. But the majority of people, in my opinion, only want to work with Monsters.
true is the default value of monstersOnly, meaning that the blacklist/whitelist will only consider Monsters. Changing it to false will make the plugin consider all Creatures.