sFarmer Plugin Guide
This comprehensive guide will help you set up and configure the sFarmer plugin for your Minecraft server, creating an automated farming system with NPC farmers that collect crops and resources for you.What is sFarmer?
sFarmer is a powerful Minecraft plugin that adds NPC farmers to your server who can automatically:- Harvest crops when they’re fully grown
- Replant crops in empty farmland
- Kill farm animals for resources
- Collect and store farming resources
- Sell harvested items for server currency
Features Overview
- NPC Farmers: Custom NPCs that look like farmers and perform automated tasks
- Auto-Harvesting: Automatically harvest mature crops in a designated area
- Auto-Planting: Automatically plant seeds in empty farmland
- Auto-Killing: Automatically kill specified farm animals for resources
- Storage System: Store collected resources with upgradeable capacity
- Economy Integration: Sell harvested items for server currency
- Team Management: Allow multiple players to manage a single farmer
- Permission Ranks: Assign different permission levels to team members
- Visual Customization: Customize farmer appearance with glowing effects and colors
Prerequisites
Before installing sFarmer, you’ll need:- A Minecraft server running Spigot, Paper, or a compatible fork (Minecraft 1.20.6 or newer)
- Server operator permissions (or access to the server files)
- An economy plugin (Vault recommended) for the selling feature
- A land claim/protection plugin (optional but recommended)
Compatible Plugins
sFarmer works best with these plugins: Region Protection:- SuperiorSkyblock2
- IridiumSkyblock
- BentoBox (BSkyBlock, OneBlock)
- Lands
- GriefPrevention
- RClaim
- Towny
- UltimateClaims
- FabledSkyBlock
- Vault (with any economy plugin)
- PlayerPoints
- Citizens
- FancyNpcs
- DecentHolograms
- FancyHolograms
Step-by-Step Installation Guide
1. Downloading the Plugin
- Download the sFarmer plugin JAR file from a trusted source
- Make sure you download a version compatible with your server version (1.16+)
2. Installing the Plugin
- Stop your Minecraft server if it’s running
- Locate your server’s
plugins
folder- This is typically in the same directory as your server JAR file
- Copy the downloaded
sFarmer.jar
file into the plugins folder - Start your server
- The plugin will automatically create its configuration files
- Once the server is fully loaded, stop it again to configure the plugin
3. Basic Configuration
After first startup, you’ll find a new folder calledsFarmer
in your plugins directory. Here are the key files:
config.yml
: Main configuration filecollected-materials.yml
: Settings for harvestable materials and their priceslanguages/en/messages.yml
: Customizable messageslanguages/en/ranks.yml
: Team rank configuration
Setting Up Essential Configurations:
- Open the
config.yml
file - Configure your region protection plugin:
- Configure your economy plugin:
- Configure your NPC plugin (if using):
- Save the file and restart your server
How to Use sFarmer
Getting Started
-
Purchasing a Farmer:
- In-game, use the command:
/farmer buy
- This costs the amount specified in config.yml (default: 15000)
- The farmer NPC will spawn at your current location
- In-game, use the command:
-
Accessing Your Farmer:
- Approach your farmer and right-click on them
- This opens the main farmer menu
-
Managing Your Farmer:
- The main menu provides options for:
- Viewing collected resources
- Managing team members
- Adjusting automation settings
- Upgrading storage capacity
- Selling collected resources
- The main menu provides options for:
Main Commands
Command | Description | Permission | |
---|---|---|---|
/farmer buy | Purchase a farmer for your land/island | No Permission | |
/farmer menu | Open the farmer management menu | sfarmer.command.menu | No Permission |
/farmer teleport | Teleport the farmer to your current location | sfarmer.changeskin | |
/farmer sellall | Sell all collected resources for money | sfarmer.command.sellall | |
/farmer return | Returns the farmer and gives back original price | sfarmer.returnfarmer | |
/farmer skin <skin name> | Changes NPC skin | sfarmer.changeskin |
Admin Commands
Command | Description | Permission |
---|---|---|
/sfarmer | Sends admin help message | sfarmer.command.admin |
/sfarmer reload | Reload the plugin configuration | sfarmer.command.reload |
/sfarmer save | Saves everything to database and refreshes permission caches | sfarmer.command.save |
/sfarmer bypass | Toggle admin bypass mode | sfarmer.command.bypass |
/sfarmer uuidof <player> | Sends UUID of given player’s farmer | sfarmer.command.uuidof |
/sfarmer delete <player> | Delete given player’s farmer | sfarmer.command.delete |
/sfarmer deleteall <player> | Delete given player’s every farmer | sfarmer.command.delete |
/sfarmer givefarmer <player> | Gives given player a farmer | sfarmer.command.givefarmer |
/sfarmer giveproductupgrader <player> <product> <level> <amount> | Gives an item that upgrades given product’s level | sfarmer.command.setproductlevel |
/sfarmer giveegg <player> <amount> | Gives given player a farmer egg, gives a farmer upon right click | sfarmer.command.giveegg |
Automation Features
Auto-Harvesting
Your farmer can automatically harvest fully grown crops including:- Wheat, Carrots, Potatoes
- Pumpkins, Cactus, Sugar Cane
- And other configurable crops
- Open your farmer menu
- Navigate to “Settings”
- Enable “Automatic Harvest”
Auto-Killing
Your farmer can automatically kill farm animals for resources:- Open your farmer menu
- Navigate to “Settings”
- Enable “Automatic Kill”
- Configure which animals to target in the menu
Storage and Economy
Storage System
- Each material has its own storage capacity
- You can upgrade storage capacity for each material
- View stored materials in the farmer menu
Selling Products
- Open your farmer menu
- Click on the “Sell” option for individual materials, or
- Use
/farmer sellall
to sell everything at once - Money will be added to your account based on configured prices
Upgrading Storage
- Open your farmer menu
- Click on a material you want to upgrade
- Purchase storage upgrades using server currency
- Higher levels provide more storage capacity
Team Management
You can add team members to help manage your farmer:- Open your farmer menu
- Navigate to “Members”
- Click “Add Member” and enter a player name
- Assign appropriate permissions
Ranks and Permissions
sFarmer has three default ranks with increasing permissions:- Member: Can sell products, collect items, toggle glowing
- Leader: All Member permissions plus ability to move the farmer
- Owner: Full control including managing team members
- Open the farmer menu
- Navigate to “Members”
- Click on the member
- Use promotion/demotion options
Customization Options
Farmer Appearance
You can customize your farmer’s appearance:- Open your farmer menu
- Navigate to “Settings”
- Options include:
- Toggle glowing effect
- Change glowing color
- Customize name display
- Change skin
Material Prices
Admins can configure the selling prices for all materials:- Open
collected-materials.yml
- Adjust the
unit-price
for any material - Save and reload the plugin
Menu System and Navigation
sFarmer uses an intuitive GUI system to make managing your farmers easy and enjoyable. Here’s a breakdown of the main menus you’ll encounter:Main Farmer Menu
The central hub for interacting with your farmer. From here you can:- View all collected resources and their quantities
- Access the management panel
- Move your farmer to your current location
- Sell all collected resources at once
- View farmer logs
- Configure glowing settings
- Toggle automatic item collection
- Current stock and maximum capacity
- Unit price for selling
- Fullness percentage
- Production rate statistics (per minute/hour/day)
- Options to collect, sell, or upgrade storage
Management Panel
The management panel gives you access to:-
Members Management
- Add new team members
- View all current team members
- Promote/demote members
- Change member permissions
- Remove members
-
Farmer Settings
- Toggle auto-harvesting of crops
- Toggle auto-planting of seeds
- Toggle auto-killing of farm animals
-
Permissions System
- Configure which ranks can access specific features
- Customize permission levels for each team rank
Activity Logs
The logs menu tracks all important actions related to your farmer:- Resource collection events (who collected what and when)
- Sales records (who sold what, how much, and earnings)
- Member management activities (adding, promoting, demoting members)
Appearance Customization
The glowing settings menu allows you to:- Toggle the farmer’s glowing effect on/off
- Choose from 16 different glowing colors to customize your farmer’s appearance
- Change colors with a cooldown period (configurable in settings)
Advanced Features
Permission System
sFarmer has a sophisticated permission system that allows fine control over who can do what with your farmer:-
Available Permissions:
- Access Management Panel - Control who can access the admin functions
- Sell Products - Allow selling collected resources
- Collect Products - Allow collecting items from storage
- Toggle Glowing - Control glowing effect on/off
- Change Glowing Color - Customize appearance
- Move Farmer Location - Relocate the farmer
- View Farmer Logs - Access to activity history
-
Default Ranks:
- Owner - Full control of the farmer (automatically assigned to creator)
- Leader - Advanced permissions including moving the farmer
- Member - Basic permissions for daily operations
-
Permission Management:
- Rank requirements can be adjusted through the permissions menu
- Left-click raises permission requirements
- Right-click lowers permission requirements
Storage Upgrade System
Each material collected by the farmer has its own independent storage system:-
Upgrading Process:
- View material details in the main menu
- Press ‘Q’ or click the upgrade option
- Purchase upgrades using server currency
- Each level increases storage capacity
-
Upgrade Tiers:
- Multiple upgrade levels available (up to level 12 by default)
- Each level provides increased capacity
- Higher levels cost more to purchase
- Maximum capacity at top level is 120,000 items (configurable)
Automation Modules
Your farmer has three main automation features that can be toggled independently:-
Production Module
- Calculates Farmer’s earnings for each product.
-
Auto-Harvest Module:
- Automatically harvests mature crops in your claimed land
- Configurable for specific crop types
- Collects the harvested items into storage
-
Auto-Kill Module:
- Automatically kills specified farm animals
- Collects drops into storage
- Option to only target spawner-spawned mobs
Economy Integration
Selling Resources
The selling system is designed to be intuitive with multiple options:-
Bulk Selling:
- Use
/farmer sellall
command or click the “Sell Farmer’s Warehouse” button - Instantly sells all collected resources
- Subject to cooldown (configurable in settings)
- 25% tax is applied to all sales (configurable)
- Use
-
Individual Material Selling:
- Shift+Left-Click on a material in the main menu to sell all of that type
- Earnings are based on configured unit prices
- Prices can be customized for each material
-
Sales Log:
- All sales are recorded in the logs system
- Records seller name, material type, quantity, and earnings
Troubleshooting
Common Issues and Solutions
Problem | Solution |
---|---|
Farmer not appearing | Check if the interaction hook plugin is installed and working |
Can’t purchase farmer | Verify you have enough money and are in a claimed area |
Automation not working | Ensure the feature is enabled in settings and farmer has permission to access the area |
Can’t sell resources | Check economy plugin configuration and ensure integration is working |
Team members can’t access | Verify they have the correct rank and permissions |
Debug Tips
If you encounter issues:- Check the server console for error messages
- Ensure all dependent plugins are up-to-date
- Verify permissions are correctly set up
- Try reloading the plugin with
/sfarmer reload
Support and Contact
For additional assistance with sFarmer configuration:- Join our Discord server
- Email us at [email protected]
- Visit the UXPLIMA website for more resources