FlyWithFood icon

FlyWithFood -----

Players can cost some points to fly,such as saturation, exp level and so on



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:
  • Players can cost points to fly just like creative mode
  • Players can be grouped to apply different settings
  • You can freely set the information that will be sent
  • You can freely set the flight of players
  • You can set the function to only work on some dimensions
  • You can set some dimensions to fly without restriction
  • You can fully customize the FWF help menu specific to your server
  • Support Sponge Servers
  • And so on...
Commands:
  • You can use /fly or /fwf or /flywithfood as the base command
  • /fly on [player] - Enable flying (on yourself or other player)
  • /fly off [player] - Disable flying (on yourself or other player)
  • /fly toggle [player] - Toggle flying (for yourself or other player)
  • /fly reload - Reload config
Permissions:
  • fly.fly - Allow to use /fly <on|off|toggle>
  • fly.other - Allow to use /fly <on|off|toggle> [player]
  • fly.nocost - Allow to fly without cost points
  • fly.admin - Allow to use /fly reload, and show permissions information when reading plugin help messages
  • fly.groups.%GroupName% - Means the player is in this group
Pictures:
AutoDisable.png
CanNotEnable.png
Enabled.png
CommandHelp.png

Cost Modes Name:

  • Money
  • ExpPoint
  • ExpLevel
  • Food

Configs:

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!!!
Resource Information
Author:
----------
Total Downloads: 1,365
First Release: Feb 1, 2022
Last Update: Nov 7, 2022
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings