Skip to content

About

Essential tools for Minecraft SMP Servers

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Essentials (Fabric) (WIP)

Essentials is an SMP toolkit that, in my opinion, provides the essential admin and quality of life improvements for a survival server.

Commands & Features

Available Commands

The primary command is the configured command name. Aliases are shorter alternatives with identical behavior and permissions.

Primary command Aliases Description Default access
/repair [target] None Repairs the main-hand item if it is damageable. Operators
/heal [target] None Restores health, hunger, and saturation to full. Operators
/feed [target] None Tops off hunger and saturation. Operators
/flight [target] None Toggles creative-style flight for survival players. Operators
/disposal /trash, /trashcan Opens a temporary 9x3 inventory whose contents are deleted when closed. Everyone
/backpack /bp Opens your persistent 9x3 backpack. See the backpack modes below. Everyone
/backpacksee <player> /bpsee Opens and edits an online or previously joined player's backpack in per-player mode. Operators
/tpa <player> None Sends a teleport request to another player. Everyone
/tpahere <player> None Requests that another player teleport to you. Use /tpahere all to request all online players. Everyone
/tpaccept [player] None Accepts a teleport request, or the newest request when no player is given. Everyone
/tpdeny [player] None Denies a teleport request, or the newest request when no player is given. Everyone
/tpcancel None Cancels your outgoing teleport request. Everyone
/back None Returns to your previous position after a TPA teleport. Everyone
/spawn None Teleports to the persistent Essentials server spawn after its configured warm-up. Everyone
/setspawn None Saves your current dimension, position, yaw, and pitch as the Essentials server spawn. Operators
/home [name] None Teleports to a saved home after its configured warm-up. Omitting the name uses the default home. Everyone
/sethome [name] None Saves your current dimension, position, yaw, and pitch as a named home. Omitting the name uses the default home. An existing name is rejected. Everyone
/delhome <name> None Deletes one of your saved homes. Everyone
/homes None Lists your saved homes. Each name suggests /home <name> when the client supports clickable chat. Everyone
/inventorysee <player> /isee Opens and edits an online or previously joined player's inventory. Operators
/enderchestsee <player> /esee Opens and edits an online or previously joined player's ender chest. Operators
/ban <player> <duration|permanent> <reason> None Bans an online or previously known offline player. Use permanent or perm for no expiry. Operators
/pardon <player> /unban Revokes an active player-account ban for an online or previously known offline player. Operators
/ban-ip <address-or-player> <duration|permanent> <reason> /banip Bans an IPv4/IPv6 address temporarily or permanently. IPv6 addresses must be quoted. An online player target bans both their account and current address. Operators
/pardon-ip <address> /unban-ip Revokes an active IP ban. IPv6 addresses must be quoted. Operators
/kick <player> <reason> None Disconnects an online player and records the moderation action. Operators
/warn <player> <reason> None Records a warning for an online or previously known offline player. Operators
/mute <player> <duration|permanent> <reason> None Temporarily or permanently blocks a player's configured communication channels. Operators
/unmute <player> None Revokes a player's active mute. Operators
/note <player> <text> None Adds a private, staff-only note without notifying the player. Operators
/history <player> [all|bans|kicks|warnings|mutes|notes] [page] /audit Shows filtered, paginated moderation history and active moderation state. Operators
/msg <player> <message> /tell, /w Sends a private message to an online, visible player. The console may use this command. Everyone
/r <message> None Replies to your most recent private-message participant. Everyone
/ignore <player> None Toggles persistent private-message blocking for a player. Everyone
/msgspy None Toggles staff visibility of private-message traffic. Operators
/msgall <message> None Sends a formatted announcement to every online player. The console may use this command. Operators
/vanish [on|off] None Toggles your vanish state. Staff with the others permission may use /vanish <player> [on|off]. Operators
/ping [player] None Shows your server-reported latency, or an authorized online player's latency. The console must specify a player. Everyone
/tps None Shows rolling TPS for the last 5 seconds, 10 seconds, 1 minute, 5 minutes, and 15 minutes. Everyone

[target] is optional. Defaults to executor.

Backpack Modes

The backpack has three modes, set via backpack.mode in the config:

  • per_player (default) – Each player has their own persistent backpack.
  • serverwide – All players share a single backpack.
  • ender_chest – The backpack opens the player's ender chest: same live contents as an ender chest block, persisted by vanilla.

Features

  • Configurable Access Control: Commands can be restricted to operators only or made available to all players via configuration
  • Customizable Chat Tags: All messages include a configurable tag with custom text, colors, and styling
  • Smart Feedback: All targeted commands send feedback to both the executor and the affected player, so nobody is surprised by a sudden heal or flight toggle
  • Configuration System: YAML-based configuration system allows server administrators to customize command availability and access levels
  • Automatic Config Migration: When a mod update changes the config schema, your essentials.yaml is migrated automatically — your settings are kept, new options are added with defaults, the old file is backed up to essentials.yaml.bak, and a startup log warning lists exactly what changed
  • TPA System: Full teleport request system with configurable timeouts, cooldowns, and smart request management
  • Back Command: Return to your previous position after TPA teleports with a configurable time window
  • Server Spawn: A world-specific, persistent spawn with safe arrival search, optional first-join and respawn routing, and configurable warm-up/cooldown cancellation
  • Player Homes: UUID-owned named homes with safe arrival, configurable limits, warm-up, cooldown, and cross-dimension travel
  • Admin Inventory Views: /inventorysee and /enderchestsee give operators editable views into online and offline players' inventories and ender chests
  • Persistent Moderation: Bans, kicks, warnings, temporary/permanent mutes, revocations, and private staff notes are stored in SQLite, survive restarts, and can be reviewed with /history or /audit
  • Private Messaging: UUID-based replies and persistent ignores, configurable message formats, staff message spy, and server-wide announcements
  • Update Notifications: After startup, one asynchronous Modrinth check can notify the console and authorized online operators about newer compatible releases
  • Staff Vanish: UUID-backed vanish hides staff from player entities, the tab list, /list, selectors, suggestions, private messages, teleport requests, announcements, mob targeting, and unauthorized collision
  • Latency Reporting: /ping reads the server's existing keep-alive latency and colors it using configurable thresholds
  • TPS Monitoring: Lightweight bounded tick sampling powers a compact, color-coded /tps report across five rolling windows

Installation (Fabric)

Dedicated server

  1. Install Fabric Loader for your server's Minecraft version.
  2. Download and place the built JAR of this mod into the mods/ folder along with Fabric API.
  3. Start the server. Vanilla clients can connect. The mod will automatically generate config/essentials/essentials.yaml and config/essentials/essentials.db.

Singleplayer

  1. Install Fabric Loader and Fabric API on your client.
  2. Place the mod JAR into your client mods/ folder.
  3. Launch the game. The behavior applies in singleplayer because it runs an integrated server. The mod will automatically generate its files under .minecraft/config/essentials/.

Configuration

Essentials uses config/essentials/essentials.yaml, stores moderation data in config/essentials/essentials.db, stores UUID-based ignore relationships in config/essentials/ignored-players.properties, and stores persistent vanish state in config/essentials/vanished-players.properties. The configured server spawn is world-specific and is stored in <world>/essentials/spawn.properties. Player homes are stored by UUID in <world>/essentials/homes.properties. Existing config/essentials.yaml files are moved into the new folder automatically. If no configuration file exists, defaults are generated. After a mod update, new options are merged into your existing file automatically (see Automatic Config Migration above).

Chat Tag

The tag section controls the chat prefix on all mod messages:

  • text (default: Essentials) - The tag text shown in brackets
  • color / bracketColor - Colors from Minecraft's formatting names (e.g. AQUA, DARK_GRAY, DARK_PURPLE)
  • bold (default: true) - Whether the tag text is bold

Backpack Configuration

  • mode (default: per_player) - One of per_player, serverwide, or ender_chest (see Backpack Modes above)

TPA Configuration

The TPA system includes the following configurable options:

  • timeout_seconds (default: 60) - How long teleport requests last before expiring
  • cooldown_seconds (default: 10) - How long to wait after cancelling a request before sending another
  • window_seconds for back command (default: 120) - Time window during which /back can be used after a TPA teleport

Server Spawn Configuration

/setspawn records the executing player's exact dimension, coordinates, yaw, and pitch independently of Minecraft's vanilla world spawn. /spawn validates that the dimension is loaded and searches the configured point and nearby blocks for solid footing, collision-free headroom, an empty fluid space, and a non-hazardous arrival position.

  • first_join (default: true) routes first-time players when an Essentials spawn is configured.
  • respawn (default: true) routes death respawns only when Essentials spawn is configured and the player has no valid personal respawn point, such as a bed or respawn anchor.
  • Lifecycle routing does not require essentials.spawn.
  • warmup_seconds (default: 3) and cooldown_seconds (default: 30) control /spawn; each accepts 0 to disable its delay.
  • cancel_on_movement and cancel_on_damage (default: true) cancel pending warm-ups when triggered.
  • The *_message entries configure all spawn feedback with Minecraft & formatting codes. Warm-up and cooldown messages support {seconds}.
  • commands.spawn and commands.setspawn enable and restrict the two commands independently.

Player Homes Configuration

/sethome [name] records the executing player's exact dimension, coordinates, yaw, and pitch under a name owned by their UUID, so homes survive name changes and restarts. /home [name] validates that the dimension is loaded and searches the saved point and nearby blocks for a safe arrival. Omitting the name uses default_name. /delhome <name> deletes one home. /homes lists saved names and, where the client supports it, each name suggests /home <name>.

  • default_limit (default: 1) is how many homes a player may keep without a numeric limit permission.
  • maximum_limit (default: 5, maximum 256) is the highest essentials.home.limit.<number> value that counts. Larger granted numbers are ignored. essentials.home.limit.unlimited bypasses the cap.
  • When several numeric limit permissions are granted, the highest valid number replaces default_limit.
  • allow_cross_dimension (default: true) controls whether /home may teleport to a home in another dimension.
  • warmup_seconds (default: 3) and cooldown_seconds (default: 30) control /home; each accepts 0 to disable its delay.
  • cancel_on_movement and cancel_on_damage (default: true) cancel pending warm-ups when triggered.
  • default_name (default: home) is used when /sethome or /home omits a name. name_pattern is a Java regular expression; names are matched against it and stored in lower case, so Home and home are the same home.
  • Setting a name that already exists is rejected. Delete it first to move that home.
  • The *_message entries configure home feedback with Minecraft & formatting codes. Placeholders are {name}, {seconds}, {limit}, and {count}.
  • commands.home, commands.sethome, commands.delhome, and commands.homes enable and restrict the four commands independently. Disabling a command prevents it from being registered.

Moderation Configuration

  • ban_message controls the message shown to a banned player. It supports {player}, {reason}, {moderator}, {time}, and {expires_at}. Permanent bans render these last two placeholders as Permanent and Never.
  • Ban durations accept values such as 30m, 2h, 7d, and 1d12h; use permanent or perm for a ban that never expires.
  • The same ban_message is used for timed and permanent IP bans. /ban-ip accepts a literal address or the name of an online player; IPv6 addresses must be quoted (for example, /ban-ip "2001:db8::10" permanent Proxy). A player target atomically bans both their account and current address. /banip is an alias.
  • kick_message controls the message shown to a kicked player. It supports {player}, {reason}, and {moderator}.
  • Warning and mute feedback is controlled by warning_message, mute_message, unmute_message, mute_blocked_message, and mute_expired_message.
  • mute_blocks_private_messages controls whether mutes also block /msg, /tell, /w, and team messages. Public chat is always blocked while muted.
  • warning_rolling_period and warning_alert_threshold control the informational escalation count shown to staff. Essentials never applies an automatic punishment.
  • Minecraft ampersand formatting codes such as &c and &l are supported.
  • Kick audit logging is always enabled and has no configuration switch.
  • /history <player> shows moderation entries and active state; use bans, kicks, warnings, mutes, or notes to filter and a page number to navigate older entries (10 per page). Staff notes require their dedicated history permission even when all is selected. /audit is an alias. Dates use DD/MM/YYYY in the server's timezone.
  • /pardon <player> (alias /unban) revokes only the active player-account ban. It does not revoke a separate IP ban.
  • /pardon-ip <address> (alias /unban-ip) revokes only the active IP ban. IPv6 addresses must be quoted.

Command Access

Every command can be enabled/disabled and have its access level configured (op/all) in the commands section.

TPS Configuration

The tps section configures the healthy, degraded, and critical display bands. Each band has a minimum_tps and a Minecraft formatting color. Defaults are green at 18.0 TPS or above, yellow at 15.0 TPS or above, and red below 15.0 TPS. The minimums must be in descending order. Values below the critical minimum continue to use the critical color. The fixed two-line output and rolling windows are not configurable. commands.tps enables the command and defaults to access: all.

Ping Configuration

The ping section sets the inclusive good_max_ms and moderate_max_ms boundaries; higher values are considered poor. The corresponding latency value is green, yellow, or red. number_format accepts integer or decimal. Feedback formats support {player}, {latency}, {quality}, {color}, and Minecraft & formatting codes. Separate formats cover self and targeted results, unavailable or hidden players, console use without a target, unavailable latency data, and insufficient targeted access.

Private Messaging Configuration

The messaging section configures incoming, outgoing, reply, spy, message-all, ignored-player, unavailable-target, and missing-reply text. Formats accept {sender}, {recipient}, {message}, and Minecraft & formatting codes. staff_bypasses_ignore controls whether users with essentials.msg.ignore.bypass (OP fallback) bypass ignores; console_bypasses_ignore controls the same behavior for console messages. The msg, reply, ignore, msgspy, and msgall command entries can each be enabled and restricted independently.

Update Checks

The updates section controls the once-per-start Modrinth update check. It is enabled by default, accepts stable releases only, waits 10 seconds after startup, and uses a 5-second request timeout. Set channel to include_prereleases to consider beta and alpha versions. Console and player notifications can be disabled independently, and notification_text supports {installed_version}, {latest_version}, {channel}, and {download_link}. The link can be made non-clickable with clickable_link: false.

Players require essentials.update.notify; when no permission provider supplies a value, op_fallback: true grants the notification to operators. Each eligible player is notified at most once per server session, including when they join after the check finishes. The checker never downloads or installs files.

Vanish Configuration

The vanish section controls persistence, tab-list concealment, mob targeting, player collision, announcement suppression, and feedback text. chat_behavior is block by default; staff_only routes a vanished player's public chat attempt only to viewers with essentials.vanish.see. State is stored by UUID when persist_state is enabled. The commands.vanish entry enables the command and provides the OP fallback used by its permissions.

When a supported Fabric permission provider such as LuckPerms is installed, Essentials automatically uses the nodes below. A provider grant or denial takes precedence over access. If no provider supplies a result, the existing access: op|all check remains the fallback, so current servers keep the same behavior and configuration. Aliases always use their primary command's node. Console execution is unchanged.

Command Permission node
/repair essentials.repair
/heal essentials.heal
/feed essentials.feed
/flight essentials.flight
/disposal (/trash, /trashcan) essentials.disposal
/tpa essentials.tpa
/tpahere essentials.tpahere
/tpaccept essentials.tpaccept
/tpdeny essentials.tpdeny
/tpcancel essentials.tpcancel
/back essentials.back
/spawn essentials.spawn
/setspawn essentials.setspawn
/home essentials.home
/sethome essentials.sethome
/delhome essentials.delhome
/homes essentials.homes
/backpack (/bp) essentials.backpack
/backpacksee (/bpsee) essentials.backpacksee
/enderchestsee (/esee) essentials.enderchestsee
/inventorysee (/isee) essentials.inventorysee
/ban essentials.ban
/pardon (/unban) essentials.pardon
/ban-ip (/banip) essentials.banip
/pardon-ip (/unban-ip) essentials.pardonip
/kick essentials.kick
/warn essentials.warn
/mute essentials.mute
/unmute essentials.unmute
/note essentials.note
/history (/audit) essentials.history
/msg (/tell, /w) essentials.msg
/r essentials.reply
/ignore essentials.ignore
/msgspy essentials.msgspy
/msgall essentials.msgall
/vanish essentials.vanish
/ping essentials.ping
/tps essentials.tps
Update availability notifications essentials.update.notify

Granular capabilities use these sub-permissions:

Capability Permission node
Use /repair <target> essentials.repair.others
Use /heal <target> essentials.heal.others
Use /feed <target> essentials.feed.others
Use /flight <target> essentials.flight.others
Use /tpahere all essentials.tpahere.all
View warning history and rolling counts essentials.history.warnings
View mute and revocation history essentials.history.mutes
View private staff notes essentials.history.notes
Bypass player ignores when enabled essentials.msg.ignore.bypass
Change another player's vanish state essentials.vanish.others
See vanished players and resolve them in commands essentials.vanish.see
Use /ping <player> essentials.ping.others
Bypass the /spawn warm-up essentials.spawn.bypass.warmup
Bypass the /spawn cooldown essentials.spawn.bypass.cooldown
Override the default home limit essentials.home.limit.<number>
Bypass the configured home limit essentials.home.limit.unlimited
Bypass the /home warm-up essentials.home.bypass.warmup
Bypass the /home cooldown essentials.home.bypass.cooldown

Without a permission provider, most sub-permissions use their owning command's existing access result. The spawn bypass permissions, and essentials.home.limit.unlimited, essentials.home.bypass.warmup, and essentials.home.bypass.cooldown, instead default to operators. Numeric essentials.home.limit.<number> nodes are not granted by that fallback, so players keep homes.default_limit. When several numeric limits are granted, the highest number from 1 through homes.maximum_limit wins.

Build from source

./gradlew build

The remapped JAR will be in build/libs/. Run the unit tests with ./gradlew test.

License

  • MIT (see LICENSE)

About

Essential tools for Minecraft SMP Servers

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages