Skip to content

Command Protocols

RunningArmy6 edited this page Nov 18, 2026 · 2 revisions

Colossus v2.8.2 — Command Interface & Administrative Operations

SecureAutoSmartLocks provides a centralized command interface for managing protected blocks, access permissions, security notifications, and legacy data migration.

All primary commands are executed through:

/sasl <command>

The command architecture consists of three primary components:

  • LockCommand: Handles player-facing commands and administrative reload operations.
  • MigrationCommand: Handles Dreadnought legacy migration operations.
  • SASLTabCompleter: Provides permission-aware command and argument suggestions.

🛠️ Player Command Interface

The following commands are available to players with the required SASL permissions.

Command Operation Description
/sasl help HELP Displays the configured command documentation with sequential message and sound feedback.
/sasl lock MANUAL LOCK Manually protects the targeted lockable block when automatic locking is disabled.
/sasl trust <player> AUTHORIZE Grants an online player access to the targeted property.
/sasl untrust <player> REVOKE Removes a player's access from the targeted property.
/sasl info INSPECT Displays the property's owner, creation date, trusted-player count, and block type.
/sasl alert ALERT TOGGLE Enables or disables security breach notifications for the targeted property.
/sasl keys INVENTORY Displays the executing player's active in-memory locks grouped by block type.
/sasl changelog CHANGELOG Displays the latest available release notes.
/sasl changelog list VERSION INDEX Displays the available changelog version headers.
/sasl changelog <version> VERSION DETAILS Displays the changelog entries for a specified version.

Targeted Property Operations

The trust, untrust, info, and alert commands operate on the block the player is currently targeting.

The target must be a valid registered lock.

These operations are ownership-restricted where applicable:

  • Only the property owner can grant access.
  • Only the property owner can revoke access.
  • Only the property owner can modify the property's alert setting.
  • Property information is retrieved from the central LockRepository.

Manual Locking

/sasl lock is intended for servers where automatic locking has been disabled.

When settings.auto-lock is enabled, manual locking is rejected because the automatic placement-lock system already handles protection.

The command validates the targeted block, checks ownership conflicts, and registers the lock through the security manager.


🚨 Security Alert Protocol

The Alert Protocol connects the player's alert preference with the security notification system.

1. Alert Configuration

/sasl alert toggles the alert flag associated with the targeted lock record.

The updated record is submitted to the central repository and saved asynchronously.

Alert preferences are stored per property rather than as a single global player setting.

2. Cinematic Breach Notifications

When an unauthorized interaction occurs, the security listener checks whether the affected property has breach notifications enabled.

If the property owner is online and the alert flag is active, the notification sequence can deliver:

  • ActionBar security warning.
  • Title and subtitle notification.
  • Intruder and protected-block information.
  • Property location information in the configured message.
  • Configured breach alarm sound effects.
  • A formatted notification in the owner's chat.

The notification sequence uses scheduled server-thread tasks.

3. Admiralty Chat

The Admiralty Chat feature is separate from property breach alerts.

It can be controlled through:

visuals.admiralty-chat-enabled

When enabled, players recognized by the security manager as Admiralty members receive the configured special chat formatting.

The prefix is supplied by the security manager's Admiralty configuration.


🏛️ Administrative Commands

/sasl reload

Owner UUID authorization

The reload command is restricted to players whose UUID appears in the owners list in config.yml.

It does not rely on operator status alone.

Reload operations include:

  1. Reloading the primary configuration.
  2. Validating that the resulting configuration is not empty.
  3. Reloading repository configuration values.
  4. Refreshing relevant security and hopper-transfer settings.
  5. Updating Maximus configuration values.
  6. Clearing transit-related caches.
  7. Reloading lockable-block definitions and security caches.
  8. Refreshing world-related caches.
  9. Flushing repository data.
  10. Reloading language resources and preloading lock data into memory.

The operation uses a staged feedback sequence with titles, messages, and sound effects.

If configuration validation fails, the reload sequence is aborted rather than continuing with an invalid configuration state.

Reload cooldown: 3 minutes per player.


⚓ Dreadnought Migration Commands

The migration interface is delegated from LockCommand to the dedicated MigrationCommand.

Unlike normal player commands, migration commands can also be executed from the server console.

Administrative permission required

Required permission:

  • sasl.admin.migrate
  • sasl.admin
Command Operation Description
/sasl migrate scan DISCOVERY Scans known legacy database locations for valid SQLite migration sources.
/sasl migrate start EXECUTION Starts the legacy migration process through the migration engine.
/sasl migrate status MONITOR Displays migration progress and statistics.
/sasl migrate stop HALT Safely stops the migration engine and its streaming queues.

Migration Source Discovery

The migration command checks known legacy database locations, including:

  • plugins/SecureAutoSmartLocks/import/lwc.db
  • plugins/LWC/lwc.db
  • plugins/SecureAutoSmartLocks/import/legacy_locks.db

A source must pass SQLite file validation before it can be selected.

Duplicate Migration Protection

Migration completion fingerprints are stored in:

migrations.yml

The fingerprint incorporates the source file's absolute path, size, and last-modified timestamp.

This mechanism helps prevent the same unchanged source file from being migrated repeatedly.

Migration Safety

The migration command uses:

  • Dedicated migration permissions.
  • An 8-second player command cooldown.
  • Migration engine status checks.
  • Source database validation.
  • Completion fingerprints.
  • Controlled migration shutdown.

The actual data-processing pipeline is handled by Dreadnought and the BatchMigrationEngine.

For migration architecture details, see the Dreadnought Protocol documentation.


🔐 Permission Reference

Permission Purpose
sasl.use Access to the primary player command interface.
sasl.help Access to the help command.
sasl.lock Access to manual locking.
sasl.trust Access to trust operations.
sasl.untrust Access to untrust operations.
sasl.info Access to property information.
sasl.alert Access to property alert settings.
sasl.keys Access to the player's lock statistics.
sasl.changelog Access to changelog information.
sasl.admin.migrate Access to migration operations.
sasl.admin Administrative migration permission and reload notification audience.

Reload authorization: The reload implementation checks the player's UUID against the owners configuration list. It is not granted merely by having sasl.admin or operator status.


⏱️ Command Cooldown System

The command system uses separate cooldown mechanisms.

Operation Cooldown Scope
General player commands 1.5 seconds Per player
Migration commands 8 seconds Per player
Reload 3 minutes Per player

The general cooldown applies to non-reload player commands handled by LockCommand.

Migration commands use their own cooldown implementation.

These are separate controls; there is no universal six-second cooldown shared by every SASL command.


⌨️ Tab Completion Protocol

The SASLTabCompleter provides contextual command suggestions.

Primary Suggestions

The root command suggestions include:

  • help
  • lock
  • trust
  • untrust
  • info
  • alert
  • reload
  • changelog
  • keys

The migrate command is added when the sender has the required migration permission.

Player Suggestions

For the following commands, online player names are suggested:

  • /sasl trust <player>
  • /sasl untrust <player>

Migration Suggestions

Authorized senders receive the following migration subcommands:

  • scan
  • start
  • status
  • stop

Suggestions are filtered against the text already entered and sorted alphabetically.

Technical note: Changelog version arguments are supported by the command executor, but version-specific Tab suggestions are not currently implemented.


⚠️ Technical Notes & Limitations

Important

No List Command: /sasl list is not implemented in the current v2.8.2 command executor and is intentionally excluded from this documentation.

Note

Target-Based Operations: Trust, untrust, info, and alert require the player to target the relevant locked block. They are not remote property-management commands.

Note

Keys Statistics: /sasl keys reads the executing player's active in-memory lock cache. It should not be interpreted as a complete disk-wide audit of every stored record.

Warning

Reload Authorization: Reload access is controlled by the UUID list in config.yml. Operator status alone does not satisfy this check.

Warning

Permission Configuration: The permission nodes listed above describe the checks present in the command implementation. Server-side permission defaults should be verified against the current plugin.yml.


🔗 Related Documentation

  • Core Engine: Colossus subsystem architecture.
  • Argus Protocol: Lock integrity monitoring.
  • Phoenix Protocol: Chunk-load recovery and metadata reconciliation.
  • Dreadnought Protocol: Legacy database migration.
  • Automation Chain: Hopper and hopper-minecart transfer protection.
  • Installation Guide: Initial setup and configuration.

Architected by Protocol-S Development
Lead Architect: RunningArmy6

Clone this wiki locally