All versions
2.0.0
Release
LastLocation - 2.0.010 months ago 71
Uploaded by
Compatibility
Minecraft: Java Edition
1.21.x
1.20.x
Platform
Paper
Changes
# LastLocation
**LastLocation** is a lightweight, RAM-efficient **Paper** plugin that allows players to safely return to their **last logout location** β never their death location β with advanced safety, performance caps, and flexible storage options.
Built for **modern Paper servers (1.20+)** using **Java 21**.
---
## β¨ Features
### π Logout Location Tracking
- Saves **only the playerβs logout location**
- **Death locations are never saved**
- Extra safeguard: if a player logs out while dead, no location is stored
---
### π `/lastlocation` Command
- Teleports the player to their last saved logout location
- Optional reload command for admins
- Permission-based access
---
### π‘οΈ Advanced Safe Teleport System
- Prevents teleporting:
- Inside solid blocks (anti-suffocation)
- Into liquids
- Onto or into dangerous blocks
- Automatically centers the player in the block to avoid edge clipping
---
### β οΈ Hazard Protection (Fully Configurable)
#### Hard Hazards
Blocks that are **never allowed** at feet, head, or ground:
- Lava, fire, cactus, magma blocks, campfires
- Sweet berry bushes, wither roses, powder snow
- Nether / End portals and gateways
- Fully configurable via `config.yml`
#### Nearby Hazards (Buffer Zone)
- Prevents teleporting **too close** to hazards
- Configurable buffer radius (3Γ3, 5Γ5, etc.)
- Optional avoidance of nearby liquids (water / lava)
- Separate material list for fine-grained control
---
### π Automatic Anti-Suffocation Rescue
- If a player starts **suffocating after teleport**:
- Damage is cancelled
- Player is automatically teleported to a safe nearby spot
- Rescue search is centered around the original logout location
- Additional post-teleport safety checks handle edge cases
---
### β‘ Performance-Safe by Design
- Hard performance caps prevent excessive block scanning
- Limits on:
- Safe location candidates
- Nearby hazard block checks
- Rescue search attempts
- Safe for large servers and aggressive configurations
---
### π§ Extremely RAM Efficient
- No player locations cached in memory
- Locations are loaded only when needed
- Rescue data exists only briefly after `/lastlocation`
- Scales cleanly with player count
---
### πΎ Flexible Storage Options
Choose what fits your server best:
- **FILE** β One small file per player (simple & efficient)
- **SQLite** β Single local database file
- **MySQL / MariaDB** β Ideal for multi-server networks
Storage type can be changed via config.
---
### π Reload Support
- `/lastlocation reload`
- Reloads config, hazard lists, and performance settings
- No server restart required
---
## π Commands
| Command | Description |
|------|-------------|
| `/lastlocation` | Teleport to last logout location |
| `/lastlocation reload` | Reload configuration |
---
## π Permissions
| Permission | Description | Default |
|---------|-------------|---------|
| `lastlocation.use` | Use `/lastlocation` | `true` |
| `lastlocation.admin` | Reload config | `op` |
---
## βοΈ Configuration Explanation
### ποΈ Storage
```yml
storage:
type: "FILE"
FILE β Per-player files (default)
SQLITE β Single local database
MYSQL β Remote database for networks
π Teleport Safety
teleport:
safe-teleport: true
Enables all safety logic. Highly recommended.
π Safe Location Search
teleport:
safe-search:
max-radius: 6
max-up: 6
max-down: 6
Controls how far the plugin searches for a safe teleport spot.
π Auto-Rescue
teleport:
rescue:
enabled: true
window-seconds: 8
rescue-radius: 10
rescue-max-up: 10
rescue-max-down: 10
Automatically rescues players if suffocation occurs shortly after teleport.
β οΈ Hazard Control
Hard Hazards
teleport:
hazards:
override-defaults: false
materials:
- LAVA
- FIRE
- CACTUS
Blocks that are never allowed at feet, head, or ground.
Nearby Hazards (Buffer Zone)
teleport:
hazards:
nearby:
buffer-radius: 1
avoid-liquids-nearby: false
override-defaults: false
materials:
- WATER
- LAVA
Prevents teleporting too close to dangerous blocks.
β‘ Performance Limits
teleport:
performance:
max-candidates: 900
max-nearby-block-checks: 300
rescue-max-candidates: 1600
Hard caps that protect server performance.
π¬ Messages
messages:
teleported: "&aTeleported to your last logout location."
no-location: "&cNo saved logout location found."
Supports color codes using &.
π§© Compatibility
Platform: Paper
Minecraft: 1.20+
Java: 21
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:GBRsYrRQ:dKe8ClJ5"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:GBRsYrRQ:dKe8ClJ5"
}

