Skip to content

Commands and Permissions

CinematicEngine provides an intuitive, robust command structure managed by CommandManager. All subcommands feature smart contextual tab-completion, multilingual support (i18n), and rich feedback messages rendered via Adventure MiniMessage.


⌨️ Command Syntax

  • Root Command: /cinematic
  • Command Alias: /cine

📜 Subcommands Reference

1. /cine play <scene> [player]

Plays the specified cinematic scene. If no player is specified, the command executes for the sender.

  • Arguments:
    • <scene>: The unique identifier of a loaded scene (e.g. welcome, boss_intro).
    • [player] (Optional): Target online player to experience the cinematic.
  • Permission: cinematic.play (Default: op)
  • Examples:
    /cine play welcome
    /cine play boss_intro Alex

2. /cine stop [player]

Immediately stops the cinematic currently playing for the target player (or sender) and restores their original state (gamemode, location, and spectator view).

  • Arguments:
    • [player] (Optional): Target online player.
  • Permission: cinematic.stop (Default: op)
  • Example:
    /cine stop
    /cine stop Steve

3. /cine pause [player]

Freezes the active cinematic playback at its current timeline tick for the target player.

  • Arguments:
    • [player] (Optional): Target online player.
  • Permission: cinematic.pause (Default: op)
  • Example:
    /cine pause

4. /cine resume [player]

Resumes playback of a previously paused cinematic for the target player.

  • Arguments:
    • [player] (Optional): Target online player.
  • Permission: cinematic.resume (Default: op)
  • Example:
    /cine resume

5. /cine list

Displays a list of all currently registered and validated cinematic scenes along with their durations in ticks and metadata titles.

  • Permission: cinematic.list (Default: true)
  • Example:
    /cine list

6. /cine reload

Reloads all scene YAML files and language bundles (locales/messages_*.yml) from disk, updating internal registries and active translations without requiring a server reboot. Validates each scene against SceneDtoValidator and logs any parsing errors to the console.

  • Permission: cinematic.reload (Default: op)
  • Example:
    /cine reload

7. /cine help

Prints the help menu with available subcommands, argument descriptions, and syntax guides.

  • Permission: cinematic.help (Default: true)
  • Example:
    /cine help

🎨 Formatting and Localization (i18n)

All command responses, error notices, and operational status messages are processed through the internationalization service (MessageService) using Adventure MiniMessage:

  • Dynamic Placeholders: Messages support contextual replacements such as <subcommand>, <label>, <permission>, <name>, and <count>.
  • Rich Visual Styling: Full support for RGB/hex colors (<#55ffff>), gradients (<gradient:#ffaa00:#ff5555>), and text decorations like <bold> or <italic>.
  • Complete Customization: Modify any translation strings or visual themes inside plugins/CinematicEngine/locales/ and hot-reload them via /cine reload.

🔒 Permissions Matrix

Permission NodeDescriptionDefaultRecommended Group
cinematic.playAllows playing a cinematic scene for oneself or other players.opAdmin, Event Coordinator
cinematic.stopAllows halting an ongoing cinematic scene.opAdmin, Moderator
cinematic.pauseAllows pausing an active cinematic scene.opAdmin, Moderator
cinematic.resumeAllows resuming a paused cinematic scene.opAdmin, Moderator
cinematic.listAllows viewing the catalog of registered scenes.trueEveryone
cinematic.reloadAllows reloading scenes and configuration from disk.opAdmin
cinematic.helpAllows viewing command help and usage syntax.trueEveryone
cinematic.*Grants full administrative access to all commands.opSuperadmin / Server Owner

🛡️ LuckPerms Configuration Examples

Allow Server Staff to Play Cutscenes

Ventana de terminal
/lp group moderator permission set cinematic.play true
/lp group moderator permission set cinematic.stop true
/lp group moderator permission set cinematic.pause true
/lp group moderator permission set cinematic.resume true

Full Administrative Access

Ventana de terminal
/lp group admin permission set cinematic.* true