FlightGem
Flight Gem Plugin
This plugin provides a single item which grants its holder the ability to fly. The player will be able to fly while holding the item in his hand. When the item is not in use it is automatically returned to a designated dispenser for other players to use.
Behaviors
When not in use the item is returned to its dispenser. The item may not be stored in containers, is lost upon logout, and may not be crafted. When the item is unloaded or destroyed it will respawn.
When a player takes damage while holding the item in his hand the item will be dropped.
Commands
-
/findgem
- Reports the current location of the flight gem and points a player's compass to that location
-
/setflightgemrespawn
- Changes the respawn dispenser to the one currently pointed to by the player
-
/flightgem
- Creates a new flight item. Typically this command is unnecessary.
Permissions
-
flightgem.bypass
- Allows the player to bypass the inventory transfer restrictions of the flight item.
-
flightgem.creategem
- Allows the player to use the /flightgem command
-
flightgem.setflightrespawn
- Allows the player to use the /setflightgemrespawn command
-
flightgem.findgem
- Allows the player to use the /findgem command
Configuration
-
flightgem.respawn.message
- The message sent to all players when the flight item is returned to the dispenser
-
flightgem.object.name
- The display name of the flight item (Default: Flight gem)
-
flightgem.object.material
- The material of the flight item. (Default: DIAMOND)
-
flightgem.object.lore
- A list of the lore lines. This should never be empty to avoid easy cloning. (Default: [Flight])
Source access
Live Demo
We use this plugin on the Snaketopia server accessible at pdxmc.com where the gem is accessible in the floating spawn building. Learn more at PDXMC
@Cseraphi
This issue should be fixed in the uploaded 1.6 (possibly still pending approval)
Had a (non-op) player die while holding the Flight Gem on a server running Cenoptahs (current version), and the gem ended up in the Ceno. Which was hiliarious, since he couldn't get to the Ceno without the Flight Gem.
Anyway, it seems there are all sorts of funny edge cases with that...
An idea: Could a command be provided that will recall the FG to its dispenser if and only if it is being held outside of a player inventory (on the ground, in a chest, etc)? That would allow us to put a 'press if no gem' button on a command block near the dispenser to handle unforeseen plugin interactions and such. Servers whose moderators have legit reasons to stash Flight Gems could simply disable the command.
@z00100100
The flight gem will not change worlds as written. This is the keep it from interacting badly with multiverse inventories and to keep it from ruining Nether exploration.
There is no setting for limiting flight distance. On my server players cope with this through cooperation and PvP using /findgem.
so does this have a config where if someone flys it takes away the gem after so far distance flying and requires more gems? and as well could you make it a perworld check to be able to disable in other worlds? aswell could you make it to where inital spawn in worlds give X amounjt of gem?