promotional bannermobile promotional banner

XY TPA

Chat-first teleport requests, homes, shared landmarks and death-point return for Fabric servers — clickable buttons, no GUI.

A lightweight, chat-first teleport suite for Fabric servers: clickable teleport requests, homes, shared landmarks and return points. No GUI, no bloat, no hidden changes to vanilla behaviour. What it does

Teleport requests. /tpa <player> asks to teleport to someone, /tpahere <player> asks them to come to you. Requests arrive as a single chat line with [✔ Accept] / [✖ Deny] buttons, so nobody has to copy request ids. Requests expire after 60 seconds, each player can have at most 3 pending outgoing requests, self-requests are blocked, and offline or dead targets are rejected.
Homes. /home [name], /set home [name], /del home [name], /list homes. Names are case-insensitive, may contain spaces and Chinese characters, are validated (up to 16 characters, no symbols) and are sorted by pinyin. The number of homes per player is configurable, and cross-world teleporting can be disabled.
Landmarks. Global, server-wide teleport points: /landmark [name] to teleport, /set landmark <name> and /del landmark <name> for operators, /list landmarks for everyone. Lists are clickable.
Return points. /back returns to the position you were at before your last teleport, /backdeath (alias /deathback) returns to your last death point, /clearback clears it. /back works repeatedly, so you can bounce between two spots.
Grouped commands. /set …, /del … and /list … auto-complete their subcommands — typing /set suggests home, landmark, reload, save. One entry point per feature, no legacy aliases.
Chat UI. One-line request messages, clickable lists, a 4-line clickable /tpa help page, and restrained colours (gold headers, aqua command chips, green accept / red deny). Clicking a name only fills the command in, it never teleports on the spot.
Localisation. English and Simplified Chinese are bundled. Messages follow the receiving player's client language, with English as fallback.

Commands for players

/tpa <player> — ask to teleport to that player
/tpahere <player> — ask that player to teleport to you
/tpaccept [requestId] — accept a request (no argument = the latest one)
/tpreject [requestId] — deny a request (no argument = the latest one)
/tpa help or /tpa — clickable 4-line help
/home [name] — teleport home (no argument = the home named home)
/set home [name] — create or overwrite a home
/del home <name> — delete a home
/list homes — list your homes (clickable)
/landmark [name] — teleport to a landmark (no argument = list them)
/list landmarks — list all landmarks (clickable)
/back — return to the position before your last teleport
/backdeath or /deathback — return to your last death point
/clearback — clear your death point

Operator commands (permission level 2)

/set landmark <name> — create or overwrite a landmark at your position
/del landmark <name> — delete a landmark
/set reload — reload config and data from disk
/set save — flush all in-memory data to disk immediately

Configuration

First start creates config/tpamod/tpa_config.json: json

{ "maxHomesPerPlayer": 5, "allowCrossWorld": true, "maxLandmarks": 10, "landmarksDataPath": "", "homesDataPath": "" }

maxHomesPerPlayer (default 5, clamped to 1–1000) — homes per player.
maxLandmarks (default 10, clamped to 1–10000) — number of landmarks on the server.
allowCrossWorld (default true) — if false, /home and /landmark refuse teleports across dimensions. /back, /backdeath and /tpa are intentionally not restricted.
homesDataPath / landmarksDataPath (default empty) — leave empty to keep data inside the world (world/tpamod/), or set an explicit path to share data between worlds.

Apply changes with /set reload or restart the server. Data files

world/tpamod/homes.json — homes per player
world/tpamod/landmarks.json — shared landmarks
world/tpamod/death_points.json — last death point per player
world/tpamod/pre_teleports.json — position before the last teleport (used by /back)
config/tpamod/tpa_config.json — configuration

All files are written atomically and flushed on /set save and on server shutdown. If a file is corrupted it is backed up as <file>.<timestamp>.corrupt instead of being silently wiped, so a broken JSON file can never take the server down or erase player data. Requirements

Minecraft 26.2
Fabric Loader 0.20.1 or newer
Fabric API (any 26.2 build; tested against 0.161.0+26.2)
Java 25

Installation

Install Fabric Loader 0.20.1 or newer for Minecraft 26.2.
Put Fabric API and xy_tpa-1.0.0.jar into the server's mods/ folder.
Start the server. All commands are available immediately; config and data files are created on first use.
Optional: install the mod on clients too. It declares environment: "*", so single-player and LAN worlds work as well.

Compatibility

The mod is server-side logic only. Vanilla commands are untouched: /list keeps showing online players and only gains homes and landmarks subcommands.
Admin commands use vanilla permission level 2 (gamemasters), so no permission plugin is required.
Data is stored per world, so moving or switching a world never leaks entries from the previous one.

Known limitations

Chat-only UI. There is no GUI, no map integration and no economy or cooldown system — that is deliberate; the mod stays small and predictable.
Admins are whoever has permission level 2; there are no per-world permission groups.
/back remembers one position per player (the last teleport), not a stack of positions.

Licence

All Rights Reserved. The compiled jar may be distributed through this project page only; redistribution elsewhere requires permission from the author.

XY TPA Team

profile avatar
  • 1
    Projects
  • 6
    Downloads