# SecureAutoSmartLocks (SASL)
### Colossus v2.8.2 — Event Horizon

**A Server-Side Property Protection System**

SecureAutoSmartLocks (SASL) is a Minecraft server plugin designed to provide automated block protection, ownership management, and persistent property data handling.

Originally developed for a small multiplayer server, SASL has evolved into a modular protection system with dedicated components for integrity monitoring, chunk recovery, data migration, and runtime maintenance.

---

## Core Features

### Automatic Protection
- Automatically registers supported blocks when placed.
- Associates protected properties with their owner's UUID.
- Prevents unauthorized interaction and block breaking.
- Preserves ownership information across server restarts.

### Ownership Management
- UUID-based ownership verification.
- Trust and untrust functionality.
- Owner-aware access control.
- Protection information through the `/sasl info` command.

### Structural Protection
- Double-chest recognition and synchronization.
- Master-Slave ownership handling.
- Protection against supported external block modifications.
- Ownership-aware hopper and hopper-minecart transfer checks.

### Persistence and Recovery
- YAML-based lock repository.
- Persistent block metadata using Minecraft Persistent Data Containers.
- Paged chunk-level PDC storage.
- Chunk-load recovery through Phoenix.

---

## Core Engine

SASL Colossus introduces a collection of specialized internal components.

| Component | Responsibility |
|---|---|
| Argus | Lock integrity monitoring and ghost-data detection. |
| Phoenix | Chunk recovery and lock-data reconstruction. |
| Executioner | Lock-data removal and purge workflows. |
| Dreadnought | Legacy protection data migration. |
| Maximus | Runtime cache and temporary-state maintenance. |

These components operate as specialized parts of the SASL Core Engine.

---

## Automation Chain

The Automation Chain manages ownership-aware inventory transfers.

Its responsibilities include:

- Hopper ownership tracking.
- Hopper minecart ownership tracking.
- Cached ownership lookups.
- Ownership-based transfer validation.
- Temporary denied-transfer caching.

The system is designed to prevent unauthorized automated inventory transfers between protected ownership boundaries.

---

## Storage Architecture

SASL uses a repository-based persistence architecture.

**Current implementation:**
- `LockRepository`
- `YamlLockRepository`
- Persistent Data Container integration.
- Paged chunk-level metadata storage.

The repository abstraction separates lock-data operations from the underlying storage implementation.

---

## Administrative Commands

| Command | Description |
|---|---|
| `/sasl help` | Displays available commands. |
| `/sasl lock` | Manually locks a supported block when automatic locking is disabled. |
| `/sasl trust <player>` | Grants a player trusted access. |
| `/sasl untrust <player>` | Revokes trusted access. |
| `/sasl info` | Displays information about a protected block. |
| `/sasl alert` | Toggles protection alerts for a lock. |
| `/sasl keys` | Displays the player's cached lock information. |
| `/sasl changelog` | Displays version information. |
| `/sasl reload` | Reloads plugin configuration. |
| `/sasl migrate` | Opens legacy migration operations. |

Some commands require the appropriate ownership or administrative permissions.

---

## Project Status

**Version:** Colossus v2.8.2
**Codename:** Event Horizon
**Development Team:** Protocol-S Development
**Lead Architect:** RunningArmy6


---

## Official Distribution

Official published versions are distributed through:

- Modrinth
- CurseForge

GitHub is used for source code, project documentation, and development-related resources.

---

## License

SASL is proprietary, source-available software.

Public source code access does not grant permission to modify, redistribute, sublicense, or commercially repackage the Software.

See the `LICENSE` file for the complete license terms.

---

**Protocol-S Development**
*Built for Stability, Designed for the Future.*