Safe Fly | 1.13 - 1.16.4 1.5

Choose to disable PvP, PvE, Mob Targeting, Items and more when a player is flying

  1. chocolf
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Overview
    When a player types /safefly they are put into a special flying mode where they are not able to do certain things. Everything is optional meaning you can pick and choose what you want to disable in the config.

    Everything you can disable when a player is in Safe Fly mode:
    • PvP
    • PvE
    • Mob Targeting
    • Potions
    • Block Breaking
    • Block Placing
    • Hunger loss
    • Health loss
    • Items that you can specify in the config
    SafeFly can also be disabled on world change and teleportation so players can't abuse it in places you dont want them to fly in.
    Every message sent is also customizable.

    Commands
    • /SafeFly [Player] [On/Off] - Toggles SafeFly mode for the player. Entering a player name and on/off is optional
    • /SafeFlyTimer [Time in Seconds] [Player] - Toggles SafeFly mode for the player for a certain amount of time. Entering a player name is optional
    • /SafeFlySpeed [Speed] [Player] - Changes the players fly speed. Entering a player name is optional
    • /SafeFlyReload - reloads the SafeFly Config
    Aliases
    • /sfly
    • /sflytimer
    • /sflyspeed
    • /sflyreload
    Permissions
    • SafeFly.use - gives player permission to use /SafeFly
    • SafeFly.use.others - gives player permission to use /SafeFly [Player]
    • SafeFly.timer - Gives player permission to use /SafeFlyTimer [Time]
    • SafeFly.timer.others - Gives player permission to use /SafeFlyTimer [Time] [Player]
    • SafeFly.speed - gives player permission to use /SafeFlySpeed [Speed]
    • SafeFly.speed.others - gives player permission to use /SafeFlySpeed [Speed] [Player]
    • SafeFly.reload - gives player permission to use /SfReload

    Config
    Code (Text):

    # Whether flight is enabled when someone is in SafeFly mode (Can also be used as a pacifist mode)
    Flight: true

    # Whether the player in SafeFly mode can be affected by Potion effects
    DisablePotionEffects: true

    # Whether the player in SafeFly mode can attack other players or get attacked by other players
    DisablePvP: true

    # Whether the player in SafeFly mode can attack Mobs
    DisablePvE: true

    # Whether the player in SafeFly mode can be targeted by Mobs
    DisableMobTargeting: true

    # Whether the player in SafeFly mode can break blocks
    DisableBlockBreaking: false

    # Whether the player in SafeFly mode can place blocks
    DisableBlockPlacing: false

    # Whether the player in SafeFly mode should lose hunger
    LoseHunger: false

    # Whether the player in SafeFly mode should lose health
    LoseHealth: false

    # Items players won't be able to use when in SafeFly Mode
    DisabledItems:
      - BOW
      - CROSSBOW
      - LINGERING_POTION
      - SPLASH_POTION
      - POTION
      - TRIDENT
      - SNOWBALL
      - EGG
      - LAVA_BUCKET
      - FLINT_AND_STEEL
     

    # Whether SafeFly mode is disabled when a player changes worlds
    DisableOnWorldChange: true

    # Whether SafeFly mode is disabled when a player teleports
    DisableOnTeleport: true




    ############################ Messages ############################

    # Sent to a player when they enable SafeFly
    SafeFlyEnabledMessage: '&aSafeFly has been Enabled.'

    # Sent to a player when they disable SafeFly
    SafeFlyDisabledMessage: '&cSafeFly has been Disabled.'

    # Sent to a player when they are in SafeFly mode and try to attack another player
    CantDamagePlayerMessage: '&cYou can not damage Players whilst in SafeFly Mode.'

    # Sent to a player when they are not in SafeFly mode but attack someone that is in SafeFly mode.
    CantDamagePlayerMessage2: '&cYou can not damage Players that are in SafeFly Mode.'

    # Sent to a a player when they are in SafeFly mode and try to attack an entity
    CantDamageEntityMessage: '&cYou can not damage Entities whilst in SafeFly Mode.'

    # Sent to a player when they are in SafeFly mode and try to break a block
    CantBreakBlockMessage: '&cYou can not break blocks whilst in SafeFly Mode.'

    # Sent to a player when they are in SafeFly mode and try to place a block
    CantPlaceBlockMessage: '&cYou can not place blocks whilst in SafeFly Mode.'

    # Sent to a player when they try to use an item that they are not allowed to use in SafeFly mode.
    CantUseItemMessage: '&cYou can not use this item whilst in SafeFly Mode.'

    # Sent to a player when they try to use /safefly [Player] but the player isnt found
    PlayerNotFoundMessage: '&cPlayer not found.'

    # Sent to a player when they don't have permission to use /safefly and /safeflyspeed
    NoPermissionMessage: '&cYou do not have permission to use this command!'

    # Sent to a player when they dont have permission to use /safefly [Player] and /safeflyspeed [Player]
    NoPermissionMessage2: '&cYou do not have permission to use this command on other players!'

    # Sent to a player when the change their fly speed
    ChangeFlyingSpeedMessage: '&aYour fly speed was set to {speed}'

    # Sent to a player when they type a number bigger than 10 in /safeflyspeed [speed]
    SpeedTooHighMessage: '&cPlease enter a number between 1 and 10 to set your fly speed'
     

Recent Updates

  1. Safe Fly 1.5
  2. SafeFly 1.4
  3. Safe Fly 1.3

Recent Reviews

  1. DazzleFun
    DazzleFun
    5/5,
    Version: 1.3
    Great, all the functionality works (there are 55 plugins on board, no errors).
    Checked for "paper-1.16.4-325".