JustFly - Yet another flight plugin 1.3.1

Another flight plugin, very original.

  1. JovannMC
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Source Code:
    https://github.com/JovannMC/JustFly
    Languages Supported:
    Configurable
    Yeah, another flight plugin. If you already have a fly command you can just hit that back button. But if you need a quick and simple flight plugin then you can get mine or another one.

    About:
    As the name and description suggests, this is a plugin which allows you to fly in survival mode. Very original
    This features translatable messages and a short config.

    Commands:
    /fly [username] [c/check]
    Toggles the ability to fly for yourself, someone else, or to check if someone else can fly.
    /justfly <check/reload>
    Allows you to manage the plugin in-game.

    Permissions:
    JustFly.fly
    Allows you to use /fly
    JustFly.fly.others.enableFly
    Allows you to enable another person's flight
    JustFly.fly.others.disableFly
    Allows you to disable another person's flight
    JustFly.use.check
    Allows you to use /justfly check
    JustFly.use.reload
    Allows you to use /justfly reload

    FAQ:
    How do I contact you?
    You can contact me via my discord server, private message me in the spigot forums, or in the discussion page.

    Will you add [this]?

    Maybe. I always take suggestions into consideration and will add it if I feel it is good enough or a feature that will be used quite often.

    I found a bug!
    Thank you for finding a bug I overlooked! Head to the discord server or the discussion page and report it there. Please add basic information like the plugin version, your server version, error(s) if any, etc.

    This plugin sucks! / This plugin is so buggy!
    Sorry to hear that, if you have any critique about my plugin, please join my discord server or message me in the discussion page so we can hopefully fix your issue. No plugin is perfect, certainly not mine either.

    How can I code plugins like you do?
    I've started with YouTube tutorial series such as TheSourceCode but then bought a Udemy course by @stephenking which helped me a lot into learning and creating my own Spigot plugin. Also, Google! Though this plugin is simple, everyone's gotta start somewhere!

    Config:
    Code (Text):
    # Thanks for downloading my plugin.
    # You can use color codes for any of the messages.

    # DO NOT CHANGE
    ConfigVersion: 1

    # If the config version is invalid, should the plugin automatically regenerate the config without warning or should the plugin warn the console and not do anything?
    # Valid options are: DELETE, MESSAGE
    # If this option is invalid, it will choose the MESSAGE action.
    ConfigVersionAction: MESSAGE

    # Do you want to check for updates when the server starts?
    # Disabling this will not disable /justfly check, which is a way to check for updates manually.
    UpdateChecker: true

    # What text will be said before the plugin message.
    # (Prefix) (message)
    Prefix: "&b[JustFly]"
     
    # There are plans to move this section to its own file in the future, for now it will stay here.
    Messages:
     
      # What message should the player see when they enable their flight?
      FlightEnabledMessage: "&6Your flight has been &eenabled"

      # What message should the player see when they disable their flight?
      FlightDisabledMessage: "&6Your flight has been &edisabled"

      # What message should the player see when they enable somebody else's flight?
      SetOtherFlightOnMessage: "&e%player%'s &6flight has been &eenabled"

      # What message should the player see when they disable somebody else's flight?
      SetOtherFlightOffMessage: "&e%player%'s &6flight has been &edisabled"

      # What message should the target see when an admin enables their flight?
      FlightOnByAdminMessage: "&6Your flight has been &eenabled &6by an &eadmin"

      # What message should the target see when an admin disables their flight?
      FlightOffByAdminMessage: "&6Your flight has been &edisabled &6by an &eadmin"
     
      # What message should the player see when they check somebody else's flight and it returns true (can fly)?
      FlightCheckCanFlyMessage: "&e%player% &6currently &ecan fly"
     
      # What message should the player see when they check somebody else's flight and it returns false (can not fly)?
      FlightCheckCanNotFlyMessage: "&e%player% &6currently &ecan not fly"

      # What message should the player see when their specified player is not online or doesn't exist?
      PlayerNotValidMessage: "&4That player is not online or doesn't exist"

      # What message should the player see when they don't have permission to do the commands in this plugin?
      NoPermissionMessage: "&4No permission"

      # What message should the player see when they use a command wrong?
      InvalidUsageMessage: "&4Invalid Usage! %usage%"

      # What should the person see when they try to use a command that isn't supposed to be used on the console or a command block?
      CommandInConsoleMessage: "&4You can not use this command via console or a command block"
     

    Developer API:

    PlayerFlyEvent: This event is called when somebody starts flying.
    getPlayer() returns the player object of the player who started flying

    PlayerUnflyEvent: This event is called when somebody stops flying.
    getPlayer() returns the player object of the player who stopped flying

    PlayerFlyAdminEvent: This event is called when somebody starts flying because of an admin.
    getAdmin() returns the player object of the admin who made the player fly
    getTarget() returns the player object of the player who started flying by an admin

    PlayerUnflyEvent: This event is called when somebody stops flying because of an admin.
    getAdmin() returns the player object of the admin who made the player fly
    getTarget() returns the player object of the player who started flying by an admin

    Support:
    To receive support or to report bugs, head to the discord server. Click here to access it.

    bStats:
    This plugin uses bStats, a plugin to collect anonymous information/data for the plugin. This plugin will not, and never able to, collect any personal information with bStats and the performance impact of it is minimal.
    If you still wish to disable bStats, head over to the bStats plugin folder and disable it from the config.
    [​IMG]

    DON'T RELOAD THE SERVER AFTER INSTALLING OR UPDATING, ALWAYS RESTART.