HomeJavaModsFlyWithFood
This plugin allows players to fly like in creative mode with command, by cost some points(saturation, exp level, money and so on)

Codes:
https://github.com/0XPYEX0/FlyWithFood
https://gitee.com/XPYEX/FlyWithFood

Features:
Commands:
Permissions:
Pictures:
AutoDisable.png
CanNotEnable.png
Enabled.png
CommandHelp.png

Cost Modes Name:


Configs:

Spoiler
Code (Text):

{
       "NoCostWhitelist":{  //Will not consume any points to fly in the following dimensions, please pay attention to the format, pay attention to the comma
            "Worlds":[
                 "world",
                 "world_nether",
                 "world_the_end",
                 "spawnworld"
            ],
            "Enable":false  //Enable this function or not
       },
       "Language":"English",  //The language, do not need to change it
       "Groups":{  //Groups. For example: If player has permission fly.groups.Group1, the player is in this group. The permission change with name of the group.
            "Group1":{  //A group
                 "CostMode":"Food",  //What type of point does the player cost
                 "Cost":2,  //How many points cost once
                 "Disable":6  //How many points are left to close flying
            },
            "Group2":{  //Another group
                 "CostMode":"ExpLevel",
                 "Cost":1,
                 "Disable":4
            },
            "Players_3":{  //A group again
                 "CostMode":"ExpPoint",
                 "Cost":1,
                 "Disable":4
            }  //Following the format above, you can create an unlimited number of groups. But be careful about the format, especially the commas in the text
       },
       "ConfigVersion":5,  //The version of config file. DO NOT CHANGE IT.
       "Languages":{  //Custom Messages
            "NoPermission":"&cYou do not have permission",
            "Modes":{  //For different types of salutations, the %mode% variable in the information below will be replaced with the salutation here
                 "ExpPoint":"EXP Points",
                 "ExpLevel":"EXP Level",
                 "Food":"Saturation",
                 "Money":"Money"  //You must install Vault to use this
            },
            "HelpMsgList":{  //The help messages when player executed help command. Plugin will send messages follow : Start→Fly→Other→Admin→End . Supports sending countless pieces of information, the format can refer to the Admin section, pay attention to the comma. It will be sent in order
                 "Start":[
                       "&eYou can use &a/fly &e, &a/fwf &eor &a/flywithfood &eas base command",
                       "&9Valid commands: "
                 ],
                 "Fly":[
                       "&a%command% &b<on|off|toggle> &f- &eTurn your filght mode"
                 ],
                 "Other":[
                       "&a%command% &b<on|off|toggle> <Online Player> &f- &eTurn flight mode of other player"
                 ],
                 "Admin":[
                       "&a%command% &breload &f- &eReload config",
                       "&dPermissions: ",
                       "&afly.fly &f- &eAllow to use &f/fly <on|off|toggle>",
                       "&afly.nocost &f- &eAllow to fly without cost points",
                       "&afly.other &f- &eAllow to use &f/fly <on|off|toggle> [player]",
                       "&afly.admin &f- &eAllow to use &f/fly reload&e, and see this help menu",
                       "&afly.groups.&2%GroupName% &f- &ePlayer group permissions.For example, if player has permission 'fly.groups.Group1', the player will apply the settings of group Group1"
                 ],
                 "End":[
                       //"First end msg",
                       //"Second end msg",
                       //"Last end msg"
                 ]
            },
            "PlayerOnly":"&cThis command can only executed by a player",  //When sender is not a player, and the command only support for players, the sender will get this.
            "PlayerNotOnline":"&cThe player is not online",  //When the target of the command is not online
            "RawMsg":{  //Normal messages. If the message is empty, it will not be sent
                 "HasEffect":"&9You can not enable fly because you have Saturation Potion Effect",
                 "Enable":true,  //Enable this function or not
                 "CannotEnable":"&b[FlyWithFood]&cYour %mode% is not enough, you can not enable your flight!",
                 "Off":"&b[FlyWithFood]&aDisable flight successfully!",
                 "On":"&b[FlyWithFood]&aEnable filght successfully! Be careful about your %mode%",
                 "CannotFly":"&b[FlyWithFood]&cYour %mode% is not enough, your flight is disabled automatically"
            },
            "ActionMsg":{  //Action messages. If the message is empty, it will not be sent
                 "HasEffect":"&9You can not enable fly because you have Saturation Potion Effect",
                 "Enable":false,  //Enable this function or not
                 "CannotEnable":"&cYour %mode%is not enough, you can not enable your flight!",
                 "Off":"&aDisable flight successfully!",
                 "On":"&aEnable filght successfully! Be careful about your %mode%",
                 "CannotFly":"&cYour %mode% is not enough, your flight is disabled automatically"
            },
            "TitleMsg":{  //Title messages. You can use \\n change to the second line. If the message is empty, it will not be sent.
                 "HasEffect":"&9You can not enable fly because you have Saturation Potion Effect",
                 "Enable":true,  //Enable this function or not
                 "CannotEnable":"&b[FlyWithFood]\\n&cYour %mode% is not enough, you can not enable your flight!",
                 "Off":"&b[FlyWithFood]\\n&aDisable flight successfully!",
                 "On":"&b[FlyWithFood]\\n&aEnable filght successfully! Be careful about your %mode%",
                 "CannotFly":"&b[FlyWithFood]\\n&cYour %mode% is not enough, your flight is disabled automatically"
            },
            "DisableInThisWorld":"&cYou can not use this command in this world"
       },
       "CheckSeconds":1,  //How often to deduct points
       "CostMode":"Food",  //This type is applied when the player does not belong to any of the above groups
       "Cost":4,  //When the player does not belong to any of the above groups, the set points will be deducted
       "Disable":6,  //When the player does not belong to any of the above groups, after the points are deducted, if the points are not enough, the flight will be disabled
       "FunctionsWhitelist":{  //Functions Whitelist. It will only allow functions are enabled in these dimensions below
            "Worlds":[
                 "world",
                 "world_nether",
                 "world_the_end",
                 "spawnworld"
            ],
            "Enable":false  //Enable this function or not
       }
}
 

Usage:
Bukkit: Download the file to plugins folder, the configuration file path is plugins/FlyWithFood/config.json
Sponge
: Download the file to mods folder, the configuration file path is config/FlyWithFood/config.json

Feedback&Suggestions:
https://github.com/0XPYEX0/FlyWithFood/issues

If you like this plugin, please give me a review!!!
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

FlyWithFood is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 1,479 times (via Spigot). Download it and open it directly in the game.

Explore more