HomeJavaModsSMPPositionSaver
SMPPositionSaver
ModsJava

SMPPositionSaver

by fox3000foxy · on Modrinth

SMP Position Saver – lightweight Bukkit plugin that auto‑saves/restores player locations in configurable SMP worlds (YAML storage, wildcard support…

⬇ Download on Modrinth

SMP Position Saver

A Bukkit plugin for Minecraft 1.21.8 that saves and restores player positions in SMP worlds.

Features

Installation

  1. Compile the plugin with Maven:
mvn clean package
  1. Copy the generated JAR from target/ to your server's plugins/ folder.

  2. Restart the server or reload the plugins.

Configuration

The config.yml file will be generated automatically in the plugin folder:

# SMP worlds configuration
smp-worlds:
  - "world"
  - "world_nether"
  - "world_the_end"
  - "survival"
  - "survival_nether"
  - "survival_the_end"

# Customizable messages
messages:
  position-saved: "§aYour position has been saved in {world}!"
  position-restored: "§aYou have been teleported to your last position in {world}!"
  no-position-saved: "§cNo saved position for this world."
  config-reloaded: "§aConfiguration reloaded successfully!"

# Options
options:
  save-on-quit: true
  restore-on-join: true
  clear-on-death: true
  debug: false
  # Datapack functions executed when entering/exiting an SMP world
  entry-function: "datapack:functions/enter_smp"
  exit-function: "datapack:functions/exit_smp"

SMP worlds configuration

Add or remove worlds in the smp-worlds section to define which worlds belong to the SMP group.

Options

How it works

When a player enters an SMP world:

  1. The plugin checks if a position was saved for that player in this world
  2. If so, the player is teleported to their last saved position
  3. Otherwise a message informs them that no position is available

When a player leaves an SMP world:

  1. The plugin automatically saves the player's current position
  2. Coordinates (x, y, z), orientation (yaw, pitch) and world are recorded
  3. A message confirms the save

Data storage

Positions are saved in plugins/SMPPositionSaver/positions.yml with this structure:

players:
  <player-uuid>:
   <world-name>:
    x: 123.45
    y: 64.0
    z: -456.78
    yaw: 90.0
    pitch: 0.0

Permissions

Commands

This command isn't required for normal operation but can be useful after editing config.yml without restarting the server.

Compatibility

Development

The plugin is structured with the following components:

Support

For any questions or issues, please check the server logs or enable debug mode in the configuration.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more