SirBlobman / CombatLogX

A modular Spigot plugin that prevents players from logging out during combat and has many expansions for extra features.
https://www.spigotmc.org/resources/31689/
GNU General Public License v3.0
149 stars 50 forks source link

Prevent hot swapping elytra and armor while tagged #820

Open Nanpure opened 5 months ago

Nanpure commented 5 months ago

Server Implementation

Spigot

Server Version

other

CombatLogX Version

Java Version: 21.0.1 Java Vendor: Red Hat, Inc. Java URL: N/A Server Version: git-Paper-462 (MC: 1.20.4) Bukkit Version: 1.20.4-R0.1-SNAPSHOT Minecraft Version: 1.20.4 NMS Version: 1_20_R3 Dependency Information:

Plugin

None

Explanation

Players are asking for hot swapping between armor from the action bar to be restricted to prevent their prey from easily swapping their chestplate for an elytra and flying away. We do not want this to be part of inventory restriction, since we want players to have access to their inventory, but not rapid hot swapping from the action bar. This means that if they want to put their elytra on, it will take precious seconds as they open their inventory to drag the item manually. However, an option to toggle equipping of any armor while tagged would be a useful option, although separate.

In summary, two separate features (although overlapping):

Disallow swapping armor directly from the action bar Disallow swapping armor at all, which is inclusive of the action bar and the inventory screen

Extra Information

No response