- Add the new feature, allow player can heal when they eat!
- Add the command "/ft check": this command will be check all config.yml file
- Add permission!
(!) Config.yml hasn't changed, just add the new line:
Coppy this, this is default config.yml file:
Code (Text):
#Prefix-plugin:
prefix-plugin: "&e[&dFoodTeleport&e]"
#Command not exist:
command-not-exist: "&4The command is not exist. Please use &e/ft help&4 to see all"
#If the player can teleport send this message for that player:
teleport-success: "&aTeleport success!"
#Safe mode is turn off, and the player teleport to the block which move above the block air (void):
no-safe-mode-void-block: "&4Safe mode is turn off in this block! Becarefull you will be fell in the void"
#If the player can't teleport because the safe-mode is true, send them a message:
safe-teleport: "&eStop teleport! Safe teleport is true"
#Move up 1 block because you are teleport is not safe, you will be stuck but luckily is not damage:
safe-teleport-move1-block: "&eSafe teleport! You have moved up 1 block to avoid stuck"
#Reload plugin:
reload-plugin: "&aReload plugin!"
#If something is not player execute maybe a console or commandblock, send this message for sender:
not-player: "&4You're not a player"
#If the config.yml file is broken, send this command in console:
broken-config-message: "&4The block is not edit successfully, please check and fix it!"
#This is a part about edit block move.
#This is sytanx, you can follow it to edit yourself about food teleport
#
#List-block:
# <name_food>: (<-- This line about the name food can teleport, the name food must be UPCASE, remember some food are only support your version, but it can't support lower version)
# move:
# x: <integer_number> (<-- The number maybe positive or negative number, if postive number will be add else negative number will be abstract)
# y: <integer_number> (<-- The number maybe positive or negative number, if postive number will be add else negative number will be abstract)
# z: <integer_number> (<-- The number maybe positive or negative number, if postive number will be add else negative number will be abstract)
# option:
# safe-mode: <true/false> (<-- Safe teleport when you fell a void or stuck in the block, if this line don't have, default will be false)
# health: <value> (<-- Health's player maybe add or abstract is depend on the value, the value can be positive or negative number!)
#If you don't know about x, y, z you can search on google or say some your friend's to know about this.
List-block:
COOKED_BEEF:
move:
x: 5
y: 0
z: 0
option:
safe-mode: false
health: 3
(!) Add permission in this plugin!
Code (Text):
foodteleport.command.admin: Access all the command
foodteleport.player.teleport: Allow teleport when they eat
foodteleport.player.health: Heal player when they eat.