A Minecraft plugin for Paper/Spigot 1.21.1 that implements a special elytra system with radius-based restrictions.
This plugin creates a "OneWay Elytra" system where certain Elytras can only be used within a configurable radius around a spawn point. Normal Elytras work as usual and are not affected.
MOVE_TO_INVENTORY: Elytra is moved to inventory (or dropped if full)DROP: Elytra is immediately deleted (cannot be picked up)lang/de.yml or lang/en.ymllang: de or lang: en to switch languagesplugins folderThe configuration file is located at plugins/OneWayElytra/config.yml:
# OneWay Elytra Plugin configuration
# Language: de = German, en = English (message files in plugin folder: lang/de.yml, lang/en.yml)
lang: en
# Spawn point (world + coordinates)
spawn:
world: "world"
x: 0.0
y: 64.0
z: 0.0
# Radius in blocks
radius: 100
# Remove mode when leaving zone: MOVE_TO_INVENTORY or DROP
removeMode: "MOVE_TO_INVENTORY"
# Debug mode (extra console output)
debug: false
All player-facing messages are stored in language files:
plugins/OneWayElytra/lang/de.yml - German messages (default)plugins/OneWayElytra/lang/en.yml - English messagesThese files are created automatically on first start and can be edited to customize messages. Use & for color codes (e.g., &c for red, &a for green).
/oe setspawnSets the spawn point to your current position.
/oe setradius <blocks>Sets the radius in blocks (e.g., /oe setradius 50).
/oe setremovemode <MOVE_TO_INVENTORY|DROP>Changes the removal mode:
MOVE_TO_INVENTORY: Elytra is moved to inventoryDROP: Elytra is deleted/oe infoShows the current configuration (spawn point, radius, removal mode).
/oe reloadReloads the configuration file and language files.
/oe give <player> [amount]Gives a player one or multiple OneWay Elytras.
/oe tagMarks the Elytra in your hand as a OneWay Elytra.
/oe untagRemoves the mark from the Elytra in your hand.
/oe checkChecks if the Elytra in your hand is a OneWay Elytra.
Aliases: /onewayelytra, /oneway
onewayelytra.admin - Allows all admin commands (default: OP)onewayelytra.bypass - Ignores all OneWay Elytra rules (default: OP)onewayelytra:onewayProblem: Elytra is not automatically given/removed
/oe info)debug: true) and check the consoleProblem: Special characters are displayed incorrectly