ALB Studio

Island Fly

Let players fly on islands with /is fly, using fly time that staff, shops and crates give, or free fly for everyone.

Docs updated · What changed

On this page

What it is forLink to this section

Island Fly lets players fly on islands with /is fly. Flying makes building big islands much easier, so most servers sell it or give it as a reward. The addon handles that with fly time:

  • Players fly while they have fly time left. Admins, shops and crates give it with one command.
  • Or fly is free: everyone flies, no time needed.
  • The server decides where fly works: only on your own island, also on islands that trust you, or on every island.
  • Fly turns off by itself when a player leaves the island, and they don't take fall damage on the way down.

To install it, put ALBSkyblock-Fly.jar into plugins/ALBSkyblock/addons/ and restart. See Addons.

Fly on an islandLink to this section

  1. Stand on your island.
  2. Type /is fly. Chat says "Fly on." with your time left.
  3. Double-tap jump to fly, like in creative.
  4. Type /is fly again to turn it off.

While fly is on, the action bar above your hotbar shows ✈ Fly » <time left>. To see your time without flying, type /is fly time.

If fly does not turn on, chat tells you why:

MessageWhy
You have no fly time left.You need fly time. See Get fly time.
You can only fly on your own island.Fly does not work where you stand. See Where you can fly.
You can only fly on your island or islands that trust you.The same, when the server lets players fly on islands that trust them.
You can only fly on islands.The same, when the server lets players fly on every island.

Where you can flyLink to this section

Fly only works inside an island's area. Between islands, it is off. The server picks which islands with allowed-on:

allowed-onPlayers can fly on
team (default)Their own island, or the island whose team they are in.
trustedAlso islands that trust them.
anyEvery island, also when visiting. Not on islands that banned them.

Staff with the bypass turned on can fly on every island.

When fly turns offLink to this section

Fly is checked every second. It turns off by itself when:

  • you leave the island, or walk onto an island where you can't fly. Chat says "Fly turned off: you can't fly here."
  • your fly time runs out. Chat says "Your fly time ran out." 10 seconds before that, a title warns you (warn-seconds).

Fall protection: when fly turns off while you are in the air, you take no fall damage until you land (fall-protection).

When you log out with fly on, it comes back on when you log in again, as long as you still have time and fly works where you are (keep-on-rejoin). If it can't come back on, fall protection keeps you safe until you land.

Players in creative or spectator mode can always fly. Island Fly leaves their flight alone.

Get fly timeLink to this section

Fly time is like a battery. Players get it from staff, a shop or a crate, and it goes down while they use fly.

How time goes downLink to this section

The server picks one of three ways with count-mode:

count-modeTime goes down
flying (default)Only while the player is really flying. Standing or walking with fly on costs nothing.
enabledWhile /is fly is on, also when standing or walking.
alwaysAll the time from the moment it is given, also when the player is offline. Like a rank that runs out: 1d of fly time is gone a day later.

Changing count-mode in the editor keeps the time left of every player who is online.

Fly time belongs to the player, not the island. It is saved with ALBCore's player data, so it stays after a restart.

Give fly timeLink to this section

Give Steve 30 minutes of fly time:

  1. Type /is admin fly give Steve 30m.
  2. Chat tells you how much time Steve has now.
  3. If Steve is online, he is told he got 30 minutes and to use /is fly.

The command also works from the console, so a shop or crate plugin can run it when a player buys fly time. Offline players work too: they have the time when they come back.

CommandWhat it does
/is admin fly give <player> <time>Adds time. add works too.
/is admin fly take <player> <time>Takes time away, down to 0. remove works too. If it reaches 0 while they fly, fly turns off.
/is admin fly set <player> <time>Sets the time.
/is admin fly check <player>Shows how much time they have, and whether they fly without time because of the permission.

The player is told when their time changes, if they are online.

Time formatLink to this section

You typeMeans
30s30 seconds
5m5 minutes
1h30m1 hour and 30 minutes
2d2 days
9090 seconds (a plain number is seconds)

Fly without fly timeLink to this section

There are two ways to let players fly with no time at all:

  • For one rank: give the rank albskyblock.fly.unlimited. Those players fly with no time where fly works. Operators have it by default.
  • For everyone: set free-fly: true. Everyone with albskyblock.command.fly flies where fly works. No time needed.

Where fly works (allowed-on) still counts in both cases. The action bar timer is not shown for unlimited fly. Players see ∞ as their time.

CommandsLink to this section

CommandWhat it doesPermission
/is flyTurns fly on or off.albskyblock.command.fly
/is fly onTurns fly on.albskyblock.command.fly
/is fly offTurns fly off.albskyblock.command.fly
/is fly timeShows your fly time left. Also /is fly left and /is fly check.albskyblock.command.fly
/is admin fly give <player> <time>Adds fly time. Also add.albskyblock.admin
/is admin fly take <player> <time>Takes fly time away. Also remove.albskyblock.admin
/is admin fly set <player> <time>Sets the fly time.albskyblock.admin
/is admin fly check <player>Shows a player's fly time.albskyblock.admin

The addon has no island right and no leaderboard board.

PermissionsLink to this section

PermissionDefaultWhat it does
albskyblock.command.flytrueUse /is fly and the fly button. Take it away to stop a group from flying.
albskyblock.fly.unlimitedopFly with no fly time.
albskyblock.adminop/is admin fly.

ConfigurationLink to this section

The file is plugins/ALBSkyblock/addons/fly/config.yml. These are the defaults:

plugins/ALBSkyblock/addons/fly/config.yml
# Island Fly addon. Also editable in game: /is admin editor > Addons > Island Fly.

# When fly time goes down:
#   flying  - only while the player is really flying
#   enabled - while /is fly is on (also when standing or walking)
#   always  - all the time once given, even when offline (like a rank that runs out)
count-mode: flying

# Where /is fly works:
#   team    - their own island or the island they are a member of
#   trusted - also islands that trust them
#   any     - every island (also when visiting)
allowed-on: team

# true  = no fly time needed: everyone with albskyblock.command.fly flies freely where it is allowed.
# false = they need fly time (/is admin fly give) or the albskyblock.fly.unlimited permission.
free-fly: false

# Show the time left on the action bar while fly is on.
actionbar: true

# Warn this many seconds before the fly time runs out (0 = no warning).
warn-seconds: 10

# No fall damage after fly turns off (time ran out, left the island...) until the player lands.
fall-protection: true

# Turn fly on again when a player logs back in with fly on (if it is still allowed there).
keep-on-rejoin: true
OptionDefaultWhat it does
count-modeflyingWhen fly time goes down: flying, enabled or always. See How time goes down.
allowed-onteamWhere fly works: team, trusted or any. See Where you can fly.
free-flyfalsetrue: no fly time needed for anyone.
actionbartrueShow the time left on the action bar while fly is on. With count-mode: flying, only while flying.
warn-seconds10Show a warning this many seconds before the time runs out. 0 = no warning.
fall-protectiontrueNo fall damage after fly turns off, until the player lands.
keep-on-rejointrueTurn fly on again when a player logs in with it on.

After editing the file, run /is admin reload.

In-game editorLink to this section

Open /is admin editor > Addons > Island Fly. Changes apply at once.

ButtonOption
Time counts downcount-mode: click to switch between only while flying, while fly is on, and all the time.
Where fly worksallowed-on: click to switch between own / team island, islands that trust them, and every island.
Free flyfree-fly: click to turn on or off.
Action bar timeractionbar: click to turn on or off.
Warningwarn-seconds: click and type the seconds in chat.
Fall protectionfall-protection: click to turn on or off.
Keep fly on rejoinkeep-on-rejoin: click to turn on or off.
CommandsShows the fly commands.

PlaceholdersLink to this section

PlaceholderReturnsExample
%albskyblock_fly_time%Fly time left, or ∞ for unlimited fly.4m 30s
%albskyblock_fly_seconds%Fly time left in seconds. -1 for unlimited fly.270
%albskyblock_fly_active%Whether island fly is on: yes or no.yes

They are about the player, but they are empty for a player without an island. In island menus the same values are {fly-time}, {fly-seconds} and {fly-active}. See Placeholders.

Add a fly button to a menuLink to this section

Island Fly has no menu of its own. To add a fly switch to any island menu, use the function toggle-fly. It closes the menu and turns fly on or off, like /is fly.

YAML
  fly:
    slot: 22
    item: FEATHER
    name: "&#7DD3FCIsland Fly"
    lore:
      - "&8▪ &7Fly time: &f{fly-time}"
      - "&8▪ &7On: &f{fly-active}"
    actions:
      - "[function] toggle-fly"

Or add it in /is admin editor > Menus. See Menus and messages.

MessagesLink to this section

The fly messages are in plugins/ALBSkyblock/addons/fly/lang.yml, in the sections fly, fly-admin and fly-editor. Change them in /is admin editor > Messages. See Messages.

A few are worth knowing:

KeyDefaultShows
fly.actionbar[actionbar] &#7DD3FC✈ Fly &8» &f{time}The timer above the hotbar, every second.
fly.actionbar-unlimited[off] ...The timer for unlimited fly. Off by default: change [off] to [actionbar] to show it.
fly.warning[title] &f{seconds}s &7of fly time leftThe warning before the time runs out.
fly.received{prefix}&#4ADE80✔ &7+{amount} fly time! ...What a player sees when they get fly time.

Type a class, method, config key or topic. Use the arrow keys and Enter to open a result.