HomeJavaModsFoxHomes | Modern Homes
FoxHomes | Modern Homes
ModsJava

FoxHomes | Modern Homes

A Modern, and developer-friendly homes plugin featuring MySQL/SQLite support and a powerful API. Free Minecraft Java mod for 1.8, 1.9, 1.10.

⬇ Download on Spigot
FoxHomes | Modern, Fast & Developer-Friendly Homes Plugin

Introducing the most advanced homes plugin for your server, coded from scratch with performance and flexibility in mind. FoxHomes is designed to meet the needs of players and administrators alike. And best of all, it's completely free!

✨ Core Features

️ Gallery & Showcase Video
[​IMG]

Commands & Permissions

Spoiler: Click to see Commands and Permissions
Player Commands
Command Description Permission
/sethome <name> Sets a new home. foxhomes.sethome
/delhome <name> Deletes one of your homes. foxhomes.delhome
/home <name> Teleports to your home. foxhomes.home
/homelist Lists all of your homes. foxhomes.homelist


Admin Commands
Command Description Permission
/foxhomes reload Reloads the plugin's configuration. foxhomes.admin
/foxhomes list <player> Lists a player's homes. foxhomes.admin
/foxhomes delhome <player> <name> Deletes a player's home. foxhomes.admin
/foxhomes sethome <player> <name> Sets a home for a player at the admin's location. foxhomes.admin
/foxhomes movehome <player> <name> Moves a player's home to the admin's location. foxhomes.admin


All Permissions
Code (YAML):

foxhomes.sethome
: Permission for the /sethome command.
foxhomes.delhome
: Permission for the /delhome command.
foxhomes.home
: Permission for the /home command.
foxhomes.homelist
: Permission for the /homelist command.
foxhomes.admin
: Permission for all /foxhomes admin commands.
foxhomes.unlimited
: Allows setting an unlimited number of homes.
foxhomes.maxhomes.<number>
: Sets a specific home limit (e.g., foxhomes.maxhomes.10 ).
foxhomes.bypass.move
: Bypasses teleport cancellation on movement.
foxhomes.bypass.cooldown
: Bypasses the teleport delay entirely.
foxhomes.cooldown.<seconds>
: Sets a custom teleport delay for a player/group.
 

‍ Developer API
FoxHomes offers a powerful API for easy integration. Simply add it as a dependency to your project via JitPack.​

1. Dependency Setup
Add depend: [FoxHomes] to your plugin.yml. Then, add the JitPack repository and the dependency to your build system:

Maven (pom.xml)
Code (XML):

<repositories>
    <repository>
        <id>jitpack.io </id>
        <url>https://jitpack.io </url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>com.github.benardamorkoc </groupId>
        <artifactId>foxhomes </artifactId>
        <version>1.0.0 </version> <scope>provided </scope>
    </dependency>
</dependencies>
 
2. API Usage Examples

Getting Home Data
The API is fully asynchronous. Use CompletableFuture to handle results without lagging the server.
Code (Java):

// Get the API instance via the Bukkit Services Manager
RegisteredServiceProvider <FoxHomesAPI > rsp = getServer ( ). getServicesManager ( ). getRegistration (FoxHomesAPI. class ) ;
if (rsp == null ) return ;
FoxHomesAPI api = rsp. getProvider ( ) ;

// Get all homes in a specific chunk
api. getHomesInChunk (player. getLocation ( ). getChunk ( ) ). thenAccept (homesInChunk -> {
    player. sendMessage ( "Found " + homesInChunk. size ( ) + " homes in this chunk." ) ;
} ) ;
 
Listening to Events
You can cancel teleports or modify the destination by listening to the HomePreTeleportEvent.
Code (Java):

import com.foxhomes.api.events.HomePreTeleportEvent ;
import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;

public class MyListener implements Listener {
    @EventHandler
    public void onHomeTeleport (HomePreTeleportEvent event ) {
        // Prevent teleporting from the "arena" world
        if (event. getPlayer ( ). getWorld ( ). getName ( ). equals ( "arena" ) ) {
            event. getPlayer ( ). sendMessage ( "You cannot teleport from the arena!" ) ;
            event. setCancelled ( true ) ;
        }
    }
}
 
Have an issue or a suggestion?
For support, you can use the GitHub Issues page or join our Discord Server.​

Commands

Plugin details

Read from the plugin's own plugin.yml.

FoxHomes | Modern Homes is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 49 times (via Spigot). Download it and open it directly in the game.

Explore more