JailsPlus
  • 📖Getting Started
  • 🚀Usage
    • Commands
    • Permissions
  • ⚙️Configuration
    • Basic Configuration
    • General Settings
    • Jail Settings
    • Escape Punishments
    • Handcuff Configuration
    • Blocked Commands
    • Jail Restrictions
    • Other
  • 👋Support
    • Discord
    • Our Webstore
Powered by GitBook
On this page
  • Configuration Overview
  • Configuration Options
  • Customization
  1. Configuration

Blocked Commands

Configuration Overview

The Escape Punishments section of the plugin configuration (config.yml) allows server administrators to define commands that jailed players are restricted from using. This ensures that players cannot escape or bypass their jail sentence through teleportation, team commands, or other means.


Configuration Options

Blocked Commands

blocked-commands:
  - "tpa"
  - "home"
  - "spawn"
  - "team"
  - "rtp"
  - "tpr"
  - "warp"
  • This list specifies commands that jailed players are not allowed to execute.

  • Add or remove commands as needed to suit your server’s rules.

  • Ensure the commands listed match those used by your server’s plugins.

Example: If a player tries to use /tpa while jailed, they will receive the configured block message.


Command Blocked Message

command-blocked-message: "&cYou cannot use this command while jailed!"
  • This is the message displayed when a jailed player attempts to use a blocked command.

  • Customize this message to fit your server's style.

Example Output: When a jailed player tries /spawn, they will see: You cannot use this command while jailed!


Customization

  • To add more blocked commands, simply append them under blocked-commands:

    blocked-commands:
      - "tpa"
      - "home"
      - "spawn"
      - "warp"
      - "back"
  • To change the blocked message, edit command-blocked-message:

    command-blocked-message: "&4Jailed players cannot teleport!"
PreviousHandcuff ConfigurationNextJail Restrictions

Last updated 3 months ago

Supports color codes using & (e.g., &c for red). For color codes visit .

⚙️
this website