home documents terms contact shop (coming soon!)

Restrictions Configuration

Edit

Control player actions during ranked queue and battles to prevent cheating.

Prevent cheating and ensure fair play. Restrict what players can do while in queue or during battle.

File: config/cobbleranked/restrictions.yaml

Why Restrictions?

Competitive integrity matters. Restrictions prevent players from:

  • Swapping Pokemon mid-match: Changing teams after seeing opponent
  • Healing during battle: Using potions or PC to gain unfair advantage
  • Escaping losing battles: Teleporting away to avoid defeat
  • Interfering with arena: Breaking blocks or accessing storage during match

Restriction Levels

CobbleRanked applies different restrictions based on player state:

LevelWhen AppliedPurpose
NONEDefaultNo restrictions
QUEUEWaiting in matchmaking queuePrevent pre-battle prep
ARENADuring active battleFull competitive restrictions
READY_CHECKIn match ready GUISame as arena (prevent last-second changes)

Players automatically transition between levels:

  1. Join queue → QUEUE restrictions
  2. Match found → ARENA restrictions
  3. Battle ends → NONE (back to normal)

Configuration Structure

# restrictions.yaml
queue:
  # Item Actions
  blockItemUse: false
  blockItemDrop: false
  blockItemPickup: false
  blockEquipmentChange: true

  # World Interaction
  blockBlockBreak: false
  blockBlockPlace: false
  blockBlockInteract: false
  blockContainerAccess: false

  # Entity Interaction
  blockEntityInteract: false
  blockEntityDamage: false
  blockEntityMount: false

  # Combat
  blockPvp: false
  blockPve: false
  blockProjectileLaunch: false

  # Movement
  blockTeleport: true
  blockPortalUse: true
  blockFlight: false

  # Cobblemon Specific
  blockPcAccess: true
  blockMoveSwap: true

  # Blocked Commands
  blockedCommands:
    - "tp"
    - "teleport"
    - "spawn"
    - "home"
    - "warp"
    - "pc"
    - "pokeheal"

arena:
  # Same structure, more restrictive
  blockItemUse: true
  blockItemDrop: true
  # ... (see below)

Queue Restrictions

Applied while player waits in matchmaking queue. More relaxed than arena, but prevents significant advantages.

SettingRecommendedReason
blockEquipmentChangetruePrevent swapping held items before match
blockTeleporttruePrevent queue dodging by teleporting away
blockPortalUsetruePrevent entering Nether/End while queued
blockPcAccesstruePrevent changing Pokemon team
blockMoveSwaptruePrevent modifying moves before battle

Permissive Options

Keep these false during queue:

  • blockItemUse: Let players use items while waiting
  • blockBlockBreak/Place: Allow building/mining
  • blockPvp/Pve: Allow engaging in other combat

Arena Restrictions

Applied during active ranked battle. Should be strict to ensure competitive integrity.

Required Settings

Set all these to true for competitive play:

arena:
  # Items: No using items during battle
  blockItemUse: true
  blockItemDrop: true
  blockItemPickup: true
  blockEquipmentChange: true

  # World: No interfering with arena
  blockBlockBreak: true
  blockBlockPlace: true
  blockBlockInteract: true
  blockContainerAccess: true

  # Entities: No external interference
  blockEntityInteract: true
  blockEntityDamage: true
  blockEntityMount: true

  # Combat: Battle only happens in the arena
  blockPvp: true
  blockPve: true
  blockProjectileLaunch: true

  # Movement: No escaping
  blockTeleport: true
  blockPortalUse: true
  blockFlight: true

  # Cobblemon: No changing Pokemon mid-battle
  blockPcAccess: true
  blockMoveSwap: true

Command Blocking

Prevent specific commands from executing while restricted.

blockedCommands:
  - "tp"           # Teleport commands
  - "teleport"
  - "spawn"        # Spawn teleport
  - "home"         # Home/warp commands
  - "warp"
  - "tpa"
  - "pc"           # Cobblemon PC
  - "pokeheal"     # Healing commands

Arena-Only Commands

Arena level should block additional commands:

arena:
  blockedCommands:
    # ... queue commands ...
    - "heal"         # Extra healing
    - "feed"         # Feeding
    - "fly"          # Flight
    - "gamemode"     # Gamemode switching
    - "gm"
    - "ranked"       # Prevent re-joining during battle
    - "casual"

Important: Commands are blocked silently. Players see a message that the command is restricted during ranked battles.

Restriction Categories

Item Actions

SettingWhat It Blocks
blockItemUseRight-clicking items (eating potions, using tools)
blockItemDropDropping items from inventory (Q key)
blockItemPickupPicking up items from ground
blockEquipmentChangeChanging armor, off-hand, or hotbar items

World Interaction

SettingWhat It Blocks
blockBlockBreakBreaking blocks (mining)
blockBlockPlacePlacing blocks (building)
blockBlockInteractRight-clicking blocks (doors, buttons, levers)
blockContainerAccessOpening chests, barrels, shulker boxes

Entity Interaction

SettingWhat It Blocks
blockEntityInteractRight-clicking entities (villagers, Pokemon)
blockEntityDamageAttacking entities (wild Pokemon, animals)
blockEntityMountRiding horses, boats, minecarts

Movement

SettingWhat It Blocks
blockTeleportAll teleportation (commands, items, portals)
blockPortalUseNether portals, End portals
blockFlightCreative flight, elytra flying

Cobblemon Specific

SettingWhat It Blocks
blockPcAccessOpening Pokemon PC to change team
blockMoveSwapChanging Pokemon moves in party view

See Also