This plugin eliminates the frustration of receiving unwanted junk items like grubs, worms, and seeds when harvesting plants and crops. Each player can independently toggle the junk filter, and server admins can customize which items are considered "junk" for their server.
Each player ID maps to
Permissions
noharvestjunk.use-- Allows players to toggle the harvest junk filter. Players without this permission cannot use the filter command.
Commands
/nhj-- Toggles the harvest junk filter on or off for the executing player.
Configuration
JSON:
{
"Version": "1.0.0",
"Chat Command": "nhj",
"Blocked Items (shortnames)": [
"grub",
"worm",
"seed.hemp",
"seed.corn",
"seed.potato",
"seed.pumpkin",
"seed.berry.blue",
"seed.berry.green",
"seed.berry.red",
"seed.berry.white",
"seed.berry.yellow"
],
"Default Enabled For New Players": true,
"Show Blocked Message": true,
"Use Toast Notification (false = chat message)": true
}
Chat Command-- The command players use to toggle the filter (without the slash).Default Enabled For New Players-- Whether the filter is enabled by default for players who have never toggled it. Set tofalseif you want filters disabled by default.Show Blocked Message-- Display a notification to the player when a junk item is blocked. Set tofalseto block items silently.Use Toast Notification (false = chat message)-- Use in-game toast notifications instead of chat messages. Toast notifications appear as pop-ups; chat messages appear in the chat box.Blocked Items (shortnames)-- List of item shortnames that are prevented from being harvested when the filter is enabled. Use the item's in-game shortname (e.g.,"grub","seed.hemp"). Add or remove items as needed for your server.
Stored Data
JSON:
{
"Player Preferences": {
"76561198012345678": true,
"76561198087654321": false
}
}
true (filter enabled) or false (filter disabled).Localization
JSON:
{
"Error.NoPermission": "You do not have permission to use this command.",
"Filter.Enabled": "Harvest junk filter <color=#8BC34A>enabled</color>. You will no longer receive junk items.",
"Filter.Disabled": "Harvest junk filter <color=#F44336>disabled</color>. You will now receive all harvest items.",
"Item.Blocked": "Blocked: {0}"
}