Harvester plugin allow your players to have a block to automatically harvest pumpkin and melons in a chunk (limited to 1/chunk) Crops are stock in the block and can be sell thanks to a sell button. You can set price in the config file
Commands:
Code (Text):
/harvest give %player% - Give harvester to player
/harvest reload - Reload the config.yml and lang.yml files
/harvest help - View help message
Config file:
Code (Text):
########################
### Harvester Plugin ###
### By Numbtus ###
########################
# Need vault plugin !
# Sell price
sellprice:
melon: 9
pumpkin: 10
# Max storage of the harvester (for any crops)
maxstorage: 9999
Code (Text):
# Here you can modify a lot of messages of the plugin
# Prefix before all messages of the plugin
# Please add a space at the end of the prefix for a better visibility
prefix: "&7[&bHarvester&7] "
# Message send when player open a harvester in a different chunk
diffChunk: "&c&lYou need to be in the same chunk of the harvester to open it."
# Message send when there is already a harvester in the chunk
alreadyHarvester: "&cThere is already a harvester in this chunk."
noPermission: "&cYou don't have permission to do that!"
playerError: "&cJPlayer not found!"
noInt: "&cQuantity isn't an integer !"
# Variables: %playerSend%
successfullyGiveMessage: "&aYou have give a harvester to &2%playerSend%"
receiveMessage: "&aYou have received &e1 &bHarvester"
Traduction:
Code (Text):
# Here you can modify a lot of messages of the plugin
# Prefix before all messages of the plugin
# Please add a space at the end of the prefix for a better visibility
prefix: "&7[&bCollecteur&7] "
# Message send when player open a harvester in a different chunk
diffChunk: "&c&lVous devez etres dans le meme chunk que le collecteur pour pouvoir l'ouvrir."
# Message send when there is already a harvester in the chunk
alreadyHarvester: "&cIl y'a deja un collecteur dans ce chunk !"
noPermission: "&cVous n'avez pas la permission!"
playerError: "&cJoueur introuvable!"
noInt: "&cLa quantité fournis n'est pas un entier!"
# Variables: %playerSend%
successfullyGiveMessage: "&aVous avez donné 1 collecteur a &2%playerSend%"
receiveMessage: "&aVous avez recus &e1 &bcollecteur"
FOR DEVELOPERS:
Code (Text):
HarvestSellEvent - Event called when a player sell with the harvester sell button
getSeller() (Player) ---> Return the player who has sell
getMoneyEarn() (int) ---> Return money earn by player
getQuantitySell() (int) ---> Return quantity sell by player
getType() (Material) ---> Return what the payer had sell