Harvester | Harvest pumpkin and melon automatically icon

Harvester | Harvest pumpkin and melon automatically -----

A block to harvest pumpkin and melon automatically



A better description is coming


Dependency: Vault

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."

# Harvester interface:

sellButton: "&a&lSell"
name: "&b&lHarvester"
pumpkinName: "&6&lPumpkin"
melonName: "&c&lMelons"
quantity: "&7Quantity: &a&l"
# Variables: %price% / %quantity% / %crops%
sellMessage: "&7You have sell &a%quantity% &6%crops% &7for &a$%price%"


# other

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 !"

# Harvester interface:

sellButton: "&a&lVendre"
name: "&b&lCollecteur"
pumpkinName: "&6&lCitrouilles"
melonName: "&c&lMelons"
quantity: "&7Quantité: &a&l"
# Variables: %price% / %quantity% / %crops%
sellMessage: "&7Vous avez vendu &a%quantity% &6%crops% &7pour &a%price%$"


# other

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


 
Resource Information
Author:
----------
Total Downloads: 62
First Release: Feb 16, 2023
Last Update: Feb 16, 2023
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings