zNoElytraSwitch icon

zNoElytraSwitch -----

ᴘʀᴇᴠᴇɴᴛs ᴇʟʏᴛʀᴀ/ᴀʀᴍᴏʀ sᴡɪᴛᴄʜɪɴɢ ᴅᴜʀɪɴɢ ᴄᴏᴍʙᴀᴛ



ᴢɴᴏᴇʟʏᴛʀᴀsᴡɪᴛᴄʜ

ᴘʀᴇᴠᴇɴᴛs ᴇʟʏᴛʀᴀ/ᴀʀᴍᴏʀ sᴡɪᴛᴄʜɪɴɢ ᴅᴜʀɪɴɢ ᴄᴏᴍʙᴀᴛ

A lightweight Minecraft plugin that prevents players from switching between elytra and armor during combat to maintain fair PvP gameplay.

[hr]

✨ Features

  • Combat Detection - Automatically detects when players enter/exit combat
  • Armor Switching Prevention - Blocks elytra ↔ armor switching during combat
  • Customizable Duration - Configure combat timer (default: 15 seconds)
  • Sound Effects - Audio feedback for combat events (ᴏᴘᴛɪᴏɴᴀʟ)
  • Debug Mode - Console logging for troubleshooting (ᴏᴘᴛɪᴏɴᴀʟ)
  • Hotbar Protection - Prevents hotbar to chest slot movement (ᴄᴏɴғɪɢᴜʀᴀʙʟᴇ)

[hr]

Commands & Permissions

Command Description Permission Default
No commands Plugin works automatically No permissions needed All players

Permission Description Default
Currently no permissions Automatic functionality All players

[hr]

Configuration

Code (Text):

# Combat settings
combat:
  duration: 15  # Combat duration in seconds
  debug: false  # Enable debug logging

# Messages (supports & color codes)
messages:
  prefix: "[color=darkgray][[color=#FFA500]zNoElytraSwitch[color=darkgray]][/color] [color=white]"
  combat-switch-blocked: "[color=red][b][!][/b] You cannot switch armor or elytra while in combat![/color]"
  combat-enter: "[color=red][b][!][/b] You are now in combat! Armor switching disabled for %time% seconds.[/color]"
  combat-exit: "[color=green][b][!][/b] You are no longer in combat! Armor switching re-enabled.[/color]"

# Blocking settings
blocking:
  elytra-to-armor: true     # Block elytra → armor
  armor-to-elytra: true     # Block armor → elytra
  all-chest-changes: true   # Block all chest slot changes
  hotbar-to-chest: true     # Block hotbar → chest movement

# Additional settings
settings:
  show-combat-messages: true
  play-sounds: true
  sounds:
    combat-enter: "ENTITY_PLAYER_HURT"
    combat-exit: "ENTITY_EXPERIENCE_ORB_PICKUP"
    switch-blocked: "BLOCK_NOTE_BLOCK_BASS"
 
[hr]

Requirements

Requirement Version
Minecraft 1.16+
Java 8+
Server Spigot/Paper
Dependencies None


[hr]

Installation

  1. Download the latest zNoElytraSwitch-1.0.0.jar
  2. Place in your server's plugins/ folder
  3. Restart your server
  4. Configure in plugins/zNoElytraSwitch/config.yml (ᴏᴘᴛɪᴏɴᴀʟ)

[hr]

How It Works

When a player takes or deals damage:
  • ⚔️ Combat timer starts (configurable duration)
  • Armor/elytra switching is blocked
  • Sound effects play (ɪғ ᴇɴᴀʙʟᴇᴅ)
  • Combat messages display (ɪғ ᴇɴᴀʙʟᴇᴅ)
  • ✅ Timer expires → switching re-enabled

[hr]

Message Colors

ɪɴ-ɢᴀᴍᴇ ᴄᴏʟᴏʀ ᴄᴏᴅᴇs:
  • &c = Red (combat/error)
  • &a = Green (success/safe)
  • &6 = Gold (plugin name)
  • &8 = Dark Gray (brackets)
  • &l = Bold formatting

[hr]

Author & License

Made with ❤️ by GamingHuzai

Version 1.0.0

[hr]

ᴇɴᴊᴏʏ ғᴀɪʀ ᴘᴠᴘ ɢᴀᴍᴇᴘʟᴀʏ!
Resource Information
Author:
----------
Total Downloads: 20
First Release: May 31, 2025
Last Update: May 31, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings