Skip to content

Configs

0XPYEX0 edited this page Feb 1, 2022 · 5 revisions

The statement after "//" is a comment. You can copy it to the config file

{
       "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 %mode%",
                       "&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"
                 ],
                 "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 carefull 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 carefull 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
                 "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 carefull 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 closed
       "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
       }
}
Clone this wiki locally