DriftHomes
Homes with a menu, a warmup and a safe landing.
Homes for Paper and Folia 26.3, with a menu, warmups, safe landing, public homes and invites.
Players set homes with /sethome, go back with /home, and manage everything from the /homes menu: pick an
icon, choose a default home, make a home public or invite friends to it. Teleports have a warmup that moving or
taking damage cancels, a cooldown, and a safe-landing check so nobody lands in lava or inside a wall. Staff can
look at, visit and delete anyone's homes. Every message, menu and command name can be changed.
Features
Homes
/sethome [name],/home [name],/delhome <name>and/renamehome <home> <new name>, with tab completion./homeon its own goes to your default home (the ★ one), your only home, or a home calledhome. If none of those fit, it opens the menu.- Names are case-insensitive and checked against a pattern you can change (letters, numbers,
_and-by default). - Optional bed homes: sleeping in a bed saves it as a home called
bed, which doesn't use up a slot unless you want it to.
The /homes menu
- Every home with its own icon, world, coordinates, the date it was set and whether it's public.
- Left-click a home to teleport, right-click for its options: rename, change icon (from a list or the item in your hand), make default, move it to where you stand, make public or private, manage invites, and delete (with a confirm screen).
- Empty slots show how many homes you have left. Pages when you have lots of homes.
Teleporting
- A warmup countdown with a title and sound. Walking to another block or taking damage cancels it.
- A cooldown between teleports.
- Safe landing: if a home is now inside blocks, over lava or above a long drop, you land on the nearest safe spot. A home set while flying puts you on the ground below it.
- Chunks load in the background and every step runs on the right thread, so it's lag-free and works on Folia.
- Blocked during combat when DriftCombat is installed.
- Worlds where homes can't be set, and worlds whose homes can't be teleported to.
Public homes and invites
- Make a home public and anyone can visit it with
/visit <player> [home]or from the visit menu. - Invite a friend to a private home with
/homeinvite <player> <home>. They get a clickable message, and the home shows up in their visit menu. - A limit on how many homes each player can make public.
Staff
/homes <player>opens anyone's homes, online or offline./home <player>:<home>teleports there with no warmup, cooldown or price./delhome <player>:<home>, or the delete button in their menu.- DriftStaff's
/checkmenu has a button that opens the player's homes.
Protection
- No homes in someone else's land: WorldGuard regions and GriefPrevention, Lands and Towny claims are checked
before
/sethome. None of those plugins are needed; DriftHomes uses whichever are installed.
Also
- Optional prices for setting homes, teleporting, visiting and buying extra home slots, through Vault.
- Imports homes from EssentialsX and HuskHomes.
- PlaceholderAPI placeholders and a small developer API with events.
- H2 storage out of the box, or MySQL/MariaDB to share homes between servers.
Requirements
- Paper or Folia on Minecraft 26.3
- Java 25 or newer
- Optional: PlaceholderAPI, Vault with an economy (for prices), DriftCombat, WorldGuard, GriefPrevention, Lands or Towny
Installation
- Drop
DriftHomes-<version>.jarinto your server'splugins/folder. - Start the server. DriftHomes creates
plugins/DriftHomes/withconfig.yml,commands.yml,messages.yml,menus.ymland adata/folder for its database (see Folder layout). It works without any changes. - Change what you like and run
/drifthomes reload.
If you're replacing another homes plugin, remove it (or turn off its home commands) so the two don't both register /home,
then see Moving from EssentialsX or HuskHomes.
Commands
Names, aliases, permissions and usage can all be changed in commands.yml. Set enabled: false to leave a command out.
| Command | Aliases | What it does | Permission |
|---|---|---|---|
/sethome [name] | /createhome | Set a home where you stand, or move an existing one | drifthomes.sethome |
/home [name] | /h | Teleport to a home | drifthomes.home |
/homes [list] | /listhomes | Open the homes menu (list prints them in chat) | drifthomes.homes |
/delhome <name> | /deletehome, /removehome, /rmhome | Delete a home | drifthomes.delhome |
/renamehome <home> <new name> | Rename a home | drifthomes.renamehome | |
/visit [player] [home] | /phome, /publichome | Open the visit menu, or visit someone's home | drifthomes.visit |
/homeinvite <player> <home> | /invitehome | Let a player visit one of your homes | drifthomes.invite |
/homeuninvite <player> <home> | /uninvitehome | Take an invite back | drifthomes.invite |
/buyhome | /buyhomeslot | Buy one more home slot (when prices are on) | drifthomes.buy |
/homes <player> | Open another player's homes | drifthomes.admin.view | |
/home <player>:<home> | Teleport to another player's home | drifthomes.admin.view | |
/delhome <player>:<home> | Delete another player's home | drifthomes.admin.delete | |
/drifthomes <reload|version|import|help> | /dhomes | Admin commands (help lists them, click a line to fill it in) | drifthomes.admin |
Permissions
| Permission | Default | What it allows |
|---|---|---|
drifthomes.sethome, drifthomes.home, drifthomes.homes, drifthomes.delhome, drifthomes.renamehome | everyone | The basic home commands |
drifthomes.visit | everyone | /visit |
drifthomes.public | everyone | Making homes public from the menu |
drifthomes.invite | everyone | /homeinvite and /homeuninvite |
drifthomes.buy | everyone | /buyhome |
drifthomes.limit.<group> / drifthomes.limit.<number> | More homes, see Home limits | |
drifthomes.limit.unlimited | op | No home limit |
drifthomes.bypass.warmup | op | No warmup |
drifthomes.bypass.cooldown | op | No cooldown |
drifthomes.bypass.combat | op | Teleport home during combat |
drifthomes.bypass.worlds | op | Ignore disabled-worlds and locked-worlds |
drifthomes.bypass.claims | op | Set homes in other players' claims |
drifthomes.bypass.cost | op | Everything is free |
drifthomes.bypass.public-limit | op | Make any number of homes public |
drifthomes.admin.view | op | See and teleport to other players' homes |
drifthomes.admin.delete | op | Delete other players' homes |
drifthomes.admin | op | /drifthomes |
Turning features on and off
The features section at the top of config.yml turns whole features on or off. A feature that is off adds no commands or listeners, so another plugin can do that job instead. Changes need a restart.
| Switch | Default | What it covers |
|---|---|---|
public-homes | true | Players can make homes public, so anyone can go there with /visit. |
invites | true | Players can invite others to a private home with /homeinvite and /homeuninvite. |
bed-homes | false | Save a home whenever a player sleeps in a bed (sets their spawn there). Settings under bed-homes below. |
prices | false | Charge for homes. Needs Vault and an economy plugin, like DriftEconomy with features.vault: true in its config. Prices are under economy below. drifthomes.bypass.cost makes everything free for a player. |
claim-check | true | Stop players setting homes where they can't build: WorldGuard regions and GriefPrevention, Lands and Towny claims. drifthomes.bypass.claims ignores it. |
placeholders | true | The %drifthomes_...% placeholders for PlaceholderAPI. |
Servers that already have a config.yml get the section written in at the top on the next start. Any old on/off setting for a feature further down the file is moved into it with its value, and the old line is taken out, so nothing changes. (These used to be visiting.public-homes, visiting.invites, bed-homes.enabled, economy.enabled and claims.check-build-permission.)
Home limits
Everyone gets limits.default homes (3). Give a rank more by adding a group under limits.groups and giving the
rank the permission drifthomes.limit.<group>:
limits:
default: 3
groups:
vip: 5 # drifthomes.limit.vip
mvp: 8 # drifthomes.limit.mvp
drifthomes.limit.<number> (for example drifthomes.limit.20) also works, and drifthomes.limit.unlimited
removes the limit. A player gets the highest limit they have, plus any slots they bought.
Configuration files
| File | What's in it |
|---|---|
config.yml | Storage, home names, limits, teleport warmup/cooldown/safe landing, bed homes, visiting, prices, claims |
commands.yml | Every command's name, aliases, permission and usage. Name and alias changes need a restart |
messages.yml | Every message, in MiniMessage. Set one to "" to turn it off, or set prefix-enabled: false to hide the prefix |
menus.yml | Every menu's title, size, items and slots, and the icons in the icon picker |
Every file starts with a boxed header saying how to apply changes, is split into sections, and has a note above
every option saying what it does, its unit and the values it takes. The prefix is DRIFTHOMES in bold solid
indigo (#818cf8), followed by a dark grey ».
When you update, new options are added with their notes and everything you changed is kept. When the notes
themselves change, each file is rebuilt once with the new notes and your values written back in; the old file is
kept in data/backups/. Messages you never changed get the new default wording.
Mistakes in the files
A value DriftHomes can't use never stops the plugin. The console says which file and option, what was wrong and what is used instead, for example:
[DriftHomes] config.yml: teleport.warmup "abc" isn't a whole number, using 3
/drifthomes reload tells you how many problems it found, so you know to look.
Folder layout
plugins/DriftHomes/
config.yml settings, starting with the features: switches
messages.yml every message
menus.yml every menu
commands.yml command names, aliases and permissions
data/ DriftHomes' own files, no need to open them
database.mv.db the homes (H2 storage)
backups/ old copies of files DriftHomes replaced
*.version which version of each file you have
Older versions kept homes.mv.db and the .version markers next to config.yml. They are moved into data/
the first time 1.5.0 starts (one console line per file), and nothing is overwritten or deleted.
Prices
Prices are off by default. To turn them on, install Vault and an economy plugin (with
DriftEconomy, set features.vault: true in its config), turn on
prices in the features section at the top of config.yml, and set the prices:
features:
prices: true
economy:
set-home: 100 # new homes only, moving one is free
teleport: 0
visit: 25
buy-slot: 5000 # /buyhome and the menu button. 0 turns buying off
max-extra-slots: 10
Players with drifthomes.bypass.cost never pay. A teleport that fails after paying is refunded.
Paying in a different currency
By default every price is paid in your Vault economy. With DriftEconomy
you can use any of its currencies instead, by name (the file name in plugins/DriftEconomy/economies/ without .yml).
This works without Vault:
economy:
currency: "" # every price; empty is the Vault economy
buy-slot: 50
buy-slot-currency: gems # just /buyhome and the buy button; empty uses currency above
DriftEconomy currencies are whole numbers, so a price like 12.5 is rounded up to 13.
If buying a slot isn't possible, players are told home slots can't be bought, and staff with drifthomes.admin also
get one line saying what to change: prices is off, Vault or the currency is missing, or the price is 0.
Moving from EssentialsX or HuskHomes
- Install DriftHomes next to your old plugin, start the server once, and run one of:
/drifthomes import essentials: readsplugins/Essentials/userdata//drifthomes import huskhomes: readsplugins/HuskHomes/HuskHomesData.db(HuskHomes' default SQLite storage)
- Remove the old plugin (or turn off its home commands) and restart.
Homes a player already has in DriftHomes are never overwritten, and names that aren't allowed are skipped. The command tells you how many homes were imported and skipped. Public HuskHomes homes stay public.
PlaceholderAPI
| Placeholder | Value |
|---|---|
%drifthomes_count% | How many homes the player has |
%drifthomes_limit% | Their home limit (∞ for unlimited) |
%drifthomes_remaining% | How many more they can set |
%drifthomes_default% | The home /home goes to |
%drifthomes_public% | How many of their homes are public |
%drifthomes_bought% | Home slots they bought |
%drifthomes_has_<home>% | true if they have a home with that name |
Developer API
Add DriftHomes as a softdepend or depend, then:
DriftHomesApi.homes(player.getUniqueId()).thenAccept(homes -> {
// runs on a background thread
});
DriftHomesApi.homeCount(uuid).thenAccept(count -> ...);
Events (com.itskoazt.drifthomes.api.event):
| Event | When | Cancellable |
|---|---|---|
HomeSetEvent | A home is set or moved. isNew() tells which | Yes |
HomeDeleteEvent | A home is deleted, by its owner or staff | No |
HomeTeleportEvent | Right before a teleport to a home. setDestination changes where they land | Yes |
Works with other DriftSuite plugins
Every feature lives in exactly one DriftSuite plugin, so no two plugins fight over the same command, chat message or part of the screen.
| Plugin | Handles |
|---|---|
| DriftChat | Chat format, public chat filter, emojis, mentions, announcements, join and leave messages, cross-server chat, private messages (/msg, /reply, /ignore) and private message spy (/spymsg, /socialspy) |
| DriftStaff | Staff mode, vanish, punishments, reports, staff chat, staff teleports (/stp, /stphere), /invsee, /clearchat, /lockchat, /slowchat, command/sign/book spy, filter for private messages and signs, 2FA |
| DriftTAB | Tab list, name tags, sidebar scoreboard, boss bars and other tab list features |
| DriftTags | Tags and the tag menu. Tags are shown through %drifttags_tag% in DriftChat and DriftTAB |
| DriftEconomy | Currencies, /pay, Vault and Treasury |
| DriftCombat | Combat tagging, combat-log punishments, combat timer in the action bar and boss bar, safe zones, item cooldowns |
| DriftLag | Entity clearing, entity and spawner limits, lag tools |
| DriftHomes | Homes, the homes menu, public homes, home invites and /visit |
| DriftEssentials | Spawn, warps, /tpa, /back, /rtp, kits, nicknames, AFK, /motd, player tools (/craft, /enderchest, /hat, /trash) and admin shortcuts (/gmc, /fly, /heal, /speed) |
| DriftShowcase | The rank showcase NPC: try a rank's look and items before buying it |
How they work together:
- DriftStaff marks vanished staff with the standard
vanishedmetadata. DriftTAB leaves them out of the tab list and online counts, DriftChat treats them as offline in/msg,/ignoreand tab completion, DriftEssentials leaves them out of/tpa,/nearand/seen, and they can't be hurt, so DriftCombat never puts them in combat. - DriftStaff mutes and
/lockchatstop a message before DriftChat formats it, and muted players can't use/msg. - DriftChat filters public chat. DriftStaff filters private messages, other commands and signs. Every message is filtered once.
- DriftLag never removes or limits NPCs, including DriftCombat's combat-log NPCs.
- DriftHomes and DriftEssentials ask DriftCombat before every teleport, so
/home,/spawn,/warp,/tpa,/backand/rtpare blocked during combat. Both use the same warmup, cooldown and safe-landing rules. /backin DriftEssentials remembers where/homeand/visittook you from.- DriftChat sends join and leave messages. DriftEssentials only adds the first-join welcome and
/motd. - Staff teleports stay in DriftStaff. DriftEssentials only has the player ones (
/tpa,/spawn,/warp,/back). - DriftEssentials nicknames are the player's display name, which DriftChat's
{displayname}shows, and%driftessentials_nick%works in DriftTAB. - DriftStaff's
/checkmenu has a button that opens the player's DriftHomes homes. - Prices in DriftHomes and DriftEssentials go through Vault, so they use DriftEconomy when
features.vaultis on in its config. - For a combat sidebar, add a DriftTAB scoreboard with
display-condition: "%driftcombat_in_combat_raw%=true". DriftCombat's README has the full example. - DriftShowcase reads DriftEssentials kits straight from its
kits.yml, so a rank in the showcase can show a kit's items. - DriftShowcase shows LuckPerms group prefixes above its NPC and in its ranks menu, and knows which ranks a player already has. It only reads from LuckPerms and never gives a group or permission.
- DriftShowcase asks DriftCombat before every preview, so ranks can't be tried on during combat. Vanished staff and staff in DriftStaff's staff mode can't try them on either.
Messages, sounds and menus
- Short confirmations show on the action bar above the hotbar instead of in chat. Any message that starts with
[actionbar]goes there; remove it to send that message in chat again. - Replies to a player's own command or menu click play a soft sound: one for success, one for errors. Change or turn them off under
soundsinmessages.yml. Broadcasts never make a sound. - Player names in messages can be clicked (to message them), usage lines fill in the command when clicked, and coordinates can be clicked to copy them. Set the name click under
player-nameinmessages.yml. - The teleport warmup is a progress bar on the action bar. The big countdown title is still there: fill in
teleport.countdown-titleto turn it back on. - Errors say what to do next, like "Stand still and try again" or "Pick another name".
- Deleting a home asks in a pop-up window. Set
confirm-delete.style: menuinmenus.ymlto use the old menu.