Auto-Replants crops and saplings including sugar canes and cactuses/bamboos.
You can allow only certain tools.
You can determine, whether the crop will be replanted only if it's fully grown or not.
Due to simulation of player placing, all protection systems are supported.
You can bypass protection systems (in config file)
Most options are customizable per-group, so you can have different settings for different players.
Translatable messages.
Put ForestPlant.jar into your plugins folder
Restart server
Edit config files in plugins/ForestPlant directory (see Configuration below)
Restart server OR reload plugin using /fplant reload all command
Here are default configuration files.
Code (YAML):
# It loads messages from "messages_<lang>.yml' file. You can copy the english file and rename it, # or you can just translate the english file and let this be. lang: en
# Whether the features shall be enabled by default. If true, # players won't need to execute /fplant to enable the features. # This DOES NOT override per-group settings below. If player has no # permission, he won't be able to use the features even if this is set to true. enabledByDefault: true
# How many seconds after players drops sapling it shall try to plant playerSaplingDropDelay: 1
# Only live saplings will be replanted when fallen from tree. # Chance in percent of spawning "live sapling" after single leaf decays. # Live saplings will be replanted if they hit the ground in amount of time (below) liveSaplingDropChance: 5.0
# For how many seconds shall the plugin check if the live sapling is on ground # Be careful, big numbers can affect server performance. Recommended is 20s liveSaplingDropCheckTime: 20
# If no player is in this radius, it won't trigger the live sapling replant liveSaplingCheckDistance: 15
# Configurable groups. You can copy the whole section and rename the group to create # a new one. BE CAREFUL! DO NOT REMOVE DEFAULT GROUP! groups: # Default group - it is used when no other group is set default: # Whether this group can use features of this plugin canUse: true
# Whether saplings dropped by player shall be replanted replantPlayerSaplingDrops: true
# Where saplings replant shall be disabled for this group disabledSaplingsWorld: -
"bad_world" # Where crops replant shall be disabled for this group disabledCropsWorld: -
"bad_world" # If set to true, protection system etc. will be bypassed bypassSaplingsPermissions: false
# List of saplings which will be replanted. Put 'NONE' if you don't want any saplings: -
"NONE" # Whether only fully grown crops will be replanted fullyGrownCropsOnly: true
# List of allowed tools while breaking crops. If player uses another tool, it won't trigger replant. # Use 'ALL' for every tool including hand. Use 'NONE' to disable crops replanting for this group. # If you want to include hand, you can use 'AIR'. allowedCropsTools: -
"DIAMOND_HOE" # List of crops which will be replanted. Put 'NONE' if you don't want any crops: -
"WHEAT" -
"NETHER_WART" -
"CARROTS" -
"BEETROOTS" -
"POTATOES" vip:
canUse: true
replantPlayerSaplingDrops: true
disabledSaplingsWorld: -
"bad_world" disabledCropsWorld: -
"bad_world" bypassSaplingsPermissions: false
saplings: -
"OAK_SAPLING" -
"DARK_OAK_SAPLING" -
"SPRUCE_SAPLING" -
"BIRCH_SAPLING" -
"JUNGLE_SAPLING" -
"ACACIA_SAPLING" fullyGrownCropsOnly: true
allowedCropsTools: -
"ALL" crops: -
"WHEAT" -
"NETHER_WART" -
"CARROTS" -
"BEETROOTS" -
"POTATOES" -
"BAMBOO" -
"CACTUS" -
"SUGAR_CANE" -
"CHORUS_PLANT"
Code (YAML):
noPermissions: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &cYou don't have enough permissions!" reload: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &7Plugin was successfully reloaded!" reloadMessages: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &7Successfully reloaded messages file!" reloadError: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &cAn error occurred during reload! Check console!" enabled: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &7Auto-Replant is now &aenabled&7!" disabled: "{#228B22>}&lForestPlant{#30ff21<} &8&l>> &7Auto-Replant is now &cdisabled&7!"
This plugin is very light-weight, so only two commands are available.
/fplant Toggles functionality for the player
/fplant reload [msg|all] Reloads the messages file / whole plugin
There are also only two permissions:
forestplant.reload Allows usage of /fplant reload
forestplant.group.<group_name> Assigns the group (see config above) to the player.
Note! Default group is automatically granted by the plugin.
Like everyone else, we have some conditions in order to use our plugin.
You won't decompile the code without our permission
You won't redistribute or upload the plugin or it's files without our permission
You won't provide access to download the plugin to others
You can use the plugin on all servers you have
If you have any questions / suggestions / need support, contact us on Discord!
Please, DO NOT report bugs or ask for support in review section! Discord support is the fastest way and we'll be glad to help you!